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
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
Offline
just make it so there is an if touching (ground) overtop of your jumping script, that way it will only jump if touching ground.
Offline