Help with collision - explanation inside .

POMPOM Member Posts: 2,599
edited November -1 in Working with GS (Mac)
Hey guys
what i want to do is to have my actor size say 100x100 but the graphic bigger than his size , and i want the collision to be only with the actor size (red square like in the image)

image

now i have lots of this actors so constraining another actor behind is not an option ,
is it possible?

Roy.

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    don't know if this will work for you...

    Actor 2 instance:
    Rule (All) Actor receives event : overlaps or collides with Actor1
    --Rule (All)
    ----self.Position.X ≤ scene.Background.Actor1.Position.X+10
    ----self.Position.Y ≤ scene.Background.Actor1.Position.Y+10
    -----initiate event

    ah I will email you my try...

    MH
  • Danneman101Danneman101 Member Posts: 59
    This seems like a great solution, but how can you set this in a rule?

    self.Position.X ≤ scene.Background.Actor1.Position.X+10

    I mean, I can set "self.Position.X" obviously from Actor2's instance, but any referencing to Actor1 seems impossible. Do you still have the code?
Sign In or Register to comment.