Hi all, I'm looking to implement a motion effect for damage popups in my game that acts similarly to how they appear in Mother 3 during combo attacks:
In this example, when an enemy is attacked, damage popups appear at the center of the particular target's sprite. These popups follow a path where the damage amount slowly rises and then gradually accelerates as it falls to the bottom of the frame and eventually moves off-screen. However, the path of this rise/fall animation varies with each attack from the player. Although the damage popup always appears centered on the enemy sprite, it can move either positively or negatively on the sprite's X-axis.
I am currently using Victor Sant's damage popup script. My question is, how can I create an effect similar to the one shown in the video above? While it may be easy to make the effect follow a set path for every popup using this plugin, I am having difficulty figuring out how to give it random directions to move in. Thanks in advance.
In this example, when an enemy is attacked, damage popups appear at the center of the particular target's sprite. These popups follow a path where the damage amount slowly rises and then gradually accelerates as it falls to the bottom of the frame and eventually moves off-screen. However, the path of this rise/fall animation varies with each attack from the player. Although the damage popup always appears centered on the enemy sprite, it can move either positively or negatively on the sprite's X-axis.
I am currently using Victor Sant's damage popup script. My question is, how can I create an effect similar to the one shown in the video above? While it may be easy to make the effect follow a set path for every popup using this plugin, I am having difficulty figuring out how to give it random directions to move in. Thanks in advance.