Punching bag effect???
Hey everybody:
I am trying to create this effect. Imaging you punch a punching bag like a boxer do. The punching bag will swing a little. How could I recreate that effect in GS. Like if I have an image which for example is 2wide by 8height. The height is divided 6 of punching bag and 2 of chain.
I am trying to create this effect. Imaging you punch a punching bag like a boxer do. The punching bag will swing a little. How could I recreate that effect in GS. Like if I have an image which for example is 2wide by 8height. The height is divided 6 of punching bag and 2 of chain.
Comments
When bag collides with actor:
rotate to random(110, 270)
Or if you want to get technical create an attribute called powerofspeed. Inside the boxer hand. Constrain attribute game.powerofspeed to magnitude(self.linearvelocity.X,self.linearvelocity.Y)
also constrain it to a min of 1 & a max of 180
go into the bag
Rule:
when overlaps/collides with hand interpolate rotation to game.powerofspeed
Rule when self.rotation = game.powerofspeed interpolate self.rotation to 0
_________________________________________________
Full Game Creation Service
1 On 1 Project Help
1 on 1 GameSalad Tutoring
Tell me how it goes,
Matt
Matt
It keeps rotating from the center instead of from the top.
http://gamesalad.com/game/2873