For my game, rise of the Decepticons (coming in 2.0, by the way), I want to animte transforming. Any ideas on how t go about that?
Offline
I reckon you can do this one of two ways: either you use just one sprite per transformer, and use costumes to animate it; or you could use several sprites per transformer, and move them around to create the animation.
Just shout if you want more help/explanation/detail!
Offline
Llamalover wrote:
I reckon you can do this one of two ways: either you use just one sprite per transformer, and use costumes to animate it; or you could use several sprites per transformer, and move them around to create the animation.
Just shout if you want more help/explanation/detail!
Thanks! I had that idea, I'm just stuck on how to script it. I would have the parts separate sprites, but transforming can be kinda complicated.
Offline
A quick way to do it would be to arrange all the sprites in the pre-transformed version of the character, and for each sprite, pull the 'go to x y' block, which should have the sprite's current position in it, then put this block under a When X recieved block. Then, rearrrange your sprites to create the second version of the character, and put the updated 'go to x y' block under a When Y recieved blocks.
Then all you have to do is broadcast X or Y, and the sprites will rearrange themselves to create whichever version of the character! You can also add 'point in Z direction', 'change size to ... ', 'switch to costume A', etc. blocks.
Good luck, and I can't wait to see the final project!
Offline
Llamalover wrote:
A quick way to do it would be to arrange all the sprites in the pre-transformed version of the character, and for each sprite, pull the 'go to x y' block, which should have the sprite's current position in it, then put this block under a When X recieved block. Then, rearrrange your sprites to create the second version of the character, and put the updated 'go to x y' block under a When Y recieved blocks.
Then all you have to do is broadcast X or Y, and the sprites will rearrange themselves to create whichever version of the character! You can also add 'point in Z direction', 'change size to ... ', 'switch to costume A', etc. blocks.
Good luck, and I can't wait to see the final project!
Thanks! I appreciate it!
Offline