Sorry for yet another noobish post, but I've been staring at my events sheet for a while now and I can't work out what I'm doing wrong (it's likely something simple if my past mistakes are anything to go by).
The character is supposed to stop going forward when he reaches the "moon" thing just before the end of the layout, but he just keeps going right up to the edge. What have I done wrong?
Thanks in advance.
Develop games in your browser. Powerful, performant & highly capable.
Perhaps my explanation and example weren't great? Here's a very simplified version of the same issue:
Why does the orange box just keep going right, even when Y > 400?
Edit: Solved by changing Y to X, though I still have absolutely no idea why that worked. I just happened to try it because I'd already tried everything else I could think of <img src="smileys/smiley5.gif" border="0" align="middle" />
The Y axis is Up/Down, and the X axis is Left/Right. Your object is moving along the X axis, the Y value never changes as long as it doesn't move up or down.