How do I make a back view of my scene?

  • Hey,

    I am relatively new to construct, and I'm actually using it for a school project.

    There has been an ongoing problem in our school that many people have tried and failed, even our teacher. But no-one is a real pro and it may be a simple problem, so I've decided to ask about it in the beginner tutorials.

    I want to have the player decrease in size as he moves up the screen. Boringly simple right yet I can't seem to figure it out....

    I have 8 direction movement applied to the character and so far it's going good. I am also limited by the 100 events so I didn't want to do Y= so and so then size 0.5 because that would use too many events. There must be a simpler way that I'm missing.

    Thanks in advance!

    ~JT

  • The easiest method:

    player set scale to unlerp(-200, 700, player.y)

    Where -200 is the y-coordinate where the player size will become 0, and 700 is the y-coordinate where it's scale is 1. Of course, you'll need to find your own values.

    You can also wrap it in clamp to prevent the player from becoming too small or too large.

    clamp(unlerp(-200, 700, player.y), 0.5, 1.1)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sorry it took me so long to reply, thanks so much dop2000!

    This really helped and I'm no mathematician so I never thought to use lerp / unlerp, but anyway, thanks.

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