how to make yor actor punch demo

Non-platform specific questions.

how to make yor actor punch demo

Postby krenisis » Thu Jul 22, 2010 10:01 pm

Ok press the space bar to make your actor punch.
Attachments
data.zip
(208.45 KiB) Downloaded 83 times
Tutorial Database for all beginners click this link
viewtopic.php?f=4&t=8680
krenisis
 
Posts: 606
Joined: Sat Jul 25, 2009 3:27 pm
Score: 51 Give a positive score

Re: how to make yor actor punch demo

Postby krenisis » Thu Jul 22, 2010 10:03 pm

Ok if your dont understand anything in the code just ask and I will reply.
Tutorial Database for all beginners click this link
viewtopic.php?f=4&t=8680
krenisis
 
Posts: 606
Joined: Sat Jul 25, 2009 3:27 pm
Score: 51 Give a positive score

Re: how to make yor actor punch demo

Postby Game A Gogo » Thu Jul 22, 2010 11:00 pm

data.zip
(214.94 KiB) Downloaded 110 times

Here it is again, but optimized upon request, I hope this works :)
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: how to make yor actor punch demo

Postby drinkingpee » Wed Jul 28, 2010 7:01 pm

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 )
drinkingpee
 
Posts: 13
Joined: Tue Jul 27, 2010 4:01 pm
Score: 1 Give a positive score

Re: how to make yor actor punch demo

Postby krenisis » Thu Jul 29, 2010 2:59 am

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.
Tutorial Database for all beginners click this link
viewtopic.php?f=4&t=8680
krenisis
 
Posts: 606
Joined: Sat Jul 25, 2009 3:27 pm
Score: 51 Give a positive score

Re: how to make yor actor punch demo

Postby drinkingpee » Thu Jul 29, 2010 4:25 am

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
drinkingpee
 
Posts: 13
Joined: Tue Jul 27, 2010 4:01 pm
Score: 1 Give a positive score

Re: how to make yor actor punch demo

Postby krenisis » Thu Jul 29, 2010 5:15 am

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?
Tutorial Database for all beginners click this link
viewtopic.php?f=4&t=8680
krenisis
 
Posts: 606
Joined: Sat Jul 25, 2009 3:27 pm
Score: 51 Give a positive score

Re: how to make yor actor punch demo

Postby drinkingpee » Thu Jul 29, 2010 7:44 am

nope that's enough for now :) , thanks krenesis :D
drinkingpee
 
Posts: 13
Joined: Tue Jul 27, 2010 4:01 pm
Score: 1 Give a positive score

Re: how to make yor actor punch demo

Postby zxcvbnm » Sun Sep 05, 2010 11:09 pm

If you have any questions on how this works let me know . Feel free to ask here .
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 yor actor punch demo

Postby NightOfHorror » Mon Sep 06, 2010 3:48 pm

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
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 yor actor punch demo

Postby lcl » Mon Sep 06, 2010 7:07 pm

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
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 yor actor punch demo

Postby zxcvbnm » Mon Sep 06, 2010 7:08 pm

Yes Lcl I did thats why I requested game a gogo to make a version himself . I knew there had to be another way.
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 yor actor punch demo

Postby lcl » Tue Sep 07, 2010 4:16 pm

:D
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest