Collision Shape

novonovo Member Posts: 11
edited November 2011 in Working with GS (Mac)
Hey Guys:

I'm learning to program with gamesalad and I have one cuestion for you:
How can I do Gs use an irregular shape to collide an actor (PNG image) with another actor (PNG images with transparency)? I've seen in GS you can choose only rectangle or circle.

I have a ball and a triangle png images but I can't do a good collision. Any suggestion?

I'm doing something wrong .... right?

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited November 2011
    Yeah, as RKS said, we do not have custom collision shapes yet, I really hope they get it our there though. It would make this a whole new world. :-)
  • novonovo Member Posts: 11
    what a shame! It would be helpful.

    I hope GS allow custom collision in the future.

    Thanks RKS and Braydon_SFX.
  • ozboybrianozboybrian PRO Posts: 2,102
    There is a way to do it, but it's my own little way that i'm not sure if other people use.
    You constrain invisible actors together to build the shape you want viola!
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    @ozboybrian That might work if your building a small game. However, probably not the best idea to do that method if you are making an 18 MB game.
  • SnapFireSnapFire Member Posts: 361
    @ozboybrian

    Also, rotation will not work properly if you do this.

    Actually, anyone know how to make rotation work with constraints? Would be good to know.
    -Thomas
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited December 2011
    @SnapFire

    yes by getting the starting angle and using sin ans cos. might need to plug magnitude somewhere in there as well but not sure havent done this in a long time
  • SkyMapleSkyMaple Member Posts: 817
    @John

    Sounds kinda messy...
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    @SkyMaple

    Just some trig.

    Search: DEMO_Wielding_Lightsaber in the new section of the gamesalad creator. Its a free demo that constrains a lightsaber to the player and has rotation working with sin and cos

    cheers
Sign In or Register to comment.