[SOLVED] How do I Change Every X Second For Independant Objects?

0 favourites
  • 3 posts
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • Hello.

    I have an object with a variable "FireRate" which is a number.

    In my event sheet I have "Every Object.FireRate Seconds // Object Spawn Bullet"

    I also have, an event where when the player shoots the object, it decreases the FireRate variable by a number.

    The issue I'm having is that when I shoot one Object, I notice that the fire rate of all clones of that object in the scene changes, instead of just the one object I've shot at.

    How can I fix this?

  • Use Timer behavior instead of "Every X seconds". Start a Timer for FireRate seconds. In "On Timer" event spawn a bullet and restart the timer for another FireRate seconds.

    Each object instance will be running its own separate timer.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use Timer behavior instead of "Every X seconds". Start a Timer for FireRate seconds. In "On Timer" event spawn a bullet and restart the timer for another FireRate seconds.

    Each object instance will be running its own separate timer.

    Wonderful thank you!

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