detecting collision and changing size

GnarlyGnarly 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

  • SocksSocks London, UK.Member Posts: 12,822

    Works fine for me (file attached).

  • GnarlyGnarly canadaMember Posts: 840

    Sorry it's late I will have to try tomorrow.

    If I animate that moving actor will that effect collision detection??

    Thanks.

  • GnarlyGnarly canadaMember Posts: 840

    Works perfectly. My timer was too long. I like yours better too

    thanks socks

Sign In or Register to comment.