How do I make marching-back-and-forward enemies in a scrolling game?
Offline
Never mind. I had a look at one of my older projects.
Offline

EDIT: Oh, you didn't need it.
Last edited by Kileymeister (2011-06-12 10:05:02)
Offline
forever
go to x: {start x} y: {start y}
repeat until {finished first loop}
change x by (10)
next costume
// this is so it can actually 'march'
wait (0.2) secs
repeat until {back to start}
change x by (-10)
next costume
// this is so it can actually 'march'
wait (0.2) secsEDIT: Double outposted. ^^
Last edited by scimonster (2011-06-12 10:06:13)
Offline
Kileymeister wrote:
http://i51.tinypic.com/35hicfr.gif
EDIT: Oh, you didn't need it.
Yeah, that's the code I used in an earlier game. But thanks anyway.
Offline
Off-topic: You're back!
Offline
mathematics wrote:
Off-topic: You're back!
Kind of!
I won't be on the forums as much. At least, not on the Misc forums. But I will still make projects. LOTS of projects, as you might have realised from this topic: http://scratch.mit.edu/forums/viewtopic.php?id=38672
Offline