Character Get Destroyed By Transparent Part

Discussion in 'Buildbox General Discussion' started by ahmadqasqq, Feb 4, 2017.

  1. ahmadqasqq

    ahmadqasqq Boxer

    Joined:
    Feb 4, 2017
    Messages:
    3
    Likes Received:
    0
    hello so i started making my game and i almost finished it but i have a problem that when i add an object with a transparent background and select destroy type destroy character the character get destroyed by the transparent part please help
     
  2. Nihat

    Nihat Serious Boxer

    Joined:
    Jun 29, 2016
    Messages:
    552
    Likes Received:
    154
    You have to adjust object's collision shape.
     
    Christoph likes this.
  3. ahmadqasqq

    ahmadqasqq Boxer

    Joined:
    Feb 4, 2017
    Messages:
    3
    Likes Received:
    0
    how i changed the size but the transpearnt part is still there
     
  4. Greg Smith

    Greg Smith Boxer

    Joined:
    Jan 9, 2017
    Messages:
    2
    Likes Received:
    1
    Ahmadqasqq:

    There are, it seems, 2 things going on here:
    1) If you are using a .png file with a transparent background - the image or animation that you want to designate as the "active" part does not usually fill the entire frame of the .png file.

    2) In order to be precise about which part of your image or animation you want to act as a "trigger" for other events - you must inform Buildbox about what part of that image or animation forms the "active" part - and you do this by defining its "Collision Shape".

    I hope this clarifies the issue,

    Greg Smith
     
    ahmadqasqq likes this.
  5. ahmadqasqq

    ahmadqasqq Boxer

    Joined:
    Feb 4, 2017
    Messages:
    3
    Likes Received:
    0
    thank you very much it worked
     

Share This Page