Page 1 of 1

how to make yor actor punch demo

PostPosted: Thu Jul 22, 2010 10:01 pm
by krenisis
Ok press the space bar to make your actor punch.

Re: how to make yor actor punch demo

PostPosted: Thu Jul 22, 2010 10:03 pm
by krenisis
Ok if your dont understand anything in the code just ask and I will reply.

Re: how to make yor actor punch demo

PostPosted: Thu Jul 22, 2010 11:00 pm
by Game A Gogo
data.zip
(214.94 KiB) Downloaded 111 times

Here it is again, but optimized upon request, I hope this works :)

Re: how to make yor actor punch demo

PostPosted: Wed Jul 28, 2010 7:01 pm
by drinkingpee
hello krenesis :D thanks for the tutorial it really does make my actor punch lol, but there's a problem when i tried to make the enemy destroy my actor when they're collided, you see everytime my character punches the enemy, both of them are dead instead of just the enemy. why is that? (and sorry for my crappy english, im not actually a native english speaker :P )

Re: how to make yor actor punch demo

PostPosted: Thu Jul 29, 2010 2:59 am
by krenisis
drinkingpee wrote:hello krenesis :D thanks for the tutorial it really does make my actor punch lol, but there's a problem when i tried to make the enemy destroy my actor when they're collided, you see everytime my character punches the enemy, both of them are dead instead of just the enemy. why is that? (and sorry for my crappy english, im not actually a native english speaker :P )


Ok you have to look at my demo closely there is a secret. I have a filled region which is a blue outline object. When you press punch that object, which is invisible in game mode, hits the enemy. Go and look really closly at my demo and you see that object. If you still have problems let me know and i will assist you further.

Re: how to make yor actor punch demo

PostPosted: Thu Jul 29, 2010 4:25 am
by drinkingpee
so it's the blue outline object that actually destroys the enemy and not the character itself right?, now i understand :D.

another question krenesis :D , how can i make the blue outline object sticks to my character? so my character can punch while it's moving

Re: how to make yor actor punch demo

PostPosted: Thu Jul 29, 2010 5:15 am
by krenisis
ok the blue online is triggered when you press punch. You dont need to make it follow yoour actor.

OK look

select key down
choose a key and the repeat button just disable it
now add action
create actor
select the blue online
click ok

There you go!!!! Any time you punch you destroy the enemy. Do you need me to explian more?

Re: how to make yor actor punch demo

PostPosted: Thu Jul 29, 2010 7:44 am
by drinkingpee
nope that's enough for now :) , thanks krenesis :D

Re: how to make yor actor punch demo

PostPosted: Sun Sep 05, 2010 11:09 pm
by zxcvbnm
If you have any questions on how this works let me know . Feel free to ask here .

Re: how to make yor actor punch demo

PostPosted: Mon Sep 06, 2010 3:48 pm
by NightOfHorror
I like this but I am confused. First off I need a way to make it where it doesn't kill the enemy in one hit depending on their life. Also can you explain how you did the script. Thanks

Re: how to make yor actor punch demo

PostPosted: Mon Sep 06, 2010 7:07 pm
by lcl
I have to say that Game A Gogo's way to make this is better. :D
But the timer would be more long, so destroying enemies would be little easier.. :D

Kren, did you find out that your way, you can punch like minute before the enemy comes, 'cause there is no time limit.
And if you press space many times, you can just watch as the enemies die 'cause so many "punchit" actors are made and not destroyed... :D

Re: how to make yor actor punch demo

PostPosted: Mon Sep 06, 2010 7:08 pm
by zxcvbnm
Yes Lcl I did thats why I requested game a gogo to make a version himself . I knew there had to be another way.

Re: how to make yor actor punch demo

PostPosted: Tue Sep 07, 2010 4:16 pm
by lcl
:D