constraining an attribute
hi guys...i've got a problem in constraining an attribute and hope you could help
i've got two actors and one of them is like a shadow to another one...the main actor position is x1 & y1
in the next actor (shadow in this case) i used:
-constrain attribute (self.position.X) to (game.x1-6)
-constrain attribute (self.position.Y) to (game.y1-6)
so it follows the main actor where ever it goes
my problem is that when the main actor moves fast, constrain rule doesn't seem to catch up and the shadow kind of falls behind..it's like the distance is (game.x1-12)
i was wondering is there anyway to make it change the attribute faster? so that it looks like it is attached to main actor
i've got two actors and one of them is like a shadow to another one...the main actor position is x1 & y1
in the next actor (shadow in this case) i used:
-constrain attribute (self.position.X) to (game.x1-6)
-constrain attribute (self.position.Y) to (game.y1-6)
so it follows the main actor where ever it goes
my problem is that when the main actor moves fast, constrain rule doesn't seem to catch up and the shadow kind of falls behind..it's like the distance is (game.x1-12)
i was wondering is there anyway to make it change the attribute faster? so that it looks like it is attached to main actor