Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I'm trying to implement a Power-Up system where the player presses a key to use their Power-Up for instance "E key" , I'm having an issue where I only want the Power-Up to be only used once so after the player presses E key once, they can't use the Power-Up again. As CopperCube does not have a "If key is pressed again" behaviour, I don't know how to implement this. |
||||
|
@dynamogames, CopperCube Input Helper extension can help by letting you exactly define how often or in which case you want some input do something you want: https://hadoken-records.itch.io/... please check its description carefully, report here in case you might need any further assistance |
||||
|
I would just create a hidden scene node and attach the action to that - then when the key is pressed the first time, simply delete the node (do something later) so it won't be activated again... you can also just hide it, so if you want to use it again later on, you just need to unhide it to use it and then hide it again to stop using it. |
|