Exp system problems.

This forum is currently in read-only mode.
From the Asset Store
Create complex dialogues with ease with this tool/template!
  • Hello all, I'm new to construct and programming. However I am trying to set up a exp system where at an exponential amount of kills will grant you one extra level, and in turn that receiving the extra level will grant either a set or exponential amount of life.

    I hope I explained this okay, if anyone has any links for me to look at that would be very cool.

    Thanks all for your time.

  • How far have you gotten?

  • Well, I have just figured it out, however now i am trying to break a condition. As of right now I have a monster generator, after 10 hits the generator is destroyed. However, the monsters are spawning form a different area of the map once destroyed. i have the condition set up like this

    Every 7000 milliseconds- System create Monster on layer 1 at (gen x, and gen y).

    I'm pretty new to this so how do I break the cycle once the Generator is destroyed?

  • There are several ways to do this. One way would be to add a global variable and add the condition "global variable generator is equal to yes" to what you already have (probably the best way). Also, you would need to add the action "set global variable generator to no" to the event that destroys your generator. Another way you could do it would be with private variables instead of global variables (this would probably be used for multiple generators). However, the shortest and probably least complicated way(as in least steps) to do it would be to add the inverted condition "generator is inside layout" (you can invert a condition by right clicking on it and selecting "Invert Condition") to what you have(I'm guessing this is the worst since it would probably use more cpu.)

    Good luck!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • As RomanCenturion has suggested,

    Every 7000 milliseconds

    Generator: Is on-screen - System create Monster on layer 1 at (gen x, gen y)

    or you could assign a private variable to the generator (we'll call it 'Alive')

    Ever 7000 milliseconds

    Generator: Value 'Alive' Equal to 1 - System create Monster on layer 1 at (gen x, gen y)

  • Thanks guys that was pretty cool

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