The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Fri May 15, 2020 5:46 am

Forum rules


IMPORTANT

This Forum is for Flash related questions ONLY! Do not ask questions about spriting, Game Maker, Photoshop, or anything else not related to Flash.



 [ 8 posts ] 
[Request] Key Combinations in a Game 
Author Message

Joined: Mon Aug 11, 2008 5:44 pm
Posts: 3
can u be more specifict like where do iu put it or what do i do with it!


Last edited by grimo97 on Tue Aug 12, 2008 6:47 am, edited 1 time in total.



Mon Aug 11, 2008 6:22 pm
User avatar

Joined: Mon Aug 11, 2008 8:43 am
Posts: 209
Location: Here.
<_<

You gotta give us more info...

_________________
Image


Last edited by pauzle on Tue Aug 12, 2008 3:00 pm, edited 1 time in total.



Mon Aug 11, 2008 7:32 pm

Joined: Mon Aug 11, 2008 7:20 pm
Posts: 28
Location: Here, there, Everywhere.
grimo97 wrote:
can anyone tell me how to make combos for a game im making please!!!!! :cry:

errr u see i would post thjis but i dont know if people would get mad for it being too long :doh:
but luckily i saved x2is tutorial :P
use this for something like up+whatever


Code:
onClipEvent(enterFrame) {
if(Key.isDown(Key.UP) && (Key.isDown(Key.DOWN)){
//arial attack instructions
this.gotoAndPlay(''insert the frame here'');
}


and use this for regular keys like P or O or whatever
Code:
onClipEvent(enterFrame) {
if(Key.isDown(63)) {
  //Code
//Insert attack frame here
    this.gotoAndPlay(''insert the frame here'');
  }
}


and heres the keycodes so you can chosse which keys you want to use for your liking XP
A - 65
B - 66
C - 67
D - 68
E - 69
F - 70
G - 71
H - 72
I - 73
J - 74
K - 75
L - 76
M - 77
N - 78
O - 79
P - 80
Q - 81
R - 82
S - 83
T - 84
U - 85
V - 86
W - 87
X - 88
Y - 89
Z - 90
0 - 48
1 - 49
2 - 50
3 - 51
4 - 52
5 - 53
6 - 54
7 - 55
8 - 56
9 - 57
---------------------------
---------------------------
Numeric keys
Numbpad 0 - 96
Numbpad 1 - 97
Numbpad 2 - 98
Numbpad 3 - 99
Numbpad 4 - 100
Numbpad 5 - 101
Numbpad 6 - 102
Numbpad 7 - 103
Numbpad 8 - 104
Numbpad 9 - 105
Multiply - 106
Add - 107
Enter - 13
Subtract - 109
Decimal - 110
Divide - 111
---------------------------
---------------------------
Function key
F1 - 112
F2 - 113
F3 - 114
F4 - 115
F5 - 116
F6 - 117
F7 - 118
F8 - 119
F9 - 120
F10 - This key is reserved by the system and cannot be used in ActionScript.
F11 - 122
F12 - 123
F13 - 124
F14 - 125
F15 - 126
---------------------------
---------------------------
Other Keys
Backspace - 8
Tab - 9
Clear - 12
Enter - 13
Shift - 16
Control - 17
Alt - 18
Caps Lock - 20
Esc - 27
Spacebar - 32
Page Up - 33
Page Down - 34
End - 35
Home - 36
Left Arrow - 37
Up Arrow - 38
Right Arrow - 39
Down Arrow - 40
Insert - 45
Delete - 46
Help - 47
Num Lock - 144
; : - 186
= + - 187
- _ - 189
/ ? - 191
` ~ - 192
[ { - 219
\ | - 220
] } - 221
" ' - 222

_________________
*adopted by [RANDM] and Kirby_Wins*
Ganonthegreat wrote:
TerminX wrote:
Kyuubit wrote:
Kindom Hearts?

Wtf is that? I've heard of Kingdom Hearts, but not Kindom.

Like Condom Hearts, but cleaner.

So tempted to sig.


Mon Aug 11, 2008 7:48 pm
WWW
User avatar

Joined: Mon Aug 11, 2008 6:56 am
Posts: 469
Location: not so superhappy fun fun land....
I think he means combos like punch1, then punch2, then punch3, ect.

_________________
Image

ashante08 wrote:
We argue, we try to understand each of our problems, we argue some more, rinse and repeat


Tue Aug 12, 2008 7:55 am
User avatar

Joined: Mon Aug 11, 2008 1:09 pm
Posts: 166
Location: England lol
Gender: Male
Currently Playing: Minecraft
johnnyg5646 wrote:
I think he means combos like punch1, then punch2, then punch3, ect.



Its possible with arrays, just build an array of attacks that then gets rid of the first item in the array when the attack has been performed. Then add any to the end of the array.


Tue Aug 12, 2008 11:37 am
WWW
Legendary Ghost
User avatar

Joined: Mon Aug 04, 2008 7:44 am
Posts: 1031
Location: Pennsylvania
Country: United States (us)
Gender: Male
x2i wrote:
johnnyg5646 wrote:
I think he means combos like punch1, then punch2, then punch3, ect.



Its possible with arrays, just build an array of attacks that then gets rid of the first item in the array when the attack has been performed. Then add any to the end of the array.

he probably doesn't know what an array is...

_________________
Place all complaints in the circular file.


Tue Aug 12, 2008 2:40 pm
User avatar

Joined: Mon Aug 11, 2008 1:09 pm
Posts: 166
Location: England lol
Gender: Male
Currently Playing: Minecraft
Deep Thought 42 wrote:
x2i wrote:
johnnyg5646 wrote:
I think he means combos like punch1, then punch2, then punch3, ect.



Its possible with arrays, just build an array of attacks that then gets rid of the first item in the array when the attack has been performed. Then add any to the end of the array.

he probably doesn't know what an array is...


Well, as soon as I have a bit more time I am going to transfer all of the flash tutorials I wrote at the old MG.


Tue Aug 12, 2008 3:04 pm
WWW

Joined: Mon Aug 11, 2008 5:44 pm
Posts: 3
thanks for saying you will give all your flash tuts to me


Tue Aug 12, 2008 4:45 pm
Display posts from previous:  Sort by  
 [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.