Punching,kicking,....left

Non-platform specific questions.

Punching,kicking,....left

Postby Azou » Sat Nov 10, 2007 1:41 pm

Helloo...I've got a problem:how to punch,kick or something like that in left?? i tried,but this is too hard! :twisted: :x
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Punching,kicking,....left

Postby Rux » Sat Nov 10, 2007 6:08 pm

Make a var called dir. On key down for the punch AND kick(2 separate scripts)
Code: Select all
if(dir == 0)
{
    ChangeAnimation(*"Punch Left"*);
}
else if(dir == 1)
{
   ChangeAnimation(*"Punch Right"*);
}

On key down for left,
Code: Select all
dir = 1;

On key down for right,
Code: Select all
dir = 0;


Create Actor Event on player,
Code: Select all
dir = 0;

Also if you don't want the animations to repete do an animation finish event for both, Animation Finish (Punch Left): Change Animation "Stand Left"ect...

Hope this helps. Note in script editor use the events and actions menu for create actor, cause thats not how to do Create Actor in Script Editor.
Last edited by Rux on Sat Dec 01, 2007 5:29 pm, edited 1 time in total.
I'm not good at coming up with signatures...
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score

Re: Punching,kicking,....left

Postby Azou » Sat Nov 10, 2007 6:45 pm

okay i 'll test as soon as i'll have free time! :D
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Punching,kicking,....left

Postby Azou » Sat Dec 01, 2007 12:08 pm

Please,Rux (or somebody else)i know that you're very busy, :oops: but ...i tried,and that's not work.Here is a demo.Can you make it for me,please?? :?
Attachments
Tht demo.rar
Source files.....
(1.94 MiB) Downloaded 105 times
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Punching,kicking,....left

Postby Spidy » Sat Dec 01, 2007 2:52 pm

i think bee-ant or mike will help ya.maybe sgt.sparky
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: Punching,kicking,....left

Postby Azou » Sat Dec 01, 2007 4:31 pm

Okay! :P
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Punching,kicking,....left

Postby Rux » Sat Dec 01, 2007 5:35 pm

I fixed my script. In the first script I forgot to put else on the second half of the script.

Anyway here is the working version of your demo. :D
Attachments
tht help.zip
Here :)
(1.93 MiB) Downloaded 105 times
I'm not good at coming up with signatures...
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score

Re: Punching,kicking,....left

Postby Azou » Sat Dec 01, 2007 6:08 pm

Thanx man!! I gave you a point!! :D
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Punching,kicking,....left

Postby Bannock » Sun Dec 02, 2007 3:31 am

I apolagize for continuing a thread that has served it's purpose, but I felt it would be appropriate to place this question here, rather than start a new topic.

Based off of the first bit of script given in this thread, not the modified one, I made my own version of this and got it working. However, what I'd like to know, is an easy method of of preventing the player from hitting the attack key multiple times in a row.
The attack animation has Repeat disabled so you can't hold the attack button down, but you can still hit it again while it's in the middle of the attacking animation, which if nothing else, can allow a sort of rapid fire attack.
I can only guess that it would involve timers, but I don't have much experiance (see: none) with that sort of thing.
User avatar
Bannock
 
Posts: 20
Joined: Tue Sep 11, 2007 7:59 am
Score: 2 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron