Layer-Scale ScrollTo Bug with multiple Layers

Bugs will be moved here once resolved.

Post » Sat Dec 10, 2011 5:52 pm

I've encountered this bug while working on my game.

When you have more than 1 Layer and a Sprite assigned with the ScrollTo Behavior it won't zoom in on the object but instead zoom to the center of the canvas :(

Here is a .capx demonstrating the problem.

If you delete the GUI-layer it will work as it should.

http://dl.dropbox.com/u/45711709/LayerScaleScrollToBug.capx
B
33
S
6
G
7
Posts: 338
Reputation: 7,424

Post » Wed Dec 14, 2011 6:39 pm

Could someone atleast Check my capx to See if its really a Bug or if i just fucked up? :D

PS typing on my tablet and To lazy to fix the caps :-)
B
33
S
6
G
7
Posts: 338
Reputation: 7,424

Post » Tue Dec 20, 2011 1:48 am

Not a bug: you need to set 'unbounded scrolling' to 'yes' otherwise the window cannot scroll anywhere since you've set the layout to be the same size as the window.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Tue Dec 20, 2011 9:47 am

OK that seems to work, however the whole gamearea is scaled as it seems and not just the active layer :(

EDIT:

Working fine now... should have set the layer scalerate to 0 :DIze2011-12-20 09:59:27
B
33
S
6
G
7
Posts: 338
Reputation: 7,424


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests