X position of actor that moves....?
ckurt25
Member Posts: 122
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.
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
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.