Does killer kill all?
5 posts • Page 1 of 1
Does killer kill all?
My question is is there a way to set what types of shapes a shape marked as killer deletes? (e.g collision groups)
- Aglophun
- Posts: 7
- Joined: Fri Mar 26, 2010 5:33 am
Re: Does killer kill all?
Aglophun wrote:My question is is there a way to set what types of shapes a shape marked as killer deletes? (e.g collision groups)
First, make sure Advanced mode is on (if it is not, turn it on).
Depending on whether you want to make it so that if an object is of that collision group, then it sets to killer, otherwise, it turns off killer, or, if you want it to determine only if the state is true, otherwise keep it as it previously was or, if you just want it to question if it has a certain tick enabled, and if it does, to set it to killer (so, if "A" is ticked, whether or not "B", "C", etc. are ticked or not is irrelevant), I'll just explain the first method here
Method 1:
Select all objects in your scene and put this code into the "killer" field of the script menu:
- Code: Select all
collideSet == 0b<GFEDCBA>
Where GFEDCBA equals the states of the collisions the letters represent, for example:
- Code: Select all
collideSet == 0b0001000
represents D collision only.
Example:

Method 2:
Select all objects in your scene and put this code into the "killer" field of the script menu:
- Code: Select all
collideSet == 0b<GFEDCBA> ? true : killer
GFEDCBA means the same in this situation

If you need more information let me know (I can do Method 3, but it's a little less straightforward than these), hopefully this helped.
And, if I've completely misunderstood your question, then the answer is to layer two shapes on top of each other and apply killer only to the layers you want to kill each other (it's quite complicated
- gradyfitz
- Posts: 174
- Joined: Tue Sep 01, 2009 8:33 am
- Location: Victoria, Australia
Re: Does killer kill all?
You know, he can just set the collision groups manually. 
Last edited by Chronos on Fri Mar 26, 2010 7:20 pm, edited 1 time in total.
TheWinkits wrote:They both looks of cuking amazing
-

Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: Does killer kill all?
I was going to say that. It's a hell of a lot easier.
-

Sonic - Posts: 1467
- Joined: Tue Sep 01, 2009 6:18 pm
- Location: America!!!
5 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests




