How do I stop spawning multiple objects?

0 favourites
  • 5 posts
From the Asset Store
Be quick and choose the right answer for the shown equation.
  • hello everyone.. this is my first post and also a beginner at this.. so im currently creating a simple top-down tower defense game.. and im at the point where the tower will spawn when you click the the image of the tower but this is where the problem start.. as you click/spawn tower everytime it multiplies by two (example: 1 to 2 to 4 to 8 to 16.. etc).. ive run it at chrome..

    here is the link for the project im working on..

    h*t*t*p*s://yec-my.sharepoint.com/:f:/g/personal/john_cunanan_torontofilmschool_ca/ErVh3pSdbFpItKfx9pBXQpwBYXTTA7npfQKm8etDnAzrGQ?e=pwJPmX

  • I think the link you posted is invalid. (and yes, I removed * from https)

    It's asking me to login to my school account (?)

    Could you re-appload your project to another service, like dropbox?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think the link you posted is invalid. (and yes, I removed * from https)

    It's asking me to login to my school account (?)

    Could you re-appload your project to another service, like dropbox?

    sorry about that.. here is a link in google drive: h*t*t*p*s://drive.google.com/open?id=1YdtpurkDsw8xSXG7j5-IyBXcEdcgrm4G

    thanks for the time..

  • In the future you need to save your project as single file (capx) and share just the capx file, not the entire folder.

    I modified your "autosave" file, so it might not be the latest version of your game:

    https://www.dropbox.com/s/fsndp78ierdqo ... .capx?dl=0

    You should spawn new towers from "TowerDisplay" object, not from Tower1.

    I also removed all off-screen objects and moved them to an unused layout. This way they will not interfere with your game.

    When you add new objects, place them onto that Assets layout.

  • In the future you need to save your project as single file (capx) and share just the capx file, not the entire folder.

    I modified your "autosave" file, so it might not be the latest version of your game:

    https://www.dropbox.com/s/fsndp78ierdqo ... .capx?dl=0

    You should spawn new towers from "TowerDisplay" object, not from Tower1.

    I also removed all off-screen objects and moved them to an unused layout. This way they will not interfere with your game.

    When you add new objects, place them onto that Assets layout.

    thank you very much for your help sir/ma'am.. i didnt even notice that i was spawning from the tower itself.. im trying to solve this for a few days now.. i feel like an idiot now.. XD anyway thanks for your time and effort.. not only did you help me with the problem but also you gave me a few tips that will help greatly.. thank you very much for all of this..

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