Constrain attribute lagging
pjburnhill
Brighton, UKMember Posts: 18
Hi, I'm using a constrain attribute to link a space ship and a 'force field' position around it, trying to lock them together. Problem is that as the ship moves quickly or has a collision, the forcefield is knocked out of place a little, even though it rectifies itself overtime. It essentially lags behind ever so slightly. Is there any other way to REALLY lock these two actors together and still be able to do things like change force field alpha when needed?
Thanks,
PJ
Comments
@pjburnhill, you need to look at the order of your actors.
If you open the Layers tab under Scene, you can see the order of your actors. They get processed from the bottom up. Therefore it is important that your actor which updates the constrain attributes gets processed first, so that the constrained actor gets the correct values in the same draw cycle.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Hi @pjburnhill Maybe you've the space ship actor constraining to the force field? If that's the case, do it the other way (the force field (unlocked) constraining x&y to spaceship) and you shouldn't have a problem.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Thanks guys, will try those.
Thanks Hopscotch, sorting the layer order did the trick, thanks!