Quote: "
it's possible to end a level when pressing a key on the keyboard?
"
Yes, it is possible. You can use a trigger to activate the winzone. I do it on all my end levels, except I use the trigger to display the level stats, then it activates the winzone and ends my level.
OR
You place just the winzone and edit the script for the winzone so that it will activate the end level sequence when the key is pressed. What you will want to do is use the scancodekeypressed=28 (that's the Enter key) in your script. When that key is pressed, then the rest of the script will run and end your level.
For example, here is a standard winzone script:
:state=0,plrwithinzone=1:activateallinzone=1,sound=$0,state=1
To implement the Press Enter feature, you would need to modify the script to include the scancodekeypressed=28, and if you plan to have a hud display that to the player you also need to include the hud info in the script as well.
- BlackFox
The function of good software is to make the complex appear to be simple.