Collision bounderies of an actor

helgehelge Member Posts: 2
edited November -1 in Working with GS (Mac)
How do I define the collision boundaries of an actor?

E.g. if I want to use a moving triangle that bounces on collision and I am using a rectangular picture with a triangle in it. How do I make sure that it detects collision of the triangle, not the whole rectangular picture of the triangle?

I haven't used photoshop yet, would a trianlge created as .png with empty background do the trick?

Thanks & regards
Helge

Comments

  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    You can't.

    GS have only rectangles and circles as shapes. Even if you draw a triangle you can only assign to the actor you create in GS those two shapes. Moreover the circle collision can't be stretched to be an oval but it will always use as diameter the smallest between width and height of the actor.

    If you really want to make a triangular shape the only way would be to constrain three rectangular actors in the form of a triangle but that will likely lower the framerate so it is not a good choice.

    ________________________________
    【ツ】iPhone Icon Pack 【ツ】 - 【ツ】Graphic Pack【ツ】
    Free GS demo: High score simple and advanced; Game Center; App Rating System
  • helgehelge Member Posts: 2
    Thank you for your response - this makes it clear.
Sign In or Register to comment.