Zooming into one sprite and no others

For questions about using Classic.

Post » Tue Feb 22, 2011 12:49 am

I've tried to do this with layers, but I could never get the camera to zoom in on just the one thing, it always zooms on th whole screen.

P.S. Anticipating that someone may suggest using the Camera plugin, I have to say that I've never been able to install a plugin in Construct. I download it, I place it in the folder, but when I try to run it crashes or simply doesn't acknowledge the plug-ins existence.
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Post » Tue Feb 22, 2011 1:10 am

use the sprite z elevation to make the sprite look big.
It is what you are looking for.
B
21
S
4
G
4
Posts: 280
Reputation: 2,934

Post » Tue Feb 22, 2011 12:56 pm

Thanks, Toralord. I tried that and what's strange is that it won't zoom over time, it just jerks in and out when I hold down a key or controller command, or the sprite just disappears. I also tried using Time Delta to make it increase and decrease in size over time based on a key/controller button being held down, but it still didn't work.
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Post » Tue Feb 22, 2011 10:59 pm

let say you make a sprite size 128 by 128
you want to go up the Z Elevation by 200
you would do this.

+ System: Sprite.ZElevation Lower than 200
-> Sprite: Set Z elevation to Sprite.ZElevation + 1
B
21
S
4
G
4
Posts: 280
Reputation: 2,934

Post » Wed Feb 23, 2011 2:12 am

[quote="toralord":12ogo6s9]use the sprite z elevation to make the sprite look big.
It is what you are looking for.[/quote:12ogo6s9]

I'm not convinced it's what he's looking for, since Z elevation works relative to the viewport. If you simply want to zoom a sprite you actually should go about it differently.

Apart from using events to resize your sprite according to its aspect ratio or messing with layers and zoom, you could also give the Scale Behavior a shot.
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Mon Feb 28, 2011 12:48 pm

Thanks guys!
B
12
S
4
G
3
Posts: 426
Reputation: 2,458


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests