dynamogames Registered User |
Quote
|
2023-10-04 17:04:21 |
|
I think there is should be a behaviour in CopperCube which handles "if a key is pressed again", an action is performed. Currently, only when a key is pressed down once is handled. There might be a scenario where users would want to perform a particular action if a key is pressed again.
|
andgameplay Registered User |
Quote
|
2023-10-04 22:58:06 |
|
It's a good idea, but you can do this using variables in a simple way.
If X key is pressed, if a variable =0 so set a variable = 1 and do a action;
If X key is pressed again, if a variable = 1 so set a variable = 0 and do a action.
|
dynamogames Registered User |
Quote
|
2023-10-05 23:31:01 |
|
This is a good idea, but it will be much more effective to have a built in behaviour for it, it might be a bit strenuous if a person wants to perform "on key pressed again" on multiple keys in a game.
|