How to make your actor slash tutorial

Learn how to make certain types of games and use gameEditor.

How to make your actor slash tutorial

Postby zxcvbnm » Wed Sep 08, 2010 8:37 pm

Ok the controls are follows

Press spacebar to slash enemies that are comming at you . If you dont slash , then your actor gets destroyed.
Next post will be tutorial.
Attachments
slash1.ged.zip
(3.94 KiB) Downloaded 233 times
Check out Momo AlienStarcatcher , featured in apples new and noteworthy and has 5 star reviews!!!
http://itunes.apple.com/us/app/momo-ali ... 61779?mt=8
zxcvbnm
 
Posts: 248
Joined: Sun Aug 22, 2010 7:57 pm
Score: 10 Give a positive score

Re: How to make your actor slash tutorial

Postby zxcvbnm » Wed Sep 08, 2010 8:50 pm

Ok 1st we need 2 actors

hero ( 2 frames of animation , 1 when he slashes and 1 where he is not )
enemy

Then you need to declare 1 variable

hit

Now lets begin!!

Click on hero // click on keydown // click on spacebar// click on add action // click on script editor //

ChangeAnimation (" put your slashing animation here");
hit=1;

click immediate action

Ok now click on your hero // click keyup // click the spacebar // click add action // script editor //

ChangeAnimation(" put your standing still animation here");
hit=0;

Now for the last step of your hero

Click on hero // click on collision // on any side of // enemy // add action // script editor //

Code: Select all
if(hit==1)
{
DestroyActor("Collide Actor");
}


Click add action and now your almost done.
Last edited by zxcvbnm on Thu Sep 09, 2010 2:50 am, edited 1 time in total.
Check out Momo AlienStarcatcher , featured in apples new and noteworthy and has 5 star reviews!!!
http://itunes.apple.com/us/app/momo-ali ... 61779?mt=8
zxcvbnm
 
Posts: 248
Joined: Sun Aug 22, 2010 7:57 pm
Score: 10 Give a positive score

Re: How to make your actor slash tutorial

Postby zxcvbnm » Wed Sep 08, 2010 8:55 pm

Ok now for your enemy its simple

click on enemy // click on collision // on any side of // hero // add action // script editor //
Code: Select all
if(hit==0)
{
DestroyActor("hero")
}


Thats it your done !! if you have any questions feel free to ask.
Check out Momo AlienStarcatcher , featured in apples new and noteworthy and has 5 star reviews!!!
http://itunes.apple.com/us/app/momo-ali ... 61779?mt=8
zxcvbnm
 
Posts: 248
Joined: Sun Aug 22, 2010 7:57 pm
Score: 10 Give a positive score

Re: How to make your actor slash tutorial

Postby NightOfHorror » Thu Sep 09, 2010 2:48 am

Does this work by making weaker enemies die in one hit, but stronger enemies don't die in one, two, maybe three. or more. Boss's definetly can't just die in one hit. Thanks :)
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score

Re: How to make your actor slash tutorial

Postby zxcvbnm » Thu Sep 09, 2010 2:52 am

This is the 1 hit code . Please practice this and get it down pat 1st. After you tell me you got this down pat , I will tell you how to add
hit points to the enemies. Did you start making the game already ? How is your progress ?
Check out Momo AlienStarcatcher , featured in apples new and noteworthy and has 5 star reviews!!!
http://itunes.apple.com/us/app/momo-ali ... 61779?mt=8
zxcvbnm
 
Posts: 248
Joined: Sun Aug 22, 2010 7:57 pm
Score: 10 Give a positive score

Re: How to make your actor slash tutorial

Postby lcl » Thu Sep 09, 2010 12:19 pm

Kren, this is actually the same thing as your make your actor punch tutorial...
This is just done better way, but you still can just hold spacebar and kill every enemy that comes... :?

You should make it just do one hit and then stop, so you can't just hold spacebar... :D
Nice work still. :D
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: How to make your actor slash tutorial

Postby NightOfHorror » Thu Sep 09, 2010 11:40 pm

I do gotta agree, but sadly no I haven't :( The only reason is because I am working on a retro game for you. :)
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest