-
im thinking about making a fighting game but i stuck on a few components of the game.
first of all how do you get an enermy to follow or move towards you? i cant seem to get this one.
secondly how can you make "combo" moves and special moves? like by pressing three keys in a certain order.
if anyone can help me with then id be VERY happy.
many thanks
-
Senior Member
gasattack,
sorry I had to change your title. In this difficult times no one could posibly love violence..Ill answer your question shortly..
mad_sci
-
hey.
i do love violence but i hate mortal combat. but hey i understand what your saying. i hope us brits can help you guys out. but anyways can you change the title to somthing cool like "i love fighting games" ok its not cool but its better than people thinking i like mortal combat.
-
Senior Member
gasattack. done..now about the combos..for each key press assign a variable for example:
if ( key.isDown (key.LEFT)){combo+="a";}
if ( key.isDown (key.RIGHT)){combo+="b"}
from the first key down start a counter, at the end of the counter look at the string combo. It will be something like:
"abbab", or left-right-right-left-righ.
now you make a small array database with combos and match the above string..
mad-sci
-
Who needs pants?
For Mad Sci
Hey mad Sci i no ur probally busy , but..
could you help me start to make a fighting game ..
how to make a jump and punch and health and collision
i tried but it just doesnt work
-
theres a flash/anime website that has a tutorial on making fighting games...
HEY! A HISTORY-MAKING EVENT!!! MY 100th POST!!!
-
hey raislam are you talking bout http://www.shockanime.com ?
if so yeh ive been there but it doesnt really help me with what i want. it just tell you how to detect keypresses.
anyways can anyone help me with the second Q?
many thanks
-
thats wut i meant... and i think u should try the string functions like madsci suggested
-
ok the combo thing works!
buyt i have another Q. how can i make it so when you press a key you HAVE TO press it rather than just hold in down?
also i still need help with getting enermys to randomly appear and follow or go towards the character.
many thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|