3 Random of How do I Questions..

0 favourites
  • 7 posts
From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template)
  • Hello,

    1. How do you save the file so that you wouldn't need to always open construct 2 to play it, and only need to play via browser? do you export it as a html 5 file?

    2. In my game when you click M1 you spawn a block, how would I create a delay so that every say, 0.5-1 seconds you can spawn another block oppose to people being able to spam blocks?

    3. How would I create a block limit so that if someone creates lets say 10 blocks and then they create one more block it deletes the first block they placed, if they create another, it deletes the second block they placed, would this have something to do with instance variables?

    Thanks.

  • 1. Yes

    2. How about setting up a variable that will be set a specific value when a block is spawned and the status will be reset every x seconds?

    3. I would suggest an array here and filling it with the IDs of the spawned blocks... after the tenth Block, the first will be destroyed and the array has to be reordered to move everything one place in front.

  • Thank you for your response, is there a step by step tutorial anywhere for the number 2?

  • not really...

    my quick idea would be:

    Set up an boolean instance variable on the player called something like "canbuild".

    If the Boolean is true, then you can build. When you build a block, set that variable to false.

    On an addition event that triggers every x seconds, set that value back to true.

  • Thanks, I've done the Boolean, but what do I put for the event for it to not allow the player to build?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you should have an event where you create the block. All you need is to add a condition based on the boolean.

  • Here's a simple way to do a delay:

    Dropbox: SimpleSpawnDelay.capx

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