jumping game score based on player movements

0 favourites
  • 3 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Hi!

    I would want to add value to my "playerDistance" variable, based on distance traveled by the player sprite, on Y axis. I found many threads or tutorials on this question but in my case, all these examples doesn't work because I need upward movements are added, and downward movements are subtracted from the value.

    I'm very new to Construct 2 and I still don't know the expression i need to type in "add value" so that the value is based on movements of a sprite.

    I hope my topic is clear

    Thanks for reading and/or help!

  • I don't know if this will help you, but it's a idea.

    Create a invisible tile, or object or anything at the start of the stage at the same position as the player. as the player moves you calculate the distance between the player and this object, the longer the distance bigger the score, and this will apply if the player is going up or down

    And since you want the score to decrease if the player goes down, instead of setting the invisible object to the same position as the player's, set the object at the bottom of the screen. that way the player will get closer to it every time he goes down

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So obvious, so efficient...

    As beginner, I still don't have the good state of mind

    Thank you RayKi!

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