All Goes not One

Non-platform specific questions.

All Goes not One

Postby Turon » Sun Jun 13, 2010 5:57 pm

:( I was happily making my game, I had sorted out the animation problem, then I ran into problems again... all the bad guys die if one of them dies.. what is the problem there?
Attachments
Super Ostrich.zip
(223.88 KiB) Downloaded 54 times
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: All Goes not One

Postby Scorpion50o1 » Sun Jun 13, 2010 9:36 pm

r u using clones for them
OMG IM SO BORED <(^^)> (>^^)> (>^^)>
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this into your signature.
User avatar
Scorpion50o1
 
Posts: 246
Joined: Fri Apr 17, 2009 1:07 am
Location: TX
Score: 8 Give a positive score

Re: All Goes not One

Postby Turon » Mon Jun 14, 2010 11:23 am

Yes I cloned it :|
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: All Goes not One

Postby Scorpion50o1 » Mon Jun 14, 2010 12:18 pm

well if they are cloned the script of "death" will work for all of them
OMG IM SO BORED <(^^)> (>^^)> (>^^)>
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this into your signature.
User avatar
Scorpion50o1
 
Posts: 246
Joined: Fri Apr 17, 2009 1:07 am
Location: TX
Score: 8 Give a positive score

Re: All Goes not One

Postby DST » Tue Jun 15, 2010 3:42 pm

It's not the 'DestroyActor' that's killing them. It's the collision.

In the last thread i helped you with, i told you to change the destroyactor target from 'enemy' to 'event actor', which you did. However....you still used 'enemy' in the ostrich>collision>top side of enemy.

A quick recap on targets:

Event Actor - the current actor you are scripting in.
Collide Actor - the actor that has collided with the current one.
Actor name - all actors with this name.

Now this is not your fault, because when you used the changeanimation event, it didn't give you the choice of 'collide actor', just enemy, event, or parent actor. It's a glitch in the game editor interface, i guess. I never noticed it before because....

You should never use events into the event list when they're responses to other events (i know that sounds silly but just listen).

Instead, use 'script editor', then load the events in there. In that way, you can insert as many response events into one trigger event as you wish, and easily manipulate them all. You can load all of them from the 'variables/functions' tab at the bottom of the script window just like you can from the actor window.

So to make it work, your collision event should look like this:

Ostrich>collision>top side>enemy>script editor>

variables/functions>changeanimation, enemy, enemy dead, forward. (you still can't choose collide here either),
then Edit the event by hand:

ChangeAnimation("enemy", "enemy dead", FORWARD); change it to this:
ChangeAnimation("Collide Actor", "enemy dead", FORWARD);


Using the script editor will make making games 100x easier. I've said that about other things too - and i meant it. 100x easier from one action, 100x easier from another action, eventually you can make your games 1 million times easier. And if that's the case, then how hard is making it the hard way? I'll tell you.....so hard, you can't finish them.

Trust me, use script editor as the response to events from now on. You'll be happy you did!
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: All Goes not One

Postby Turon » Tue Jul 20, 2010 12:19 pm

Oh I am so sorry, I was away for such a long time I forgot to respond. Well, I would just like to thank you for your advice. I will tell you if your plan works. :D
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: All Goes not One

Postby Turon » Tue Aug 17, 2010 11:27 am

I have tried your idea. Ostrich>collision>top side>enemy>script editor: ChangeAnimation {"collide Actor", "enemy dead",FORWARD}; It has not done anything :( but thank you all the same.

Wait just look at this attachment and see if I did anything wrong.
Attachments
Super Ostrich.zip
(644.81 KiB) Downloaded 49 times
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest