What effect does layer stack play in glitchy animations, frame rates...

machinegunkellymachinegunkelly Member Posts: 56
edited June 2012 in Working with GS (Mac)
I have a funny situation where if I move my character up and down in the layer stack ( within one layer ) the animation can become more glitchy or clear up depending on it's placement....

ie: The character is in Layer 5, at the bottom, I Move him midway up the list of actors in Layer 5 and it can change the game dynamics and make it "glitchy" and I'm trying to get to the bottom of why...

So basically if I have my character at the bottom of layer 5, the animation is fine, but if I move him up the stack, I find the animation can become more glitchy and twitchy hehe :P


it's driving me mad, any help is appreciated

Best Answer

  • domeniusdomenius Posts: 108
    Accepted Answer
    The layer order determines the order of processing in your GS project. If an actors position relies on information updated in another actor, or if you are using timers to control the processing intervals, when in the loop your actor is updated can vastly change the "smoothness" of their operation. This is especially true with constrains. If the controlling actor is as high up in the layer list as possible, you can avoid issues like this most of the time.

Answers

  • machinegunkellymachinegunkelly Member Posts: 56
    So basically, I should have my main character on the top of the stack, anything he interacts with under that... the background objects below ?

    if that's the case, thanks :D super easy fix for something that's been driving me nuts hahah
    Will test this out tonight and report back!
  • domeniusdomenius Member Posts: 108
    You got the idea! If it doesn't work out let me know.
  • machinegunkellymachinegunkelly Member Posts: 56
    Thanks, that worked!
    all signs of twitchiness are gone :)
Sign In or Register to comment.