This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-10-03 13:46:19

MANGAWORLD
Scratcher
Registered: 2009-09-04
Posts: 11

I Need Help!

I'm creating a new game, THE SHADOW NINJA.
I'm going to release 10 beta test demo's before the game, each time improving aspects of the game. Test demo 0.1 is out, http://scratch.mit.edu/projects/MANGAWORLD/702987 .

I have one major problem, and that is jumping. The problem is being able to jump without touching the ground. Although I have temporarily fixed this problem, all I have done is put a 'wait 0.8 seconds' after you have jumped. This works, but I know there is a better way of getting round this problem. If anyone can help me out, either by giving me advise or downloading the project and telling me what I've done wrong, I'd be very thankful.

   >>  MANGAWORLD  <<
        KAMI STUDIO's

Offline

 

#2 2009-10-03 22:00:56

Digimath
Scratcher
Registered: 2007-07-07
Posts: 100+

Re: I Need Help!

MANGAWORLD wrote:

...

I have one major problem, and that is jumping. The problem is being able to jump without touching the ground. Although I have temporarily fixed this problem, all I have done is put a 'wait 0.8 seconds' after you have jumped. This works, but I know there is a better way of getting round this problem. If anyone can help me out, either by giving me advise or downloading the project and telling me what I've done wrong, I'd be very thankful.
...

What I’ve used in the past is a little sensor sprite that detected when it was below ground and nudged  itself and the main sprite (the Ninja)  upward until it was clear but the main sprite was still on the ground. 

Please see if this works more like you wanted:
http://scratch.mit.edu/projects/DigimathFixit/704030


I've updated my text adventure game.
Colossal Cave 150http://scratch.mit.edu/static/projects/Digimath/3003787_sm.png

Offline

 

#3 2009-10-03 22:02:39

FantasyTales
Scratcher
Registered: 2008-06-02
Posts: 1000+

Re: I Need Help!

just make it so there is an if touching (ground) overtop of your jumping script, that way it will only jump if touching ground.


http://ageofthefuture.ismywebsite.com/images/dg_sig_2_small.png
http://images.myadoptables.com/adopted/2340.pnghttp://images.myadoptables.com/adopted/2339.png

Offline

 

Board footer