Trouble with spawning 2 actors at same time effecting the actor before it...

blisterblister Member Posts: 13
edited January 2012 in Working with GS (Mac)
Problem...

I have 2 actors spawning at the same exact time 1 is slightly above the 2nd (below) we will call creature. So, let's say 4 of these creatures and objects might be on screen at the same time. What it Looks like is that the creature is carrying the object. I've got rules set up that if you kill the creature below it drops the object above. I did have a problem it would knock the very next object off the top of the next creature. But, I have fixed that problem and I had thought I had got all the bugs worked out until I tried killing the second creature in line instead of the first (letting the first walk on by). Now it's alsmost the reverse problem.

It now knocks off the object off the first creature and the object above the creature killed (2nd creature) goes floating on by.

Can someone write a how too on a solution for this? It can be a scenero, just to give me an idea how to fix it, because I'll have to customize it anyway. Or possibly tell me how to link the top object with the creature below it so only the rules and attributes effect just those as individuals and not the rest of the same ones on screen.

I'm at a loss...

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    try Touch is inside rather than pressed? if that is how player kills creature??? …

    on Top actor:
    Rule: when
    Actor receives event: overlaps or collides with actor type: Creature
    -- the constrain attributes
    Otherwise:
    --changeAttribute: self.Motion.Linear Velocity.Y To: -200 (depending on how fast you want it to move down)

    @};- MH
Sign In or Register to comment.