davidross900's Forum Posts

  • Tylermon yeah it is a bit confusing the way i've done it. I originally had the following....

    every(5,8)seconds | Create object(enemy) <----------- This is the Spawn Rate.

    Then i wanted the level to get harder by subtracting from the spawn rate time so I created the global variable SpawnTime.

    So if I add 1 to the SpawnTime and I have this subtracted from the spawn rate, then eventually the spawn rate becomes 0 which I don't want.

    I was hoping I could get it to -----------> every(0.5,1.5)seconds.......for example

    so is this how I should code it:

    Spawn rate-spawn time > 0

    and then this being the condition?................Every random(spawn rate - spawn time).................is that what you mean?

  • linkman2004 Thank you!

  • yeah i only did add 5 every second so that i could quickly see the progression of the even and whether it was working correctly.

    Tylermon how should i be coding what you said?

    interesting, i never knew about this function before. How should i code it?

    I'm sorry to sound so bad at this, its just confusing me!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I saw someone else's post on this and I'm having the same problem. I couldn't understand the answer that they were given so I'm essentially repeating the question! Sorry

    I tried asking this question earlier today but only got referred back to the other post again which I don't understand.

    I've created a game where 2 sets of enemies will be coming towards the player at random spawning times.

    I wanted there spawning rate to be more frequent to increase the difficulty of the game, so I added a Global Variable called 'SpawnTime'.

    The 'SpawnTime' will subtract from the enemy spawning rate. However I need to create a limit so that it doesn't subtract forever. Otherwise the spawn rate will eventually become '0' it meaning that it will be "every x seconds" | random(0,0)" so all the enemies will just overlap.

    Thr starting spawn rate for one of the enemies is random(5,8) so I essentially would want it to be something like random(0.5,2) when it reaches the most difficult stage.

    THANK YOU!

    I've attached the image below with my current events page......

  • Yeah I just copied his question since its pretty much the same as mine, but It didn't work for me? not sure what I did wrong.

    Is there a different way to do this?

  • I've created a game where 2 sets of enemies will be coming towards the player at random spawning times.

    I wanted there spawning rate to be more frequent to increase the difficulty of the game, so I added a Global Variable called 'SpawnTime'.

    The 'SpawnTime' will subtract from the enemy spawning rate. However I need to create a limit so that it doesn't subtract forever. Otherwise the spawn rate will eventually become '0' it meaning that it will be "every x seconds" | random(0,0)" so all the enemies will just overlap.

    Thr starting spawn rate for one of the enemies is random(5,8) so I essentially would want it to be something like random(0.5,2) when it reaches the most difficult stage.

    THANK YOU!