I need help on making moving enemys in a scrolling game
PLEASE HELP
Offline
The easiest way is to use relative positions.
Make 2 sprite variables called xpos and ypos, and tell the sprite to forever go to
x: scrollx + xpos y: scrolly + ypos
Then use xpos and ypos as if they were your real x and y position variables. That didn't make sense, did it?
Offline
LS97 wrote:
The easiest way is to use relative positions.
Make 2 sprite variables called xpos and ypos, and tell the sprite to forever go to
x: scrollx + xpos y: scrolly + ypos
Then use xpos and ypos as if they were your real x and y position variables. That didn't make sense, did it?![]()
Thanks! I actually might have thought of a different way to do it, but if it dosn't work I'll use this.
Offline
i asked the same thing a while ago and was answered see Keleimiser said
http://scratch.mit.edu/forums/viewtopic.php?id=67809
Offline
rojasscratches wrote:
i asked the same thing a while ago and was answered see Keleimiser said
http://scratch.mit.edu/forums/viewtopic.php?id=67809
Thanks!
Offline
SJRCS11_010 wrote:
rojasscratches wrote:
i asked the same thing a while ago and was answered see Keleimiser said
http://scratch.mit.edu/forums/viewtopic.php?id=67809Thanks!
I basically said the same thing, but kiley's version has cool images
Last edited by LS97 (2011-10-15 15:50:44)
Offline
I'm having layer problems but enemy moving in this scrolling game is working if you need code reference. All I have on here so far is scrolling background and moving an enemy so shouldn't be hard to decipher it all.
http://scratch.mit.edu/projects/kodarr/2062825
Offline