Detection collision in an actor changing size?
mhedges
Raised on VCSMember Posts: 634
Hello -
I have to actors, one with a fixed height and width (Actor 1), and the other with variable height and width depending on position, using constrain attributes for height and width (Actor 2).
I have tried the following rule combos when one actor collides with the other:
Both actors destroy simultaneously (no timer delays).
Actor 1 has a slight delay over Actor 2 before invoking the destroy behavior.
Actor 2 has a slight delay over Actor 1 before invoking the destroy behavior.
Both actors have a slight delay before destroying.
In all combinations, only Actor 1 (fixed size) is destroyed.
Is this the law of the land? I'd probably have to create a boolean to destroy Actor 2, but wanted to know if this is the current norm.
Comments
Hi @mhedges, yes, it used to be that an actor changing size with interpolate cannot register a collision - seems like its still the case.
perhaps try the following:
In the non-resizing actor, when it overlaps/collides, just before its Destroy behaviour put a boolean
Change attribute DestActor2 to true
And in the resizing actor B,put
When DestActor2 is true
Destroy
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps