Quite welcome. I noticed that gravity guy isn't really working with the new flash player - I suspect a timing issue. Flash runs much faster than the old java player, and is even faster than in presentation mode in scratch; It's inspired me to try some new stuff after not "scratching" for years...
Okay I looked at your scripts and used them but the jumping process for me somehow does not work! I checked everything and they were working! But after the jump it just continues on and on! Could you please check out my scripts and see the flaw and download it please?
Your "Startup" script has an "if" statement that has several (color touching?) tests - this test retunrs "false" so nothing else in the startup script (like adding gravity's effect) is happening. You can test this by stopping the project when the problem occurs, then right clicking and "duplicating" the test statement. Drop the statement on the center pane, then click it - it says "false"...
Very nice effects! I have just noticed how it bounces off the ground, and decreases the variable to make it less bouncy every time it hits the ground. Very nice simulation!
This is a follow-up to the GravityGuy with Bounce demo. The logic error that let GravityGuy sink thru the floor has been corrected, and now he can jump. There is some extra "unconnected" code included in the project. If you download the project and connect the extra code, GravityGuy will gain a new ability.
Remember that there are lots of ways to accomplish things in Scratch, there is nothing magical about the way I did things or the variable names. This program is built a bit differently from the previous ones, using more "Broadcasts".
As with the other projects, lots of comments are included that should make it clear how the program works. Feel free to download and use as desired, either to study or to remix.
Comments
You need to be logged in to post comments
Add a Comment
Hey thanks so much for letting me use your scripts. I figured it out and now thinking about the rest of my game.
Quite welcome. I noticed that gravity guy isn't really working with the new flash player - I suspect a timing issue. Flash runs much faster than the old java player, and is even faster than in presentation mode in scratch; It's inspired me to try some new stuff after not "scratching" for years...
(view all replies)Okay I looked at your scripts and used them but the jumping process for me somehow does not work! I checked everything and they were working! But after the jump it just continues on and on! Could you please check out my scripts and see the flaw and download it please?
Your "Startup" script has an "if" statement that has several (color touching?) tests - this test retunrs "false" so nothing else in the startup script (like adding gravity's effect) is happening. You can test this by stopping the project when the problem occurs, then right clicking and "duplicating" the test statement. Drop the statement on the center pane, then click it - it says "false"...
(view all replies)An excellent gravity and bounce example.
Nice bounce physics.
Very nice effects! I have just noticed how it bounces off the ground, and decreases the variable to make it less bouncy every time it hits the ground. Very nice simulation!
its ok