• Source Engine:Flash
    134 replies, posted
[QUOTE=geel9;23812442]I'm saying it's not worth the time.[/QUOTE] Most of the thread has been people complaining about it... The easy fix is to use a non-OEM-specific virtual keycode instead, like one of the function keys.
How about you just add a button on screen that opens console. (give it a ~ symbol)
It took me like 20 minutes to make a key mapping system in flash to use in my games, it's really simple. [img_thumb]http://lh5.ggpht.com/_vG1Erib5NQU/TFkzeLoDvxI/AAAAAAAAAA8/x6yELC_BsQg/flashkeymapping.jpg[/img_thumb] Just have variables that contain the keyCodes of the whatever and have a little menu where you can press a button to record a keyCode for a certain thing. example: [CODE] var jumpKeyCode:Number = 12; var suicideKeyCode:Number = 53; var jumpKeyDown:Boolean = false; var suicideKeyDown:Boolean = false; public function keydown(e:KeyboardEvent){ switch(e.keyCode){ case jumpKeyCode: jumpKeyDown = true; break; case suicideKeyCode: suicideKeyDown = true; break; } } public function keyup(e:KeyboardEvent){ switch(e.keyCode){ case jumpKeyCode: jumpKeyDown = false; break; case suicideKeyCode: suicideKeyDown = false; break; } }[/CODE] Then just have a menu where you change value of jumpKeyCode, etcetera to whatever the use pressed after they clicked the record/set button. jumpKeyCode = e.keyCode; And if you want it to display the actual name of the key to the user instead of just the keyCode; i found an array on the internet (had to fix it up a bit) which had the name of each key in the position of it's keyCode (e.g "Spacebar" has a key code of 32 so it's 32 in the array). Not sure if there's a better way to do it in Flash but if you don't mind a 256 so long array; it'll do. [CODE] var keynames:Array = ["0","1","2","3","4","5","6","7","Backspace","Tab","10","11","Center","Enter","14","15","Shift","Control","Alt","Pause","Caps Lock","21","22","23","24","25","26","ESC","28","29" ,"30","31","Space","Page Up","Page Down","End","Home","Left","Up","Right","Down","41","42","43","44","Insert","Delete","47","0","1","2","3","4","5","6","7","8","9","58","59","60","61","62","63","64","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","Windows","Windows","Menu","94","95","Num 0","Num 1","Num 2","Num 3","Num 4","Num 5","Num 6","Num 7","Num 8","Num 9","Num *","Num +","108","Num -","Num .","Num /","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","Num Lock","Scroll Lock","146","147","148","149","150","151","152","1 53","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185",";","+",",","-",".","/","~","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","[","\\","]","'","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255"]; [/CODE]
[img]http://mindprod.com/image/keyboard/maltronetype.png[/img] Can never go wrong with this.
[QUOTE=xAustechx;23824848][img]http://mindprod.com/image/keyboard/maltronetype.png[/img] Can never go wrong with this.[/QUOTE] Looks so uncomfortable, but at the same time so comfy.
[QUOTE=NorthernGate;23826945]Looks so uncomfortable, but at the same time so comfy.[/QUOTE] Indeed it does.
[QUOTE=xAustechx;23824848][img]http://mindprod.com/image/keyboard/maltronetype.png[/img] Can never go wrong with this.[/QUOTE] Have to try one of these at least once in my life.
this should be stickied
Soo, any progress? [highlight](User was banned for this post ("Pointless bump" - Overv))[/highlight]
Yeah, you made a thread Geel saying you were working on this, how far have you come? If you stopped developing it, next time don't make a thread at 0.5% completion, and then stop.
[QUOTE=Apple Pi;28523841]Yeah, you made a thread Geel saying you were working on this, how far have you come? If you stopped developing it, next time don't make a thread at 0.5% completion, and then stop.[/QUOTE] wow, a project was abandoned.. how rare! how [b]dare[/b] he do such a dastardly thing!
[QUOTE=Apple Pi;28523841]Yeah, you made a thread Geel saying you were working on this, how far have you come? If you stopped developing it, next time don't make a thread at 0.5% completion, and then stop.[/QUOTE] It's Geel we're talking about here so....
I thought it was pretty cool, I like source and flash, and I was sad to see it what stopped being developed.
[QUOTE=Garb;28523879]I thought it was pretty cool, I like source and flash, and I was sad to see it what stopped being developed.[/QUOTE] There are plenty of people who model their engines off source (me being one), this is hardly unique.
[QUOTE=Apple Pi;28523841]Yeah, you made a thread Geel saying you were working on this, how far have you come? If you stopped developing it, next time don't make a thread at 0.5% completion, and then stop.[/QUOTE] I stopped developing it because I realized I didn't have the experience to do so and because I was met with 100% hostility; what's the point?
Sorry, you need to Log In to post a reply to this thread.