[r101]Origin(0,0) and Scale

Bugs will be moved here once resolved.

Post » Sat Sep 01, 2012 10:34 pm

I'm using the 'Set Layout Scale' action to zoom in. All my layers have a Scale Rate of 100, and my game is set to the fullscreen mode Scale. Then I have an action to always set the camera to the origin (0,0) and that works fine.

But if I change any layer Scale Rate to any other value, the origin changes place, and the game screen gets out of center. Eg, if all layers have a scale rate of 100, the origin is at the top-left corner. If I set the Scale Rate of any layer to 0, the origin changes to the center of the screen.
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Mon Sep 03, 2012 5:13 pm

This may be by design, can you share a .capx? The parallax origin is actually in the middle of the window (e.g. 320,240 for a 640x480 game), so scrolling to 0,0 introduces some parallax.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240

Post » Wed Oct 10, 2012 9:46 am

Thank you and your share this articl at here
B
2
Posts: 1
Reputation: 252


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests