Pages: 1
Topic closed
Hi! I just need to know how to make an "enemy" sprite move randomly across the screen so that if you run into it you lose a life and your score is reset.I know how to do the stuff with the variables for score and lives though. Thanks
Offline
Try the move 10 steps if on edge bounce sequence
Offline
Sorry new at scratch keep forgetting, what blocks are those?
Offline
[blocks]<forever>[/blocks]
[blocks]<move( 10 )steps>[/blocks]
[blocks]<if on edge, bounce>[/blocks]
[blocks]<end>[/blocks]
Last edited by Bluestribute (2008-06-24 15:10:03)
Offline
Thanks!!!
Offline
Wait, what about moving up and down?
Change y by doesn't work if you put a if on edge bounce block after it.
Offline
[blocks]<forever>[/blocks]
[blocks]<move( 10 )steps>[/blocks]
[blocks]<<turn cw( <pick random( negatives )to( positives )degrees>[/blocks]*
[blocks]<if on edge, bounce>[/blocks]
[blocks]<end>[/blocks]
*Replace negatives with a negative number and positives with a positive number
Offline
Thanks Again!!
Lol, my sprite looks like a drunk now.
Last edited by AlanProjects (2008-06-24 15:34:52)
Offline
AlanProjects wrote:
Thanks Again!!
Lol, my sprite looks like a drunk now.
Haha, gotta lay off those beers
Offline
BTW http://scratch.mit.edu/projects/AlanProjects/196692 the game I made!
Offline
Topic closed
Pages: 1