You are not logged in.
Announcement
#1 23/09/09 11:05pm
different controls....
is there only a select group of keys that you can use for pc flash games or can you use every key...
if(Key.isDown(Key.ANYKEY?))
and i am talking about PC not PSP, i know psp has very little controls
-thanks
Last edited by CSMiller (24/09/09 12:05am)
[img]http://i632.photobucket.com/albums/uu42/CSMiller/plazia-creationsofficialwallpaper.jpg[/img]
www.plazia-creations.webs.com - PSPWallpapers, Portals, Online Portals, Gamesaves, and add-ons for the portal Plazia
Offline
#2 28/09/09 12:01pm
- g0ofygoober
- Hardcore Member
- Registered: 28/10/08
- Posts: 194
- Website
Re: different controls....
yeah you can pretty much use all the keys probably with the exception of some of them like print screen, caps lock etc.
>>>> http://www.pspflashzone.com <<<<
Offline
#3 28/09/09 2:35pm
- DarthFALCO
- Regular Member
- Registered: 13/05/07
- Posts: 44
- Website
Re: different controls....
Here's a list of key codes you can use like such:
if (Key.isDown(80)){
// do something by pressing the letter P
}
A - Z / 65 - 90 (eg. A=65, B=66, C=67 etc.)
0 - 9 / 48 - 57
0 - 9 (Numbpad) / 96 - 105
F1 - F12 / 112 - 123
Shift / 16
Enter / 13
Tab / 9
Esc / 27
Ctrl / 17
Alt / 18
Hopefully these will help you out. There are more, but I thought these would be the main keys you would likely need to use.
Offline
#4 28/09/09 7:48pm
- lilmb
- Serious Addict
- From: Latvia
- Registered: 22/06/08
- Posts: 305
Re: different controls....
Wow, nice Falco!
I always wanted to know how each key is numbered.
Offline
#5 16/10/09 5:32pm
Re: different controls....
major help...thanks
[img]http://i632.photobucket.com/albums/uu42/CSMiller/plazia-creationsofficialwallpaper.jpg[/img]
www.plazia-creations.webs.com - PSPWallpapers, Portals, Online Portals, Gamesaves, and add-ons for the portal Plazia
Offline
#6 16/10/09 5:43pm
- Alpha009
- Edge
- From: new york
- Registered: 03/02/08
- Posts: 1117
Re: different controls....
Teh ballzors....
Offline
#7 21/11/09 12:02am
Re: different controls....
DarthFALCO wrote:
Here's a list of key codes you can use like such:
if (Key.isDown(80)){
// do something by pressing the letter P
}
A - Z / 65 - 90 (eg. A=65, B=66, C=67 etc.)
0 - 9 / 48 - 57
0 - 9 (Numbpad) / 96 - 105
F1 - F12 / 112 - 123
Shift / 16
Enter / 13
Tab / 9
Esc / 27
Ctrl / 17
Alt / 18
Hopefully these will help you out. There are more, but I thought these would be the main keys you would likely need to use.
actually you can type this instead if(key.isDown(key.SPACE)){;
_root.gotoAndDie( [url]www.dako300.co.nr[/url] );
Offline
#8 21/11/09 6:55am
- DarthFALCO
- Regular Member
- Registered: 13/05/07
- Posts: 44
- Website
Re: different controls....
Yeah, you're right danomann. For some reason I thought he was asking for all other keys, not just arrows and spacebar.
So you can also use:
if (Key.isDown(Key.SPACE)){
// do something by pressing the space
}
if (Key.isDown(Key.LEFT)){
// do something by pressing the left arrow
}
if (Key.isDown(Key.RIGHT)){
// do something by pressing the right arrow
}
if (Key.isDown(Key.UP)){
// do something by pressing the up arrow
}
if (Key.isDown(Key.DOWN)){
// do something by pressing the down arrow
}
Offline