Bug/Issue - Overlap / Collide rule doesn't work when actor size is constrained.
Photics
Member Posts: 4,172
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.
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
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...