transperent images colide...

igpxnaruto4igpxnaruto4 Member Posts: 81
edited January 2012 in Working with GS (Mac)
Lets say i have a spaceship and rock actors, lets also say they are both circles. the image (made with gimp) have transparent corners and are square, but also have transparent alpha channels in the corners. when the spaceship and the rock collide i have it set to destroy actor, but this also happens with the transparent areas. any way to fix this? this is making my game look really bad, and i cant find anything...

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited January 2012
    Yeah as your noticed gamesalad counts all borders of the image as the collider, even transparent pixels.
  • igpxnaruto4igpxnaruto4 Member Posts: 81
    Yep exactly, so i'm wondering if there is anyway to like change the image or not include the transparent one?
  • igpxnaruto4igpxnaruto4 Member Posts: 81
    But what if the rock is a different shape? like a oval or the spaceship is longer? Didn't change much when i did it last time.
  • igpxnaruto4igpxnaruto4 Member Posts: 81
    Dang it... idk if u can but can you ask the developers to work on something for this? cuz now im having second thoughts on my game, which took me like 2 weeks to make...
    Thanks for your help:D
  • FerinFerin Member Posts: 32
    edited January 2012
    Yes that's pain in the back, i was trying to solve this puzzle too since it looks silly particularly when u got animation of walking person or other character that animation in most of the frames takes just 60% of the collision box... but there is one thing u can do (at least):

    Create an actor, smaller than ur player's actor( it can be 1x1 if u need to), make it invisible and constrain its position to player's position. Depending on your needs u can place colliding-invisible actor wherever you want.
    I know that it gonna affect performance but c'mon, life is full of gives-and-takes :p.
Sign In or Register to comment.