Sign in to follow this  

collosion Impact

This topic is 2845 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

This topic is 2845 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this