- Joined
- May 15, 2016
- Messages
- 2,531
- Reaction score
- 4,822
- First Language
- English
- Primarily Uses
- RMVXA
Sorry if the title isn't super helpful, there are a couple of questions I have, but they're in the same vein, so I'm using the same post. I'm trying to event an ABS, but at the moment, I'm stuck on the input handling. I've seen a few other people make these systems with events by checking if the player is pressing Space, otherwise, take damage. However, I noticed a huge flaw with that. You can just hold space for the entire battle and not get hit. That's not quite what I have in mind for an engaging and challenging battle system, LOL. I've considered using Input.trigger?, but that would make it much too hard now, because you have to be touching the enemy and pressing the button in the exact same frame, which is too precise for most players. So what I'd like to do is make a bigger window of time for the input to register. What I mean by this is, press the button, and if you're within say 90 frames of the button being pressed and you're touching the enemy, attack them. After that, you have to re-press the action button for the attack to register, so that we can eliminate the problem of the player holding Space for the entire battle and winning.
Sorry for the wall of text, I was trying to make sure I really explained what I wanted.
Sorry for the wall of text, I was trying to make sure I really explained what I wanted.