Astronut - like game

Hi!

So I am trying to do the Astronut - like game (free lite version) with few modifications, but the core stays almost the same. I started with detecting collisions and orbiting, so what I've got after forums research:

Let's say that planet is at the center of the ipad, so

If the actor collides with space around the planet, then interpolate (ease in/out) to
100*sin( self.Time *50)+512
100*cos( self.Time *50)+384

and if x=100*sin( self.Time *50)+512 then constrain the above

it works just fine with few glitches I don't know how to get rid off - it jumps to the orbit quite too fast.

However, I want to make it the same as is in the Astronut (free lite version), so it doesn't always pull the player to the planet, it sometimes simply change its direction slightly and I simpy dunno how to achieve it. Tried acceleration, but looks very bad.

Have you got any idea how to make it happen? I would appreciate every help, as I am stuck :/

Comments

Sign In or Register to comment.