Changing an actor's collision type on the fly...
Hey all!
I'm new to GameSalad so please forgive my "novice-ness" (if that's even a word- which it's not)...
Anyways I have an actor that needs to have both rectangle and circular collision. Meaning that the majority of the time the actor will have rectangle collision, BUT, when the user taps a button the actor suddenly turns into circular collision (and then back again of course).
My gut says it has something to do with destroying and spawning the actor seamlessly. But while the character may look the same, it's really two different actors with two different collision styles.
Any thoughts? And maybe my suggestion is right, but I have no idea how to actually do this properly.
Any suggestions would be so helpful, thanks!
DH
I'm new to GameSalad so please forgive my "novice-ness" (if that's even a word- which it's not)...
Anyways I have an actor that needs to have both rectangle and circular collision. Meaning that the majority of the time the actor will have rectangle collision, BUT, when the user taps a button the actor suddenly turns into circular collision (and then back again of course).
My gut says it has something to do with destroying and spawning the actor seamlessly. But while the character may look the same, it's really two different actors with two different collision styles.
Any thoughts? And maybe my suggestion is right, but I have no idea how to actually do this properly.
Any suggestions would be so helpful, thanks!
DH
Comments
Hope this helps.
Darren.
When you say have one as an invisible actor and switch with a boolean- how would you exactly do that? Is that the idea of spawning and destroying? And how can I connect the two actors together? If they have two different collision types, how do I ensure they don't move away from each other at a time of a collision?
Thanks again! Much abliged!
DH
I would have the movement controls in the hero and collision in the other 2 actors.
Darren.
Best of luck with your game.