Does killer kill all?

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

Does killer kill all?

Postby Aglophun » Fri Mar 26, 2010 5:37 am

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?

Postby gradyfitz » Fri Mar 26, 2010 8:41 am

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 :D.


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:
Image

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 :)

Image

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 :D), though, it too can be achieved via script.
Mechanisms: 18 Mechanisms.
Thyme: Tutorial - Variables/Commands List.
Thymechanic
gradyfitz
 
Posts: 174
Joined: Tue Sep 01, 2009 8:33 am
Location: Victoria, Australia

Re: Does killer kill all?

Postby Chronos » Fri Mar 26, 2010 1:17 pm

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
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: Does killer kill all?

Postby Sonic » Fri Mar 26, 2010 7:14 pm

I was going to say that. It's a hell of a lot easier.
I do stuff and break things. You know how it is.
Image
User avatar
Sonic
 
Posts: 1467
Joined: Tue Sep 01, 2009 6:18 pm
Location: America!!!

Re: Does killer kill all?

Postby Aglophun » Sun Mar 28, 2010 5:33 am

thanks
Aglophun
 
Posts: 7
Joined: Fri Mar 26, 2010 5:33 am


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 4 guests