Game Development Community

Vibrating objects?

by Orion the Hunter · in Torque Game Builder · 12/15/2012 (11:39 am) · 2 replies

Hello,

I have an idea for a vibrating image behavior but I'm a little stuck. I want to make it so that when I land on a certain platform, it will vibrate and then fall. I already have the falling down (PSK) so I just need a vibrate command to stick in there onActorLanded. Any help would be appreciated!

AJPCEO

#1
12/15/2012 (4:52 pm)
Just use an animated sprite. Pause the animation at frame one, then when you collide with it play the animation. In the onAnimationEnd() callback clean it up.
#2
12/15/2012 (5:08 pm)
It's funny, I came to the same conclusion! Thanks.