Collision with images
peterraad
Member Posts: 56
Im making a game where the spaceship shoots and destroys all the asteroids. When I have the bullet shoot toward the asteroid and it works but sometimes i would shoot toward the asteroid and it wouldnt even touch it but still destroy it. I know the reason behind it and its because of my neon art I already cropped the image to its smallest form with no empty space. What I was wondering is there a way where I can make something stay with the asteroid and if the bullet collides to that object then it would be destroyed?
Comments
But if you want to constrain a "mask" actor to be the actual collidable actor for the bullet, you can also do that. It's easy with a single actor and kind of a pain with many actors. I have a health bar demo that constrains a health bar to an enemy actor when you have multiple such actors: http://forums.gamesalad.com/discussion/comment/384027/#Comment_384027. If you think of the health bar actor as the collidable actor and the enemy as the asteroid, you can set up something for your game.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User