A "kage bunshin"

Game Editor comments and discussion.

A "kage bunshin"

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

Okay...How....How.....Oh no i forgot again!!! No....How to make a clone? For example,if i push down down and insert,there will be a clone who is with me,but not against me?? And how to make him that,at once he's touched 6 times,he dies? 8) :lol:
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: A "kage bunshin"

Postby Azou » Thu Nov 22, 2007 8:27 pm

Plase can you answer me because i need it really! :cry:
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: A "kage bunshin"

Postby speckford123 » Tue Dec 04, 2007 6:21 pm

i done this in a naruto game once, ok first make a variable called, lets say, jutsu. And then another called jutsuP. the first one is to tell the game what move your using the second is to be able to have button combinations. Now choose the buttons that your combos will be used on ( I used 1,3,7 and 9 on num-pad).
after this select a button to use the move ( i used 5 on num-pad) now on key-down for all combo keys(1,3,7,9) have the script:
jutsuP=jutsuP*10; //also make sure on create actor jutsuP is 1 (jutsuP=1;). The script will define what combo position your at. Also while your at it, before previous code, have your combo buttons do this code (example is for the 1 key): jutsu=jutsu+1*jutsuP; this will put the number 1 at the begining of your combo . for example 3 would look like this: jutsu=jutsu+3*jutsuP; all together the 1 keys script should look like this:
jutsu=jutsu+1*jutsuP; jutsuP=jutsuP*10;
now for using combo on press key(5) have something like this: if(jutsu==13179)CreateActor("player", "chosenanimation", "(none)", "(none)", 0, 0, false);
what that code basicly says is if you pressed 1 then 3 then 1 then 7 then 9 it will create an actor. after that code put this one: jutsuP=1;
and that one just tells the game to reset your combo position.

as for clones, why not just create another you? it will control the same as the original. as for hits use a health variable like hp, on create actor try:
if(cloneindex>0)hp=7; this just says that if its a clone of the original give it its own health;

if i forgot something or you need more help dont hesitate to ask, we the forums will help.
speckford123
 
Posts: 334
Joined: Fri May 05, 2006 6:33 pm
Score: 49 Give a positive score

Re: A "kage bunshin"

Postby Azou » Tue Dec 04, 2007 6:59 pm

Okay,thanks very much!!! That'll help me! :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