detecting collision and changing size
Gnarly
canadaMember Posts: 840
So I have an actor that is moving and increasing in size. I want this actor to detect a collision. I search the forum and I understand that using interpolate or change size behavior will not detect the collision.
So I search the forum and the work around is to make two attributes WIDTH and HEIGHT . In a timer every second ( the HEIGHT = HEIGHT +10. WIDTH = WIDTH + 10.)
constrain self attribute height to HEIGHT
constrain self attribute width to WIDTH.
So it works. Actor moves and increase in size.
Rule. IF actor overlaps and collides with another actor destroy this actor.
I can't get actor to detect collision and destroy itself...............
I am missing some logic here??????
I hope that makes sense. Thanks
Comments
Works fine for me (file attached).
Sorry it's late I will have to try tomorrow.
If I animate that moving actor will that effect collision detection??
Thanks.
Works perfectly. My timer was too long. I like yours better too
thanks socks