Astronut - like game
youngdeveloper
Member Posts: 8
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
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
Here is a demo (made by RThurman)
Link to demo- http://www.mediafire.com/download.php?97sa9cuutue39jw
Link to the original thread- http://forums.gamesalad.com/discussion/52494/spare-code-dump-it-here/p3
Now all I need to find is how to subtly put the actor on the orbit when affected by that gravity.
Here is the video with the problem. I wouldn't write here If I were not stuck with that.
I can definitly return the favor for the one who will figure out how to connect the gravity from angry birds, orbiting stuff and then realeasing the actor back in space in the straight line.
Thanks.