How do I fix this glitch?

0 favourites
  • 3 posts
From the Asset Store
Tweakable and easy to use effects for your projects.
  • I'm making a project for school, and for the boss, he's going to (every second) choose whether he wants to shoot to the left, shoot to the right, or walk to the left or right. To error is, when he chooses to shoot he spawns a ton of them. Does anyone know how to fix this error? The game is the MediaFire link below, it's under the "Enemies - Boss" group in my event sheet. ( I couldn't upload a file larger than 2 MB as an attachment, the file is 2.94MB :L )

  • Nevermind, Scirra won't let me post URL's... o-o

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Add an instance variable to your boss named 'canFire' or something, check this is true when going to spawn a bullet, and when he does spawn a bullet set this to false so he wont spawn another straight away.

    Then after the bullet is destroyed set the bosses 'canFire' variable back to true, not sure if this would do what you wanted.

    Other way you could set the variable back to 'true' every 1 second or something.

    Hope this helps

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