Collision with images

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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    If you've cropped the bullet already, the problem may be with the way you cropped the asteroid. Also, if it's a round (or "round") asteroid, set the collision shape to circle in GameSalad.

    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.
Sign In or Register to comment.