AJTilley's Recent Forum Activity

  • From my own experience the best way is to add a global variable that you add 1 to every time a big asteroid and smaller asteroids spawn and subtract one from it every time one is destroyed. When the variable is at zero you can set a new level to start.

    N.b. I currently use two global variables for this one counting up to a set point and one counting down. to make sure there are no mistakes but i am dealing with a more complex tower defence game.. one variable should be plenty for you :)

  • Hi,

    I want to setup an if statement so that if nothing is happening then a new event will start.

    At the moment i have two global variables, onscreen and counter.

    When nothing is happening both these would be at zero. What i want to do is set an if statement that says

    'if counter is equal to or less than 0 and onscreen is equal to or less than 0 for 5 seconds' = then activate next group.

    It has to be 5 seconds because there are points within a standard group event sequence when both variables might equal zero but that group isnt over with so i want to make sure a new event only occurs when a group is finished.

    If anyway can say whether that if statement is possible and which system events to use would be useful thanks.

  • Gave it a try, same thoughts as Genki really, I couldnt really control the movement of the ball at all, it just did whatever it wanted and my input didnt have much effect.

    Other than that its not to bad for a first game i think with a few tweeks could be alright :)

  • Hi, I added the system > Trigger Once to the primary event in each group, it appears to have resolved the issue of multiple events running at the same time. But if anyone has a better solution would be happy to hear it. :)

  • Hey really liked your game, nice atmosphere between levels, and i liked the humor of the car crash. ~Hope to see more in the future. :)

  • hey more difficulties :(

    I have managed to get the random events working on my game however i am unsure how to make a new event trigger only once and not repeatedly.

    capx:

    http://www.tilleydesign.co.uk/capx/EnergyFlux.capx

    game:

    http://www.tilleydesign.co.uk/capx/test/index.html

    if you complete the first wave, then the next wave repeats the initial process about 5 or 6 times... i want this limited to one appearence so that it doesnt overload the game or player... any help greatly appreciated as always.

    For those who dont have license copy of construct 2 here is a screenshot of my current event sheet:

    Image 1

    Image 2

  • thank you for your help thats perfect now all i need to do is get the random event activation to work and im home free lol.

  • Hi, I am having some issues getting the next group and event sequence to activate... Could you take a look at my current capx file to see if you can point out where i am going wrong?

    I was trying to set it so that at present when 100 enemies have spawned, enemies stop spawning and the group deactivates and a random other group (as described above) activates. Then when all the current enemies are destroyed the new group begins.

    But when ever i test it, the first group works but a new group does not proceed and i am not sure why...?

    Capx file:

    http://www.tilleydesign.co.uk/capx/EnergyFlux.capx

  • Hi In my tower defence game i have an event that starts with 4 ships and every time one is destroyed 2 more ships spawn. Each time a ship is destroyed 1 is added to a global variable named counter and then when the counter reaches 100 for example ships stop spawning.

    What I would like to do is to trigger a new set of events once all ships are destroyed and no more are being spawned. Can anyone advise the best way to do this?

    Originally I had the new events set to when the counter reached a certain amount, but that's not precise enough.

    Any thoughts/help greatly appreciated.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey all just a quick update, I just tried a shot in the dark of moving the button events switching from red to green etc. to the primary event sheet and that has resolved the issue. As the two event sheets are linked im not sure why it makes a difference but i guess this is resolved for now.

  • hey just a quick bump, if anyone has any thoughts on what may resolve this or what is causing the issue. Any thoughts would be welcome.

    thanks.

  • Sorry i should also note i have a commercial copy of C2 and may have more layers than is possible in the free version.

AJTilley's avatar

AJTilley

Member since 18 Feb, 2012

None one is following AJTilley yet!

Connect with AJTilley

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies