How to make a family instance animation random?

Get help using Construct 2

Post » Sun Sep 29, 2013 4:59 pm

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.


"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
Image Image Image
B
61
S
19
G
6
Posts: 325
Reputation: 7,944

Post » Sun Sep 29, 2013 7:24 pm

more descrip
could you post video or capx or images drawing out what you want
B
41
S
11
G
7
Posts: 514
Reputation: 9,671

Post » Sun Sep 29, 2013 7:51 pm

Check out the timer behavior: timerBehavior.capx
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650

Post » Sun Sep 29, 2013 8:38 pm

@ramones I didn't even think to use it. Wow this is going to simplify and make what I want to do work. Thanks!!
Image Image Image
B
61
S
19
G
6
Posts: 325
Reputation: 7,944


Return to How do I....?

Who is online

Users browsing this forum: Blendi1223, Username05 and 34 guests