Bug/Issue - Overlap / Collide rule doesn't work when actor size is constrained.

PhoticsPhotics Member Posts: 4,172
edited November -1 in Working with GS (Mac)
Bug/Issue - Overlap / Collide rule doesn't work when actor size is constrained.

Example... create a ball... create a rule that has a "play sound" behavior when the actor overlaps / collides with a wall. Give the ball acceleration of 270­° / 100 speed and set the ball to collide(bounce) when hitting the wall.

That should work fine... the ball will play the sound when hitting the wall... but once I constrained the width and/or the height attributes of the ball, the sound will not play.

I've tried some workarounds, but it was unsuccessful. If I put the rule on the wall, rather than the ball, it would work in my test, but not in my game - which has a lot more going on. I tried putting the constrain on a .005-.01 second timer. That almost worked, but the ball would occasionally fly straight through the actors it was supposed to collide with.

A third workaround was to create the size change with Particles. This almost creates the visual effect that I'm looking for, but it makes the physics look weird, as the way the ball hits the wall doesn't line up with the way the particles are being displayed.

This is unfortunate, as such a technique could be used to add three-dimensional effects to GameSalad games.

Comments

  • JohnGreenArtJohnGreenArt Member Posts: 19
    I just discovered this as well. I had an actor that would destroy others when they collided. Worked just fine. But I wanted the actor to increase in size, so I constrained it's X and Y attributes to it's self timer. The actor's size increased as I wanted, but it no longer triggered the collision when it overlapped other actors.

    There are other ways I can achieve the effect I want, but this still brings up the question of why collisions don't work when an actor's size is constrained...
Sign In or Register to comment.