HELP??????? KEYDOWN QUESTION

Non-platform specific questions.

HELP??????? KEYDOWN QUESTION

Postby lllllsp1d3rlllll » Sat Jun 19, 2010 10:19 pm

HOW DO I WRITE

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

PLEAE HELP!!
for more from me check out my web site!!!
http://venom-codings.bravehost.com/index.html
lllllsp1d3rlllll
 
Posts: 27
Joined: Sun Dec 13, 2009 6:26 pm
Score: 1 Give a positive score

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

Postby Hblade » Sat Jun 19, 2010 10:35 pm

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
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

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

Postby krenisis » Sat Jun 19, 2010 10:38 pm

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
Attachments
new game.zip
Revised version
(131.19 KiB) Downloaded 63 times
Tutorial Database for all beginners click this link
viewtopic.php?f=4&t=8680
krenisis
 
Posts: 606
Joined: Sat Jul 25, 2009 3:27 pm
Score: 51 Give a positive score

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

Postby lllllsp1d3rlllll » Sat Jun 19, 2010 11:20 pm

new files added and fixed some things
Attachments
new game.zip
(154.37 KiB) Downloaded 65 times
for more from me check out my web site!!!
http://venom-codings.bravehost.com/index.html
lllllsp1d3rlllll
 
Posts: 27
Joined: Sun Dec 13, 2009 6:26 pm
Score: 1 Give a positive score

fixxx

Postby krenisis » Sat Jun 19, 2010 11:35 pm

OK

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

Other vthings have been fixed like animations
Attachments
new game.zip
fixxed some bugs
(132.91 KiB) Downloaded 54 times
Tutorial Database for all beginners click this link
viewtopic.php?f=4&t=8680
krenisis
 
Posts: 606
Joined: Sat Jul 25, 2009 3:27 pm
Score: 51 Give a positive score

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

Postby krenisis » Sun Jun 20, 2010 12:45 am

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
Attachments
new game.zip
more improvements
(141.23 KiB) Downloaded 69 times
Tutorial Database for all beginners click this link
viewtopic.php?f=4&t=8680
krenisis
 
Posts: 606
Joined: Sat Jul 25, 2009 3:27 pm
Score: 51 Give a positive score

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

Postby Hblade » Sun Jun 20, 2010 12:53 am

Nice kren o.o
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest