00:00
00:00
Newgrounds Background Image Theme
Upgrade Your Account!

Newgrounds made a lot of infrastructure upgrades this week and needs your help!

Become a Supporter for just $3 a month or $25 for the year.

Shout out to @travsaus for megaphone tankman!

NG Rumble set controls.

465 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".