I would like to make a game where you control a sprite that moves over to other sprites which then stick on to it and move with it (a bit like katamari damacy). Can anyone show me some scripts that would be helpful to attach sprites to other sprites? thanks XD
Offline
This script will keep the sprite in the same place relative to the first sprite's position:
http://img811.imageshack.us/img811/6850/script.gif
Offline
kayybee wrote:
However, since Katamari rolls, it'll be kind of hard... I think Kileymeister's script is the best way, even though it does not roll.
I could make it roll too if that's what he needs. To get several to stick to any other object is just going to require plenty "if" blocks, I'm afraid. There probably is an easier method but I can't think of one.
This one takes rolling to account but I think it may glitch out in semi-rare cases. I tried it several times and it didn't glitch, but I am suspicious.
http://img855.imageshack.us/img855/6850/script.gif
Last edited by Kileymeister (2012-01-10 14:52:23)
Offline