How do I set different times for different instances

Get help using Construct 2

Post » Thu May 28, 2015 12:10 am

Hi guys, first post here. I've been working on a game where my NPCs (all are instances of the same object) moves around the screen and they change direction at a given, random time (I use the On every X seconds system event for this). Well, the NPCs do change direction, but the problem is that they all change at the same time! How can I set different random seconds for different instances of my npc?? Your help will be very appreciated ;)
B
5
Posts: 2
Reputation: 246

Post » Thu May 28, 2015 12:20 am

Add the timer behaviour, and give each a random timeout.
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Thu May 28, 2015 12:45 am

Yes, tha'ts right blackhornet!! Anyway, I have to add a For each instance event in order to this work correctly, but thank you for putting me in the right path
B
5
Posts: 2
Reputation: 246


Return to How do I....?

Who is online

Users browsing this forum: Euduardo, Kin, mikehive, ratboy3, tinhofiel and 35 guests