Collide atribute

adnanadnan Member Posts: 46
edited February 2012 in Working with GS (Mac)
Hi,

I'm making a game in which the actor needs to kick a ball but when you choose circle you have the actor kicking the ball before he eve touches it, how can I make the collide radius smaller for the circle? Make it as big as the actual circle on the screen?

Thank you :)

Comments

  • ozboybrianozboybrian PRO Posts: 2,102
    I think the only way you can edit a collision size is by changing the size of an actor itself.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Support Fabled Apps! :D

    Please LIKE Fabled Apps on Facebook.

    Please Subscribe to Fabled Apps on YouTube.

    Please Follow Fabled Apps on Twitter!

    List Your Top iPhone Game!
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Your images should be .png's and have alpha transparency around them. Every image you use takes the actual blank space around the image in to account too. So, once you design your ball, make sure you trim it so its as tight as can be to the edges, once this is the case, imagine a rectangle fitting tightly around that ball. GameSalad doesn't have pixel collision detection so will use the rectangle around the ball unless you change its shape to circle which then works. However, this applies on your actor kicking the ball too, if theres lots of blank space left in its rectangle, that will still collide.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Heres a picture showing what i mean;

    image

    The top image shows the rectangle tight around the image. It will be that rectangle that is doing the colliding, not the pixels of the plane.

    In the bottom image, the blank space hasn't been trimmed and therefore, that rectangle collision box is much bigger and would collide before you see the plane get to the thing its colliding with.

    Make sure all your images are trimmed as tight as can be.
Sign In or Register to comment.