00:00
00:00
Newgrounds Background Image Theme

kkolo just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

NG Rumble set controls.

511 Views | 0 Replies
New Topic Respond to this Topic

NG Rumble set controls. 2008-12-11 14:54:58


I was wondering if someone could show me a step by step tutorial on how users can set their own keys. I know I would have to use the var in the script, for example:

onEnterFrame = function() {
if (Key.isDown(upkey)) {
mcUse._y -= 5;
}
}

But what I'm stuck on is executing the Key.getCode() by clicking on the MC in the stage, such as clicking the up MC to set the new up key, also I need the MC to say via image "Click Any Key", as well I need it to say the key you selected in a text box, and last I need to figure out how to set defaults.

What I was thinking of doing is using getASCII and somehow telling it put it in a dynamic text box on the first frame of the adjacent MC. Then when the MC is clicked on, it should go to frame two and say "Hit Any Key".