lionz's Forum Posts

  • 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.

  • What I mean is have slot1.powerup as an instance variable.

    The powerup object you are dragging has its own instance variable powerup.name.

    Then when you drop powerup onto the slot, on dropped you can set slot1.powerup to powerup.name.

    There is no need to list 16 powerup variables on the slot, just have an equipped powerup which is a name of the thing that was dropped.

  • Normally I would say use an array but for a simple inventory system like this then the variables could be enough. You drop a powerup onto one of 3 slot objects, the slot instance variable takes the name of the power up, you could then use this name however you want : set the animation of the slot to show the powerup, when you use it refer to the name in events.

  • Bizarre question, just set it in the image editor.

  • A layout resets by default right when you enter it so what do you have going on so far to stop enemies being created on entering a layout, persist behaviour?

    Is it one layout or several layouts?

    Do more difficult enemies spawn or is it the same enemy type?

    What should happen if you progress without killing the enemies and go back?

    What happens to enemies that you haven't reached yet that are beyond the save point?

  • Global variables, or an array.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pathfinding behaviour doesn't work like that. You will need to add a trigger once condition on the left so it doesnt keep finding a path. The find path action can remain. Then you need a new event, redcultist on path found > move along path. You can find more about that behaviour in the manual.