I'm trying to make an action sequence like Mario fires the fireball, which is that the fireball will bounce against the ground once and hit the enemy. I think if I get the X and Y position of the enemy and my actor, I can make the fireball bounce against the middle ground between the enemy and my actor with projectile. Can anyone tell me how to get those information? I've checked the script data, the $game things, but I don't know which is the one I need.
This is what I'm trying to do.
This is what I'm trying to do.