- Joined
- Oct 17, 2014
- Messages
- 6
- Reaction score
- 0
- First Language
- English
- Primarily Uses
So after spending some time, I couldn't find a way to make an overworld punching actions for my character. I came up with a common even that changes the characters sprite quickly to display a "punching" action which works with other events in game. The problem that I am running into is that the player needs to press a key for the action to be called through a common event. After mixing up Input.trigger with Input.press, I am experiencing fluxiating delay with the event.
[IMG]http://i.imgur.com/WWcEs2P.png[/IMG]
Basically, if you press CTRL, the character switches sprites to look like a punch, then switches back. However if you press the key again afterwards, nothing happens- it doesn't run it again. However after a few seconds or so, if I press CTRL, it will not only run it, but sometimes it will run multiple key pressess. However it will still not allow another input immediately afterwards. All I want to accomplish is that if the player pressess CTRL, it will run this action, and can be repeated with no problems. Also the two Input.updates are there due to me tinkering to try and fix this problem :/
[IMG]http://i.imgur.com/WWcEs2P.png[/IMG]
Basically, if you press CTRL, the character switches sprites to look like a punch, then switches back. However if you press the key again afterwards, nothing happens- it doesn't run it again. However after a few seconds or so, if I press CTRL, it will not only run it, but sometimes it will run multiple key pressess. However it will still not allow another input immediately afterwards. All I want to accomplish is that if the player pressess CTRL, it will run this action, and can be repeated with no problems. Also the two Input.updates are there due to me tinkering to try and fix this problem :/