GameSalad

Howdy, Stranger!

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

collision line in an actor

emojiemoji Posts: 46Member, BASIC

hi, can I assume that the black border is collision in an actor, but in testing I actually find that the bottom picture with the green line is the accurate collision line. does anybody notice that

Comments

  • tatiangtatiang Posts: 11,719Member, Sous Chef, PRO, Senior Sous-Chef
    edited May 23

    Is that a picture of a single actor or two actors? Are you having a problem with collision detection for both/one of them? How are their collision shapes set?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tatiangtatiang Posts: 11,719Member, Sous Chef, PRO, Senior Sous-Chef

    Here's a demo that shows that collision shape affects what you might expect to happen with an actor.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • jamie_cjamie_c ImagineLabs.rocks Posts: 5,537Member

    If your color image pixels are smaller than your full graphic size it will seem like the collision shape doesn't match the image also. You should crop your actors right up to the edge of the visible pixels so there is no extra 'white' space around them.

  • emojiemoji Posts: 46Member, BASIC

    with a just a default square actor create, the collision line will be the exact shape as the actor. is that right? if so it doesn't seem like it! I'm making a beat them up game and and instead of using the actor default collision, I decided to constrain a few square actor (hitting point) to my main actor. with this square actor it seem the collision domain is larger then the visible actor itself. It can be fix by moving the actor a little back but I just want to make sure that i'm right about collision

  • tatiangtatiang Posts: 11,719Member, Sous Chef, PRO, Senior Sous-Chef

    When you constrain an actor, it affects the collision detection. There are threads about this if you Google constrain collision gamesalad.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • emojiemoji Posts: 46Member, BASIC

    oh i figure it out. it seems that my image has a little white spot to its left side.

Sign In or Register to comment.