X position of actor that moves....?

ckurt25ckurt25 Member Posts: 122
edited November -1 in Working with GS (Mac)
Hi Gang!

I have a rule that says - when self.position.x < game.Enemy1X then change attribute game.wall to gamewall+1 Let's say this wall is Actor 1

I have a rule on the enemy that basically says if gamewall < 1 then Enemy 1 is to move. Now when I destroy Actor 1 (aka the wall) the Enemy moves, like it should.

I'm wondering if the wall is moved (say something hits it and it changes position) and it's X position is now > than that of Enemy 1, will the Enemy now move or do I have to build a rule (or rules) that keep track of the wall's X position relative to the Enemy?

Hopefully that made sense.

Comments

  • ckurt25ckurt25 Member Posts: 122
    Found a way to test this. I just created a rule to move the wall if I clicked on it. Just used "move to" and played around with the values until it worked. The answer to the question is no. It won't get the enemy to move without any additional rules.

    The worst part about this is that I initially thought it was working but I forgot I had an off screen actor to the far right that destroys the wall if it comes in contact with it. :(
  • ckurt25ckurt25 Member Posts: 122
    Thanks, TSB!!!
Sign In or Register to comment.