April 19, 2024, 06:30:21 AM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
This forum provides RSS feed. To query recent posts use
this url
.
More...
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
press any key (SOLVED)
« previous
next »
Pages: [
1
]
Print
Author
Topic: press any key (SOLVED) (Read 2698 times)
0 Members and 1 Guest are viewing this topic.
Johny.D
Lurker
Karma: 0
Offline
Posts: 10
press any key (SOLVED)
«
on:
June 05, 2014, 10:50:30 PM »
Hello again,
I would like to ask If is some method there for check every key on keyboard.
My goal is simple scene before menu like for example in AAA games. With name of the game and simple flashing text
"press any key".
any ideas ?
«
Last Edit: June 07, 2014, 09:52:56 AM by Johny.D
»
Logged
anarchist
Regular poster
Karma: 5
Offline
Gender:
Posts: 212
Re: press any key
«
Reply #1 on:
June 06, 2014, 05:58:57 PM »
You can achieve this by catching the Keypress event. In game.script you can have something like this:
Code: WME Script
on
"Keypress"
{
if
(
Scene
.
Name
==
"NameOfTheScene"
)
{
Game
.
ChangeScene
(
<scene>,
FadeOut
,
FadeIn
)
;
}
...
}
You can try several values for FadeOut and FadeIn to make it look pretty.
Logged
Johny.D
Lurker
Karma: 0
Offline
Posts: 10
Re: press any key
«
Reply #2 on:
June 07, 2014, 09:52:10 AM »
Thank you !
Logged
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
press any key (SOLVED)