collosion Impact
Hello
I am currently working on a 2D project...in which an object falls from a random height in y direction...as soon as the object collides with the ground...the ground shakes...in this case i am trying to shake the background image in x direction for showing(make feel) the impact...
Thus the higher the height more the impact and lesser the height less the impact...
In this case the background image shakes for more time if impact is more and shakes for less time if impact is less...
Please can anyone suggest some ways as to how is this possible to achieve...possibly some examples...
Any suggestion would be of great help....
Thank You
well, here's my suggestion:
take this variable called obj_y_start
that variable is where the object starts.
next, take the y value where the object lands and subtract the two.
finnaly, use these values to shake the screen.
take this variable called obj_y_start
that variable is where the object starts.
next, take the y value where the object lands and subtract the two.
finnaly, use these values to shake the screen.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement