CdrDragon's Forum Posts

  • 4 posts
  • Quite a simple little thing but I can't seem to figure out how to do it.

    Basically what I'm trying to do is have an object, in this case let's say it's an enemy with a gun, fire a bullet every X amount of seconds.

    This works fine... when there's only one instance of this enemy. When I copy that enemy it only creates a new bullet at the first created enemy while the rest do nothing.

    How would I go about making sure that it creates a new bullet at every copy of that enemy which I place in my levels?

  • Saving and loading works perfectly, I can't believe I forgot to try that, haha.

    Thanks for all the help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The visibility trick worked out perfectly, thanks!

    Only one more question however:

    On a Game Over we want all the levels and variables to reset. With variables that isn't a problem but considering the Persist function doesn't allow the coins to respawn even on a layout restart how would we make it so it completely resets the layout (and thus respawns the coins)?

  • Hello everyone!

    Me and a group of other students are working on a platformer game using Construct 2 for an assignment, we came across one little problem however and that was the fact that the player could grind coins by replaying a level over and over again.

    After a bit of searching we found out about the Presist behaviour which seemed to fix our issues at first, coins would not respawn on replaying the level.

    However we soon discovered that they didn't even come back on a layout restart, meaning that if the player died and had to start that level over the coins would still be gone, which is something we don't want in our game.

    How would we go about ignoring the Persist behaviour on objects whenever it's required?

    To sum it up:

    -Coins should not respawn on a level that the player already finished

    -Coins SHOULD respawn when a player dies in a level

    -On levels that players DID finish but didn't collect all the coins on they should be able to go back and get those coins, but on player death on that level only the coins the player didn't pick up before should respawn.

    Thanks in advance!

  • 4 posts