I've been trying to figure out how to best keep my objects centered in relation to the size of window. For example, if window size changes from one aspect ratio to another, I would like to keep my stuff centered, like Start Screen menu, results screen etc... Right now I got my logo using Custom Movement to appear from the top to the desired position and it looks good with Letterbox Scale but on Scale Outer (which I guess for example CocoonJS needs to use) makes the logo go a bit to the left and not center as in my canvas on Construct2. My window size is 1024, 720 and my layout size is 2048,720 if that matters
I tried anchoring it but that just made it stuck outside of canvas.
Using Scale outer, I also tried setting the x position to window.width/2 (and my origin is smack in the middle of the logo sprite) but that makes the logo/sprite go too much to the right side of screen (I took the anchor function away so it's not interefering) especially when browser anything else than full screen.
So I'm trying to make my logo be horizontally centered based on window width before I activate the Custom Movement.