Actor not responding to collision/pin rule when publishing game
Hi,
I'm making a gamer where I have "ships" moving towards and island, and when they collide with an invisible box that surrounds the island, the ship actor's pin attribute will be set to true.
This works fine when I preview my game on GameSalad, but when I actually publish the game to the arcade, the ship actors do not respond to the pin rule and proceed onto the island.
Here's a link to my game: http://arcade.gamesalad.com/games/139114
Just press play now, select any difficulty, and press the play button again. The ships are supposed to stop right off the shore of the island.
Thanks for any and all help!
Best Answers
-
jamie_c ImagineLabs.rocks Posts: 5,772
HTML is buggy and I believe does not support custom collision shapes at all. The reason I mention custom collision shapes is that the ability to pin was added at the same time so perhaps that does not work in HTML at all as well.
-
jamie_c ImagineLabs.rocks Posts: 5,772
I'm not sure exactly how you're using it but you can Constrain an actors X and Y location to hold them in place. If you want a ship to reach a certain spot and simply stop you might also consider moving it to that spot and then Destroying the moving ship and Spawning a copy of the same ship that has no Behaviors and is just an image/placeholder.
Answers
Oh okay, thanks. Do you know of another rule that would do the same thing, to replace my pin rule?