jezjones24's Recent Forum Activity

  • Magistross - I get a message about release 247 vs my release 244.

    I installed construct 2 yesterday, are you on a different release?

  • No.

    When the game starts a couple of global variables are set.

    The quantity of animals to spawn - between 1 and 10. (howMany)

    A variable that selects which animal is used based on an array. (whichAnimal)

    This quantity of animals need to be spawned consequetively, not all at once. Ideally, once every 0.5 seconds until they are all there.

    I have a spawn function that creates the right animal in a random location, right now it is repeated for the quantity.

    It is triggered on "on loader complete" because i cannot find another trigger to get it to run.

    The idea is that a random number of animal sprites are created at the start of the game. They can be of a number of different types. Right now they all appear suddenly, I would like to have them appear individually one after another. This is a counting game for children.

    How can i set up the calls to the spawn function to take place in sequence.

    For example

    for(howMany){

    spawnAnimal();

    wait(0.5 seconds)

    }

    If i do anythying like this there is no limit to the spawning. The loop does not end.

    Only by calling "On loader layout complete" -> Function Call spawnAnimal()" do i get the limit on the amount spawned. It calls it once. Then i use Repeat (howMany) to repeat the call for the number of animals i want.

    Also if i add any kind of wait to the function or the call, it is simply ignored.

    How can i add a condition somewhere to do this with a time delay until a condition is met or for each instance until there are "howMany" on screen.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • zenox98 - I have gone through the manual and several templates, hence the question.

    It's a little dissappointing that rather than point me to a specific template or area of the manual you just blast me for being wildly misinformed.

    The event system information is what leads me to state that the event sheet is executed each tick.

    Please, if I am so wildy mis-informed direct me to somewhere i can read more.

  • Ok, i am new to Construct, but i am finding it a little crippled.

    The event sheet is run every tick right? So that means it is very difficult to set game level actions.

    I want to spawn my animals (not enemies) when the game loads. There will be between 1 and 10 of them. I want to spawn them at 1 second intervals. The only way i can get them to spawn is with "on end of layout" or "on start of layout." - I have no idea why that is.

    I have a spawn function, this is fine. I call it with Repeat using a variable i set.

    I would like them to appear one by one with a delay of 1 second. This is not possible with the wait function as the function can only be called at the start of the game. I cannot use an IF statement to see how many have been spawned and use that as a limit.

    Please can someone tell me how you control spawning within fixed amounts instead of generating them all at once on load.

    The event sheet is called 1 time per tick but also there are no IF statements so standard approaches to coding seem to be useless here.

jezjones24's avatar

jezjones24

Member since 21 Nov, 2017

None one is following jezjones24 yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies