I'm very talented at scripting, so if you need help on your projects, just ask me!
Offline
Hi iv been set a task for my computing class, my class were learning about scratch but i got ahead of the class so my teacher gave me a challenge, which was to remake Manic Miner on scratch but i need help with getting the sprite u control to go Left/Right while he's in mid-air(Jumping)
Plz if you could help me i would be so greatful!
Offline
Put the movement into one whole script using forever, if, key ? Pressed, (action). Then put another if for the next movement. As long as you don't use repeat blocks in the ifs, it should work out fine.
Offline
TheBlueRocky wrote:
Put the movement into one whole script using forever, if, key ? Pressed, (action). Then put another if for the next movement. As long as you don't use repeat blocks in the ifs, it should work out fine.
![]()
Ok thanks i'll try it i'll post back i it works or not
Offline
<when green flag clicked><forever><if><key[ ]pressed?>
and so on so fourth, but the guy dosnt jump and move forward at the same time.
Offline
To fix this problem, do these 3 scripts instead of one:
[blocks]<when green flag clicked>
<forever>
<if> <key[ space ]pressed?>
<repeat( [jump in pixels]
<change y by( 1
<end>
<end>
<when green flag clicked>
<forever>
<if> <key[ right ]pressed?>
<change y by( 1
<end>
<when green flag clicked>
<forever>
<if> <key[ left ]pressed?>
<change y by( -1
<end>[/blocks]
Now the jump will not affect the other areas because it's held on different scripts. Hope that helps!
P.S. I did add the blocks tags.
Offline