So I just created this project, right here. I am actually quite happy with it, except for the fact that whenever the sprite hits the edge of the stage, it loses its place since it cannot move outside of the project area.
I was just wondering if there was some setting/a way to avoid this? Help is appreciated.
Last edited by fuz50 (2011-11-26 10:26:44)
Offline
You could make it work out whether it will do that depending on the mouse x and mouse y, and if it's too close to the edge then make it so it can't draw.
By the way, I loved it and added to my faves!
Offline
Thanks!
If I were to create a formula for finding if the distance from the closest point of the shape to the edge would be off the screen or not, that might end up being extremely tricky, since the shape wouldn't even be drawn yet. And then I would have to figure out the coordinates of each of the points before it was drawn out as well. Eww.
Or maybe the shape would stop drawing once it hits the edge. But I sort of want it to finish it....
Any insight onto this would be awesome!
Last edited by fuz50 (2011-11-26 17:03:36)
Offline