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

#1 2011-03-21 14:57:46

Severus14
Scratcher
Registered: 2011-02-03
Posts: 62

Gravity Help!

I am stuck! I am trying to make a platformer game, and you need to be able to walk on a FLAT ceiling (so I don't need any help with gravity related to rotation!), though when I make a script that shoud work, it doesn't! I am new to scratch, though I have made alot of art Projects. If you help me, I promise to give Credits. PLEASE HELP!  sad

Offline

 

#2 2011-03-21 16:33:26

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

Re: Gravity Help!

A simple way to do this is (this assumes the ceiling is a sprite)
<when green flag clicked>
<forever>
   <if><< <<  <not> <touching[ CeilingSprite ]> >> <and> <( <{ gravity }> <=> "inverted" )> >>
   <change y by( 2 )>
   <end>
<end>

Last edited by MoreGamesNow (2011-03-21 16:33:50)


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

Offline

 

#3 2011-03-21 18:02:15

Severus14
Scratcher
Registered: 2011-02-03
Posts: 62

Re: Gravity Help!

Thanks, but I need it to where he can WALK on the ceiling. I know how to make him go to the ceiling. Thanks for your help, but it just wasn't it. I would appreciate it if you gave me just a little bit more help.

MoreGamesNow wrote:

A simple way to do this is (this assumes the ceiling is a sprite)
<when green flag clicked>
<forever>
   <if><< <<  <not> <touching[ CeilingSprite ]> >> <and> <( <{ gravity }> <=> "inverted" )> >>
   <change y by( 2 )>
   <end>
<end>

Offline

 

Board footer