Page 1 of 1

HELP??????? KEYDOWN QUESTION

PostPosted: Sat Jun 19, 2010 10:19 pm
by lllllsp1d3rlllll
HOW DO I WRITE

IF ANIMATION (RYU,CROUCHED) ;
IF DOWN KEY IS PRESSED;
CHANGEANIMATION(RYU,LEGSWEEP)

PLEAE HELP!!

Re: HELP??????? KEYDOWN QUESTION

PostPosted: Sat Jun 19, 2010 10:35 pm
by Hblade
use
Code: Select all
if (animindex == animnumber)
{
    change anime
}

Replace animnumber with the animation number. You can get that by looking at how ever many animations you have for that character, and counting from the top to the bottom. Example:
    standright 1
    standleft 2
    run/attack left 3
There ya go :D

Re: HELP??????? KEYDOWN QUESTION

PostPosted: Sat Jun 19, 2010 10:38 pm
by krenisis
Ok 1st you had asked about Ryu stop runnnig while punching ok I have took your game and fixed that part. Can you find more sprites so I can work on this futher like an enemy. I had made 3 commands and they work as follows

walkright
walkleft
punch

This commands are not included in the Game Editor they work as follows

walkright=1; that means you will walk right
walkright=0; that means you stop walking

They work for all the commands

You will see this in your GED download here

Re: HELP??????? KEYDOWN QUESTION

PostPosted: Sat Jun 19, 2010 11:20 pm
by lllllsp1d3rlllll
new files added and fixed some things

fixxx

PostPosted: Sat Jun 19, 2010 11:35 pm
by krenisis
OK

space bar = punch
up arrow = jump
left arrow = left
right arrow= right

Other vthings have been fixed like animations

Re: HELP??????? KEYDOWN QUESTION

PostPosted: Sun Jun 20, 2010 12:45 am
by krenisis
Now kicking and sweep kicking are added

left alt = kick
down and left alt= sweep kick

left alt is the button left of the space bar. enjoy

Re: HELP??????? KEYDOWN QUESTION

PostPosted: Sun Jun 20, 2010 12:53 am
by Hblade
Nice kren o.o