Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
If a key is pressed again behaviour

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.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internati?nal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact