How do I make solid ground that the sprite doesn't fall through?
Offline
I'm not sure you have your answer yet, so here is what I do. Say that you want SPACE to make you jump. So you write
<when[ SPACE ]key pressed>
<if> <touching ground>
<change y by( 25).
<end>
Look at next post (continued)
Last edited by MoreGamesNow (2010-07-17 09:17:39)
Offline
Then you write
<when green flag clicked>
<forever if> Not <touching ground>
<change y by( -2
<end>
Offline
The results of both these scripts: When Sprite1 (the moving sprite) is touching the ground and SPACE is pressed, he jumps up. When he's not touching the ground he falls. Hope this helps.
Offline
MoreGamesNow wrote:
The results of both these scripts: When Sprite1 (the moving sprite) is touching the ground and SPACE is pressed, he jumps up. When he's not touching the ground he falls. Hope this helps.
Note that ground is a sprite here.
Offline
We should develop a flow-chart type image, with different methods split by different game/project requirements. And then repeat for collision detection, scrolling...
Offline