How to make a family instance animation random?

0 favourites
  • 4 posts
From the Asset Store
A collection of various zombie characters sprites for creating a 2D platformer or sidescroller game
  • Hey everyone!

    It's been some time since I have had time to work on my project. Picking up where I left off from 8 months ago has been a bit of a struggle with all the new features and fixes to C2.

    I have a family called zapper which contains two animations. One "zapBeam" and another called "beamEmiter" they work together to create a zapper within my game that kills the player. There are multiple "zappers" on the map. They work just fine as is, but I am trying to have it where they all fire randomly from each other. As they are now, they all fire at the same time. Not sure how to go about randomizing them, or if I went about this in the wrong way.

    I have included a screen shot to show how I am handling this event.

    <img src="http://facecjf.com/img/zapper.jpg" border="0" />

    "zapTime" is a variable that handles the time of the zapper state... on and off so to speak.

    Perhaps another set of eyes will shed some light on my mistakes.

    Thanks in advance!

    Chris

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • more descrip

    could you post video or capx or images drawing out what you want

  • Check out the timer behavior: timerBehavior.capx

  • ramones I didn't even think to use it. Wow this is going to simplify and make what I want to do work. Thanks!!

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