If my character jump, how do I make it land above the ground without glitches?
And I don't want the jump to look lame just to be able to make a nice landing.
Offline
Well, it depends. Do you want an entirely new jumping script or just someone to help you fix the one that you already have? If you want someone to help fix your scripts, then you'll need to either upload your project or show your scripts.
Anyway, hello Danielallmighty and welcome to Scratch! I hope that you'll have a fun time here!
Offline
ErnieParke wrote:
Well, it depends. Do you want an entirely new jumping script or just someone to help you fix the one that you already have? If you want someone to help fix your scripts, then you'll need to either upload your project or show your scripts.
Anyway, hello Danielallmighty and welcome to Scratch! I hope that you'll have a fun time here!
+1
This wiki article may help you.
Offline
Well, after thinking about it. I think that what I want is impossible in scratch.
I guess you can't detect collisions before you move the character.
Or can you hide a copy of your sprite and use that as a collision detector?
Offline
Danielallmighty wrote:
Well, after thinking about it. I think that what I want is impossible in scratch.
I guess you can't detect collisions before you move the character.
Or can you hide a copy of your sprite and use that as a collision detector?
Well, actually, it is possible to detect collisions before you move, and there are a few ways that involve sensing after your character moves, and no movement is noticeable unless allowed by the script.
Also, yes, your method is actually one of them that would work, though it might be better to actually use a sprite specifically designed to be a sensor instead of the character itself. For example:
Key:
Yellow - Checks if left movement is possible.
Green - Checks if right movement is possible.
Orange - Checks if up movement is possible.
Blue - Checks if on floor.
Pink - Checks if in floor.
Last edited by ErnieParke (2013-02-07 16:29:48)
Offline
You can do this without a collision detector sprite/ costume!
Just with your player costume...
I made a platformer engine, maybe you want to use the engine or the scripts help you!
link:
http://scratch.mit.edu/projects/MaanGames/3045995
Offline
Danielallmighty wrote:
Well, after thinking about it. I think that what I want is impossible in scratch.
I guess you can't detect collisions before you move the character.
Or can you hide a copy of your sprite and use that as a collision detector?
You can move, see if you're touching, and then move back before the movement is rendered. This means the user won't see the sprite temporarily inside a floor/wall and you can do all your sensing with only one sprite
Offline
Use the engine from chanmanpartyman's platformer 2000-something. It's really good.
Offline