How is this done?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kronopy


How do I make the brick bounce like that when my character hit it? Do I need Kinematic2d Body or Rigid Body for it? Is it possible to do it with Title Set too, on individual bricks? Thank you.

Not this particular aspect. It helped me do everything, except making the brick bounce/move and return to position when hit.

kronopy | 2020-01-15 23:35

:bust_in_silhouette: Reply From: Asthmar

A simple way would be to just animate it in the animation player.

For example, make (using animation player) an animation bounce for the brick sprite, animated it and give the sprite an area 2d. When the player enters that area or hits the block, play the bounce animation.