Super Mario Animation Sequence
by Victor Ferenzi · in Torque X 2D · 03/19/2009 (8:34 am) · 3 replies
Hi,
I am trying to figure out how to have my player jump, collide with the brick, have the brick animate up, on reposition have a coin float up from the brick to a desired height and then have the coin disappear and have some numeric amount animate up then disappear.
I hope what I have described what happens when you jump and hit the question mark brick in Super Mario.
I belive that creating a component will do the trick. I currently have a component that detects the collision and plays the brick moving up animation. Now I need to figure out how to play two more animations, one for the coin and one for the amount.
Any ideas or samples would be appreciated.
Thanks
I am trying to figure out how to have my player jump, collide with the brick, have the brick animate up, on reposition have a coin float up from the brick to a desired height and then have the coin disappear and have some numeric amount animate up then disappear.
I hope what I have described what happens when you jump and hit the question mark brick in Super Mario.
I belive that creating a component will do the trick. I currently have a component that detects the collision and plays the brick moving up animation. Now I need to figure out how to play two more animations, one for the coin and one for the amount.
Any ideas or samples would be appreciated.
Thanks
#2
tdn.garagegames.com/wiki/TorqueX/BrickComponent
I implemented it in one of my games:
www.youtube.com/watch?v=4OFrOoYCbw0
watch 0:50 - 1:05 where the player touches the squares from below and activates a "coin" that is falling down.
03/20/2009 (4:30 am)
Here is a useful component:tdn.garagegames.com/wiki/TorqueX/BrickComponent
I implemented it in one of my games:
www.youtube.com/watch?v=4OFrOoYCbw0
watch 0:50 - 1:05 where the player touches the squares from below and activates a "coin" that is falling down.
#3
03/20/2009 (6:05 am)
Thanks to both of you for your suggestions. I will look at what is here and I am sure it will help me.
Torque Owner Sean Monahan
For example, make a graphic for the amount and then assign this graphic to the emitter and adjust the settings so that the emitter only emits a single particle.