"Offset" zoom?

Get help using Construct 2

Post » Mon Mar 21, 2016 9:03 pm

I'm working on a "pseudo-perspective" for my game and I succeeded with the effect but I'm having some trouble with position of the zoom. Basically I want to zoom to a specific point but I'm only managing to zoom dead center of the screen.

Here's a screenshot to illustrate what I want a little better:
Image

I tried zooming to a camera object but it kind of centers it as well leading to UI elements going offscreen.
"If you don't build your dream, someone else will hire you to build theirs"
B
12
S
4
G
1
Posts: 60
Reputation: 969

Post » Mon Mar 21, 2016 10:34 pm

System-Scroll to Position(x,y) ?
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Tue Mar 22, 2016 8:20 am

Here is an older thread, with some capx files that may help you get started.

viewtopic.php?f=147&t=167912

That one used an object to get the scroll to position, but you can use variables or any other method you like to get the target x/y position as well.

For your UI elements, recommend putting them on separate layer with parallax 0 and positioning using anchor behavior or viewport expressions.
Mistakes were made.
B
54
S
28
G
115
Posts: 1,705
Reputation: 65,083


Return to How do I....?

Who is online

Users browsing this forum: Anonnymitet, babymumu and 7 guests