Smooth anchoring

Get help using Construct 2

Post » Thu May 03, 2012 6:30 pm

It seem using 'Anchor' behaviors on any objects and do a scrolling (either crollto or manually) result in some visual 'flickering' on objects when starting/stopping to scroll, it is noticeable even when moving, is there a fix?

Right now i just do it manually trough events but if there is a solution to make smooth anchoring then it would be faster to do and would maybe speed up things a bit, i just hate any flickers so i don't use anchor behavior, this mean i have to keep track of all static objects initial positions then update every objects on a regular basis...

As for example, well, just make an object (or multiples one as it is more noticeable when there is many) with an anchor behavior then make an object with scrollto and one movement behavior and you will see what i mean, when you move you will notice some 'jumping'/'flickering' on the anchored object. afgho2012-05-03 18:34:18
B
6
S
1
G
1
Posts: 18
Reputation: 1,004

Post » Sat May 05, 2012 4:20 am

I'm noticing the same trouble. I'm trying to add some simple UI elements, but they flicker like crazy when I'm scrolling around the game.
B
3
Posts: 18
Reputation: 436

Post » Sat May 05, 2012 6:59 am

You should only use the Anchor behavior on objects on a layer with parallax set to 0, 0 (i.e. scrolling disabled). It's not designed to be used on scrolling objects.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,574

Post » Sat May 05, 2012 6:32 pm

Thanks Ashley. Do you have any recommended places to look for an alternative? I've tried a number of different things (mostly updating on every tick) but it all ends up flickering.
B
3
Posts: 18
Reputation: 436

Post » Sun May 06, 2012 1:33 am

Can you share a .capx that isn't working right for you?
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,574

Post » Sun May 06, 2012 8:26 pm

Oh wow, thank, problem solved, didn't thought of this, the problem can indeed be easily solved by creating a layer with parralax set to 0,0 and add objects that need to stay on screen there... they will not be affected by any scrolling change so no more worries about any flickering and i guess this is better performance wise than updating every framesafgho2012-05-06 20:27:10
B
6
S
1
G
1
Posts: 18
Reputation: 1,004


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests