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

#1 2011-11-03 22:54:19

eddysanoli
New Scratcher
Registered: 2011-05-28
Posts: 4

Gravity game

I'm new in the gravity topic in scratch levels  tongue

someone could explain to me how to make commands to define gravity as the characters walk through the stages, PLEASE !!!!!  wink  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  big_smile   big_smile   big_smile

Offline

 

#2 2011-11-04 17:07:29

flamekyle
Scratcher
Registered: 2011-03-18
Posts: 1000+

Re: Gravity game

Hmm... Have you tried using "velocity"?


http://prodegebanners.sitegrip.com/images/swagbucks-173x63Alt5.jpg

Offline

 

#3 2011-11-04 18:07:24

FallenIce
Scratcher
Registered: 2011-10-14
Posts: 100+

Re: Gravity game

Sorry eddysanoli, this belongs in all about scratch.

Here, ill report for you.

Thanks for understanding.  smile


http://i.imgur.com/Yc7aC.gif

Offline

 

#4 2011-11-04 18:14:20

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Gravity game

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  hmm

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.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer