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

#1 2009-02-12 03:26:11

doctorgoo
Scratcher
Registered: 2009-02-10
Posts: 8

need help with grav (UPDATE)

IF ANY ONE COULD PLEASE HELP ME WITH MY GRAVITY SITUATION I WILL SEND THEM THE GAME AND THEN COULD YOU DO IT FOR ME?

(if you havent read my gravity post please read that)

Offline

 

#2 2009-02-12 06:05:36

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: need help with grav (UPDATE)

if someone else does it for you, what have you gained?
I'll tell you the theory (which is very simple) and then you make it. This way you have learnt how to make gravity, and not have to ask on the fourms every time!

The simple idea is this:
gravity is a variable, so make a variable called gravity.
Now, im asuming your making a PlatFormer, if your character is touching the platform, gravity = 0, else gravity changes by negative X- X being the power of your gravity (id suggest a number below -1). Now, change your characters y by gravity, and presto, it works.

Offline

 

Board footer