Posted By
|
Message
|
Chrisbo
Registered 02/01/2002
Points 794
|
23rd July, 2009 at 01:40:32 -
Hey all
What object is used to allow users to define the keys in-game rather than using the regular menu? I'd like to have an options screen where keys are defined in there. Did a search and came up with nothing...I'm still trying to get a grasp of all the stuff MMF2 Dev has compared to MMF Express and MMF 1.2
Thanks!
hay
|
Chrisbo
Registered 02/01/2002
Points 794
|
23rd July, 2009 at 01:47:59 -
Wow. Nevermind. I wasn't looking in the right spot. I've got it now.
May the noob comments commence...
hay
|
OMC What a goofball
Registered 21/05/2007
Points 3516
|
23rd July, 2009 at 01:48:10 -
The joystick object can set it. It's under Player Control > Set key.
|
Chrisbo
Registered 02/01/2002
Points 794
|
23rd July, 2009 at 01:49:28 -
Yep just found that.. I should poke around a bit more before asking Thanks!
hay
|
Chrisbo
Registered 02/01/2002
Points 794
|
23rd July, 2009 at 01:53:32 -
Wait a sec...maybe I jumped the gun here. The Joypad object doesnt look like it'll let you define keys. The player control in the event editor does, but not in-game, it looks like it forces you to define it there in the event editor. Maybe I am missing something...
hay
|
Chrisbo
Registered 02/01/2002
Points 794
|
23rd July, 2009 at 01:54:56 -
DOH! I just ran the extension updater and there is a Joypad and Joystick object. DIdn't have the Joystick object. I'm getting it now... I will let you know the results. I'm sure you're in total suspense right now.
hay
|
Chrisbo
Registered 02/01/2002
Points 794
|
23rd July, 2009 at 01:58:49 -
Nope that wasn't it either. OldManClayton - which object are you referring to?
hay
|
OMC What a goofball
Registered 21/05/2007
Points 3516
|
23rd July, 2009 at 02:07:00 -
Ah, I see what you're asking. Try the control X object. You can ask for a key to be pressed and then use this to determine the last key pressed: LastKeyPressed$( "Control X" )
Hope that works for ya.
|
Ricky loves Left For Dead 2
Registered 28/12/2006
Points 4075
|
23rd July, 2009 at 02:10:06 -
The control X object allows player to change the controls.
after you add it say:
player, set"key"
"LastKeyPressed$( "Control X" )"
-
|
Ricky loves Left For Dead 2
Registered 28/12/2006
Points 4075
|
23rd July, 2009 at 02:11:07 -
curse you OMC, beating me to the post even though i beat you to the reply.
-
|
Chrisbo
Registered 02/01/2002
Points 794
|
23rd July, 2009 at 02:15:23 -
Looks like that's exactly what I'm looking for. I'll have to mess with it a bit but I think I've got it figured out.
Thanks a ton! I really appreciate it!
hay
|
|
|