I'm working on a game and I have variables for x and y that moves the character. I have 2 scripts, one to set the x variable to 0 when the flag is clicked, and one to set the y variable to 0 when the flag is clicked. For some reason the y variable sets to -infinity every time. I didn't even know that was possible, I've never seen it before. Does anyone know why that could be happening?
Offline
dankill51 wrote:
I'm working on a game and I have variables for x and y that moves the character. I have 2 scripts, one to set the x variable to 0 when the flag is clicked, and one to set the y variable to 0 when the flag is clicked. For some reason the y variable sets to -infinity every time. I didn't even know that was possible, I've never seen it before. Does anyone know why that could be happening?
To make sure, do you have the center of your sprite on it or off to the side? If you don't know how to check, just open the costume in question in the Paint Editor and click the little button with a + on it.
Last edited by ErnieParke (2013-02-14 16:47:37)
Offline