lionz's Forum Posts

  • You would only need 2 global variables, a level score and a total score.

    When you finish level 1, level score = 50, total score = 50

    finish level 2, level score = 100, total score = total score + level score, so 100 + 50 = 150

    finish level 3, level score = 150, total score = total score + level score, so 150 + 150 = 300

    You just add the level score to total at the end of each level.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't think it matters too much although it's more difficult to track what's going on with 'time' than if you assigned a timer behaviour to the bomb. You are basically saying on it becoming activated calculate some time from that point, well you can do this with a timer behaviour and track it on each bomb. I can't think of a more obvious use for a timer behaviour than a bomb :D Also I should note the timer is affected by timescale so when you are trying to pause the game it will stop the timer and resolve that issue for you.

  • Yes it's object.timer.currenttime("timer name")

  • You alter the idle timer in the device settings. It's possible to override the idle timer if you are coding an application from scratch but generally people advise against it.

  • There is a timer behaviour. You assign it to the bomb and say when bomb is activated, trigger once, start timer. construct.net/en/make-games/manuals/construct-3/behavior-reference/timer

  • Keep pressing the down key if you want to have a panic attack.

  • Yes there are lots of construct games on Steam.

  • Yeah what plinkie is saying is 3 Variables

    • Lives
    • Score
    • Score2

    Everytime you gain points make it add to both Score and Score2. Then make a seperate event When Score2 is equal or greater to 30,000 subtract 30,000 and add 1 to Lives. That way Score2 will always be somewhere between 0 and 30,000 but the main Score variable is always increasing and indicative of your total Score :)

    ?

  • I find the best way to do this is to have 2 variables, one is your score, one is to track lives we'll call it score2.

    As you gain points add them to both variables.

    When score2 greater or equal to 30,000, add 1 to lives, subtract 30,000 from score2.

    The subtract resolves any remainder issues if it creeps over 30,000 say 30,500, score2 would then become 500.

  • The powerup object has a text variable powerup.name, there you give it a name.

    The code is powerup on dropped, is overlapping slot, set slot.equipped (which is a text variable) to ""&powerup.name

  • try on click, set variable to choose(0,1,2), if variable = 0 , spawn red, if 1 spawn green if 2 spawn yellow etc

  • Salman_Shh I have no idea what's going on in that gif but it looks interesting xD

  • Salman_Shh have you ever released a game somewhere? Your characters are always so groovy.

  • Families also have instance variables so use them, when an enemy collides you do family.damage, and the hp of the enemy is family.hp.

  • Well you would have on arrived > find path to tree, but you will need something to decide which trees he is picking. If he goes to the closest one each time you can do pick nearest tree to player > find path to tree. With that though he will always pick the one he is standing on, so you will need to take the trees he has arrived at out of the route, so when he arrives at a tree you could toggle a boolean on the tree to true, which would mean find pick nearest tree to player where tree.bool=false > find path to tree.