Constrain Attribute problem.

I have a game.attribute that is meant to constrain an actors X position when the actor is spawned in. I had the setup working for a while until it just seemingly stopped working. It now only changes the attribute to the X position only once upon spawning.

I am sure that the constrain attribute behaviour is the issue because I am able to nearly replicate the behaviour with an Every timer.

If anyone has any ideas of what I could do I would appreciate a response.

Thanks,
Dylan

Comments

  • RowdyPantsRowdyPants Member Posts: 465

    @Shinplaster Are you also controlling the actor's location with other rules that may be in conflict with the constrain?

  • ShinplasterShinplaster Member Posts: 45

    @RowdyPants I am constraining a different actors x position to the constrained x position that is the problem.

  • ShinplasterShinplaster Member Posts: 45

    I found the problem. I had an interplode behaviour below the constrain changing the self.positionx in order to ignore gravity. This caused the constrain to only check for the position before the interplode started.

  • RowdyPantsRowdyPants Member Posts: 465

    @Shinplaster Awesome, glad it worked out

Sign In or Register to comment.