Collision shapes
zenoah
Member, PRO Posts: 56
Hiya,
I have a game where a lot of the game logic is in a space ship actor. I can add a new collision shape via the Physics Editor to the main actor no problem.
I change the image though when the ship is upgraded and would then like a new collision shape on that new ship image.
Is there a solution to this?
Thanks,
Anthony
Comments
It's probably a lot easier to make separate actors (with their own unique collision shapes) for each of the spaceship actors.
Instead of using a Change Image Behavior you could use two (or more) separate actors and destroy and spawn them as needed. That way each actor can have its own unique collision shape.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Just make a duplicate of your ship in the actors paine. Click on your ship and press option key and drag in the paine and you get an exact copy. Then do what jamie says above spawn the new ship.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS