Hello everyone.
I am trying to make a projectile mechanic in my game. I figured since I want this to be a parallel process that can be active on any map, I will make the projectile an animation rather than an event that moves.
I have my system set up like this:
When the player is facing one direction, and pressing the okay button, the animation will play, then, a projectile, which was previously at the players X and Y coordinates, increases in the direction the player is facing. The problem I have with this system is that anytime the player shoots the projectile, it remains in the position shot until the player moves. This can be seen in my video, as the event shot will try to get up and fail until I walk away. One other thing I noticed is when shooting the projectile from further away, then approaching the range at which the projectile has, it activates despite the projectiles variables only supposedly going up two...
Finally, and most importantly, with this system, the projectile (seemingly) travels two tiles. I want it to travel one tile and then one more, so that if an enemy is one space away they're still damaged, as well as two spaces away. Attached is the code for my event as well as a video.
Link to video of gameplay problem
I am trying to make a projectile mechanic in my game. I figured since I want this to be a parallel process that can be active on any map, I will make the projectile an animation rather than an event that moves.
I have my system set up like this:
When the player is facing one direction, and pressing the okay button, the animation will play, then, a projectile, which was previously at the players X and Y coordinates, increases in the direction the player is facing. The problem I have with this system is that anytime the player shoots the projectile, it remains in the position shot until the player moves. This can be seen in my video, as the event shot will try to get up and fail until I walk away. One other thing I noticed is when shooting the projectile from further away, then approaching the range at which the projectile has, it activates despite the projectiles variables only supposedly going up two...
Finally, and most importantly, with this system, the projectile (seemingly) travels two tiles. I want it to travel one tile and then one more, so that if an enemy is one space away they're still damaged, as well as two spaces away. Attached is the code for my event as well as a video.
Link to video of gameplay problem