nzhu's Forum Posts

  • Oh wow that's it! lol.

    hmm I'll just get rid of the keyboard feature then.

    Thanks so much for your help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So. I want to do is this:

    1. Click on a sprite, this sprite spawns a copy of this sprite (turret) to the mouse

    2. Then, based on a grid, I can drop this spawned version anywhere on the grid

    3. Continue doing that for as much as you can afford

    Everything is working fine except that the game crashes

    When I used the debugger, I saw that each turret set increases the object count exponentially.

    For example, say I start with 10 objects, next turret I place, there's 11, then 13, then 16, then 21, then 42, then 84, then 168, then etc............and it grows until somehow it reaches like 8000 objects after placing only 10 turrets.

    I don't see where in the code could cause this problem O.o