I'm trying to mess around with making a basic ATB system and I was hoping someone might be able to look at my current event and tell me why it's only occasionally working. It seems to work on stationary enemies but not on moving ones.
Essentially I'm figuring, player presses the OK button to attack. I play an animation and then I grab the player's location, then add to that location to grab the X,Y of the tile in front of the player. I use Get Location Info to put the Event ID of whatever event might be on that location into Variable 5 (HitEnemy), and then if there is one, (HitEnemy =/= 0), I play an animation on that event and then erase it. Then I reset the HitEnemy variable to 0 to start over.
Tell me what it looks like it's missing! Any help is appreciated. Thanks!
Essentially I'm figuring, player presses the OK button to attack. I play an animation and then I grab the player's location, then add to that location to grab the X,Y of the tile in front of the player. I use Get Location Info to put the Event ID of whatever event might be on that location into Variable 5 (HitEnemy), and then if there is one, (HitEnemy =/= 0), I play an animation on that event and then erase it. Then I reset the HitEnemy variable to 0 to start over.
Tell me what it looks like it's missing! Any help is appreciated. Thanks!