How do I zoom in with canvas objects?

Get help using Construct 2

Post » Thu Nov 10, 2016 7:41 pm

I'm using @christina's 'Planometric to Isometric' technique as outlined in https://www.scirra.com/forum/can-we-stretch-a-layer-isometric-3d-engine_t129932

and I'm struggling to trim the excess window space or zoom in, I think I just don't understand the canvas object well enough yet to know how to do it within this structure.

Christina's Example:
https://dl.dropboxusercontent.com/u/28087823/Construct%20Examples/isometric%20from%20planometric/pacman2.capx
(uses canvas plugin)

Which builds as:
Image

But I'm trying to get to a result like this:
Image

One way can see doing it is bringing in a third canvas for the zoom, but that feels excessively heavy when we already have 2 going(not to mention that would break all the art in fuzzies or jaggies).
Last edited by damousey on Thu Nov 10, 2016 8:35 pm, edited 2 times in total.
B
8
S
2
Posts: 32
Reputation: 620

Post » Thu Nov 10, 2016 7:49 pm

To be clear, I'm using Christina's file because I'm already doing more to canvas positioning to have it follow my character etc. So that one is just a cleaner example.
Image

But I still need an oversized space to make it work. :(
Image
B
8
S
2
Posts: 32
Reputation: 620

Post » Wed Nov 30, 2016 11:08 am

the canvas can be any size, can't it? would it help if you set the final viewport size to the desired dimension and only resize the canvas?
B
28
S
12
G
4
Posts: 193
Reputation: 4,581

Post » Wed Nov 30, 2016 5:35 pm

You should be able to use LayerScale or LayoutScale to zoom in.
Something like:
https://drive.google.com/open?id=0B-xiq ... 0xDel9TRHM
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests