Item sfx

Game Editor comments and discussion.

Item sfx

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

HIII!!!!Well,i wanted to ask a question:how to make,when sangoku is punching,an animation appear? Like if he toa person,an animation appear??? :? :D
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Item sfx

Postby j2graves » Sat Nov 10, 2007 1:29 pm

you mean change animation? or do you mean create a new actor?
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: Item sfx

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

Hum...i mean to create an new actor!! :D
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Item sfx

Postby j2graves » Sat Nov 10, 2007 1:39 pm

is the punch from a key down event? if so, also make a "create actor" action when the key is pressed.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: Item sfx

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

Okay,but even if the enemy is not touched,it will show the animation.How to make that it's only when the enemy is touched that it appears?, :D
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Item sfx

Postby j2graves » Sat Nov 10, 2007 1:56 pm

how about you add a variable like "touching" and add the event "collision" on "any side" of "the other guy" script editor:
Code: Select all
touching = 1;

and then add the "key down" event and write something like this in script editor:
Code: Select all
if touching = 1
{
create actor
touching = o;
}


if this dosn't work, let me know and I'll correct it. I still have to work on coding. but I just know that it is something like this!
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: Item sfx

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

I'll test it when i'll be at home!! Thanks you very much!! :D
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Item sfx

Postby j2graves » Sun Nov 11, 2007 6:04 pm

I've corrected it. I put _ _ _ where your actor's name will be.

Code: Select all
if (touching == 1)
{createactor _ _ _;
touching = 0;}
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: Item sfx

Postby Azou » Sun Nov 11, 2007 6:15 pm

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


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron