limiting platform jump score and text score

  • how can I limit my character on gaining score to 1x only as it jumps to a sprite that is jump through.

    and how to do the text score that increments fast instead of changing automatically. for example, as the player jumps it gets 50 pts. of score then the text from 0 increments fast up to 50 instead of 0 to 50 without inrementing.

    thanks in advance.

  • For your first problem use trigger once condition.

    For your second problem.

    +on jump

    -> golabal variable NewPoints + 50

    + Every X(e.g 0.25) seconds

    + NewPoints > 0

    -> Points + 1

    -> NewPoints - 1

    -> Set Text to Points

    Hope this helps, if not I will explain it you more detail

  • I tried to put trigger once, but it doesn't seem to work right.

    I did this way, or am I doing it wrong?

    <img src="https://lh5.googleusercontent.com/-SpkYGqJazTo/UZGMIPjKFmI/AAAAAAAAAB0/CwAyLN0HAks/w870-h117-no/Untitledshot.jpg" border="0" />

    and what is Every X in conditions?

  • oh I already got the flow in second problem but I'm not sure what is Points + 1.

  • You want to simulate the growing of your score so you need variables

    score = points in my example (It keeps the actual score, than you add 1 to it every X seconds)

    newPoints = a variable to help you let the score growing, it just saves how much you need to add over time to the players score.

    For your first problem:

    -> Do you try to make achievements ? If yes trigger once is the false condition.

    If yes you need a small achievement system, with an array or something else.

    If you want I can explain it you a bit more.

    Sry for the bad english, need some coffee :D

  • ok I get the second one. thanks.

    on the second, I'm trying to get rid of getting scores repeatedly as it jumps on the same platform.

    like 1 platform = 50pts. if it jumps on the same platform again, there will no points acquired.

  • or if there's some tutorial here that has scoring system like 'doodle jump' would be better. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Totally easy,

    1. give the platforms an instance variable, something like "scored"

    2. set scored to false in the properties

    3. The Event:

    + Player on collide with Platform

    ++ If Platform instance variable "scored" = false

    --> newPoints + 50

    --> Set Platform scored = true

    This is all, will work totally fine, tried it already.

  • thanks man! it worked fine.. <img src="smileys/smiley1.gif" border="0" align="middle" /> <img src="smileys/smiley1.gif" border="0" align="middle" />

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