How do I move view window to center of layout?

Get help using Construct 2

Post » Sun Nov 08, 2015 5:28 pm


I'd just like to move the window view indicator (dashed lines) to the center of the screen, so I can set spawn points outside and then have them move inside the view window.

However, cant figure out how to do this without placing a sprite in the middle, setting it as scroll to. But then I dont have an indicator to see where the edges of my view are to place spawn points.

If someone could help me figure out how to move the window view indicator? Thanks.
Posts: 1
Reputation: 269

Post » Sun Nov 08, 2015 5:47 pm

You can't..
The dotted line shows the view from coordinate 0,0 (top-left) to x,y (bottom-right) where x = project-width and y = project-height..

You could always use the viewortleft(), viewporttop() etcetera to spawn based on viewport..
Or if you want to do it your way, scrolling to a sprite, viewportleft would be sprite.x - 0.5* (your project width) as long as you don't use fullscreen-scaling, for that might change the coordinates of your viewport-edges..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
Posts: 6,160
Reputation: 19,775

Return to How do I....?

Who is online

Users browsing this forum: evillair, lordsas, Matei511, tarek2 and 60 guests