cx001 Registered User |
Quote
|
2018-09-04 06:34:24 |
|
If I want to exit the game, I will have to press that x button to close it, but I want to make it so you can just press a button like escape to exit the game. is there any way I can do that?
|
erik Registered User |
Quote
|
2018-09-04 07:34:13 |
|
There is an action for that "quit application"
|
cx001 Guest |
Quote
|
2018-09-05 00:56:05 |
|
Thanks but how do you do that?
|
erik Registered User |
Quote
|
2018-09-05 07:03:09 |
|
In the scene graph explorer, click on the root node and go to behaviors, add a "when key pressed do something" behavior to it. As key, select whatever key you like, like "escape", and add an action to it. That action should be the "quit application" action.
|