GameSalad

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 Posts: 234Member, PRO

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

  • ShinplasterShinplaster Posts: 45Member

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

  • ShinplasterShinplaster Posts: 45Member

    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 Posts: 234Member, PRO

    @Shinplaster Awesome, glad it worked out

Sign In or Register to comment.