GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Troubles with transparency and organic shapes

lowskilowski Posts: 25Member
I'm trying to make an organic shaped ground for my platform game (s-shaped like: ~~~~~~ ) I have saved my test ground as a png-24 with transparency on. When I place the image in my game, the transparent square around my squiggly line is well, transparent but when I interact with the solid platform my player actor sits on top of the image where the transparent box would be.

How can I make it so that my actor interacts with the organic shaped platform without interacting with the transparent box?

Thanks!

Comments

  • JCFordJCFord Posts: 785Member
    Although you have transparency in your image, Actors interacting with it will still see the original box shape.

    You need to simply bring your image in as a background (no behaviours) and then build a 'S' shape surface using several invisible rectangles that sit ontop of your image.
  • lowskilowski Posts: 25Member
    Hmm, are you saying that there is no way to have an actor interact with an organic shape?
  • firemaplegamesfiremaplegames Posts: 3,206Member
    No. Your only collision choices are rectangles or circles. You can build up complex ground shapes by laying out a bunch of invsible rectangles on top of the image.
  • lowskilowski Posts: 25Member
    Alright, thanks for the help guys!
This discussion has been closed.