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

#1 2010-08-19 16:12:48

ChouGenkiDama
New Scratcher
Registered: 2010-07-21
Posts: 6

Un-Consistant Gravity?

How would i make it so that the character can walk upside down on walls and ceilings at certian points in the game? I know about using like a "Reverse Gravity Switch" but that would be pretty redundant if the level was in space.

Offline

 

#2 2010-08-19 16:37:21

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: Un-Consistant Gravity?

I have done it in this:
http://scratch.mit.edu/projects/colorfusion/1213373

You can look at or copy the scripts if you want.
If you want it to be more realistic, you can add a script to change the gravity strength depending on the distance to the nearest planet.

Offline

 

#3 2010-08-19 16:42:49

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: Un-Consistant Gravity?

Or you could do it like normal gravity, then when he gets to a certain point change a variable control to 1 or 0, then have a script like:

"if control = 1
change y by gravity
else
change y by 0 - gravity"

Sorry if I am making no sense, kind of tired.

Offline

 

Board footer