Why can't i use update?

in the update script, I added y = y + 1 and it didn’t work. I’m using regular, not the legacy one.

did u just have it written like this:
y=y+1

Or was it something like:
this/ obj.y = this/ obj.y + 1

y=y+1 do i need to do that other one

lower case y is used to define the y value of something. If that’s what u wanna do, write the name of the clip, then add a period, then the y. If your trying to define y, use a caps lock y and add var before statement. If this makes no sense, just let me know what u want the statement to do, and I’ll try to write u a quick code to use.

You need to use this.y = this.y + 1 or this.y++, not y = y + 1 or y++ because it’s not just any y, it’s the clip’s y. If you put var y = 100 and then incremented y, you’re just changing y, not this.y.

That’s a lot of ys.

I personally think, Hanzoh, that your reply was a bit confusing for me to understand. I’m pretty sure you meant what I said though.

1 Like