Does anybody know a simple way to make a program that makes a sprite attracted (i.e. gravity) to another sprite, like Seancanoodle's Little Planet?
Please help!!
Offline
AllScratchedUp wrote:
Does anybody know a simple way to make a program that makes a sprite attracted (i.e. gravity) to another sprite, like Seancanoodle's Little Planet?
Please help!!![]()
How about something like this?
[blocks]
<when green flag clicked>
<forever if><< <not> <touching[ Planet Sprite >>
<point towards( Planet Sprite
<move( 2 )steps>
<end>
[/blocks]
And if you don't want the sprite changing angle, you could use a hidden sprite to do the gravity part and have the falling sprite just positioning itself on the hidden sprite.
Offline
Thanks! There is one problem, though: ther's no way to rotate around the planet!
Offline