two question about constrain self.position to game.position
i create two game attributes,platerx and playery, which one should i use, real attribute or integer? and should i use
constrain game.playerx to selfpostion x or
change attribute game.playerx to selfposition x? i want to keep track of my actor position all the time so i can use magnitude with another actors
constrain game.playerx to selfpostion x or
change attribute game.playerx to selfposition x? i want to keep track of my actor position all the time so i can use magnitude with another actors
Comments
And use constrain,as that will constantly update that attribute to be the same as the position at all times, change attribute will only do it once