Zooming into one sprite and no others

This forum is currently in read-only mode.
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • 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.

  • use the sprite z elevation to make the sprite look big.

    It is what you are looking for.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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

  • use the sprite z elevation to make the sprite look big.

    It is what you are looking for.

    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.

  • Thanks guys!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)