I'm new in the gravity topic in scratch levels
someone could explain to me how to make commands to define gravity as the characters walk through the stages, PLEASE !!!!! Someone could help me make a game in which the character is limited by the walls and the floor. The character can also move through the stage
if someone answer, THANK YOU FOR YOUR CONTRIBUTION. THANKS
Offline
There are many ways to accomplish this. The two most popular are:
1) Using other sprites as sensors. Can be glitchy due to lag between the sensor's movement being a little behind the main sprite's.
2) Using color sensors built into your own sprite.
I've developed two other ways
3) My first platformers made the floor one color and the walls another.
4) A method I've developed where the sprite itself basically acts as the sensor without a <color [] touching []> block. Unfortunately, this can result in the sprite "vibrating", but there is no lag like in method 1, and no need to define the ground as a specific color (as in method 2). This is what I'm currently using.
Which do you want to use? I really don't want to explain each one
Links to projects using:
Method one
Method two*
Method three**
Method four***
*The only project here that is a tutorial. I would click "sensing" when you get the choice of what to learn about.
**A poor, but functional jumping script
***Delete the sprite that has the "forever goto" script, that is just a cover for the "real" sprite.
Offline