Page 1 of 1

Sliding GUI with scroll

PostPosted: Sat Oct 26, 2013 6:37 am
by borparo
Hello,

I'm working in a platform prototype and for the GUI elements, to keep them inside the window i'm using an invisible sprite holder with a system event(every tick) to set the position with scroll x and scroll y.

However, this set up makes the GUI slide a few pixels(my guess, because of the platform acceleration, deceleration properties) when the character moves or stops.

Is there a way to avoid this, or a better set up to keep the GUI in place?

Thanks in advance.

Re: Sliding GUI with scroll

PostPosted: Sat Oct 26, 2013 6:59 am
by vee41
Put your UI elements in separate layer that has parallax scrolling set to 0,0

Re: Sliding GUI with scroll

PostPosted: Sat Oct 26, 2013 7:37 am
by borparo
Ah! thanks a lot. All done :)