Pages: 1
Topic closed
Hey readers!!!!! Im working on a game and i want sprite 1 to follow an object i figured that outl but i want a wall to keep it from following it into the air so sprite 1 stays on the ground........well.......hopefully i didnt confuse you too much....thanx
Offline
Offline
watch a mean????
Offline
ooooohhhhhhh.......i get what u mean....... i guess...
Offline
then make a variable called move down and if it's touching the wall then make it keep moving down till it's not touching it.
Offline
thanx sooooooooo much
Offline
Oh yeah, I forgot that! Thanks Digi!
Offline
Thanx to both of you this will help me alot in my future projects!!!!!!!
Offline
if you look at my project http://scratch.mit.edu/projects/GamingStudios/1885708
you can find that and a wall jumping feature!!! that uses the stage as the platform!!!
Offline
Hey
If the wall is painted in the background or a sprite it is simple!
Do forever;
if touching wall (or colour of wall);
move -1 steps
HERE IS AN ATTEMPT OF PICS
[blocks]<when green flag clicked><forever><if><touching[ wall ]><move( -1 )steps>
Offline
here do this
[blocks]<when green flag clicked><forever if><touching color[ etc<move(-10)steps> [/blocks]
or
[blocks]<when green flag clicked><forever if><touching color[ etc<move(10 )steps>
Offline
<pen down><change pen color by( <change pen shade by( <change pen shade by( <set pen size to( <set pen size to( <clear><pen down><change pen color by( <change pen shade by( <change pen size by( <set pen size to(
Offline
<when green flag clicked>
<forever>
<set x to( x position of sprite 2)>
<set y to( y position of ground )>
Offline
Topic closed
Pages: 1