Wait action and object instancing

New releases and general discussions.

Post » Sat Jun 04, 2011 3:49 am

I've found that when I put a Wait action in an object that has multiple instances in a layout, I start to have problems with the instancing itself.
for example:
-on colision with the player, object1 spawns object2. -this works with the specific instance of object1.
-Then I put a Wait so that object2 is spawned after X milisecs.
-When I try the game, the player collides with an instance of object1 and then all object1 in the layout spawn object2 simultaneously.

Anyone have had this issue? Is there something I'm doing wrong?

Any help will be apreciated.
B
1
G
1
Posts: 7
Reputation: 439

Post » Sat Jun 04, 2011 8:03 pm

The wait object breaks picking with multiple instances. Use the timer behavior instead.

http://dl.dropbox.com/u/5426011/examples5/timerEx.cap
made in cc1.2
B
79
S
24
G
54
Posts: 4,747
Reputation: 40,757

Post » Sat Jun 04, 2011 8:35 pm

Shouldn't he just be using time delta?
B
5
S
1
G
2
Posts: 99
Reputation: 1,575

Post » Sun Jun 05, 2011 11:43 am

[quote:1bw51e8y]Shouldn't he just be using time delta?[/quote:1bw51e8y]
If he wants to. That is another way to achieve the same result.
B
79
S
24
G
54
Posts: 4,747
Reputation: 40,757

Post » Mon Jun 06, 2011 12:44 am

It works. Thanks guys.

Still, I don't understand why some actions like Wait produce this instancing issue. Is this a bug, or there's some obscure logic behind it?
B
1
G
1
Posts: 7
Reputation: 439

Post » Mon Jun 06, 2011 1:27 am

With the wait object it's a bug.
B
79
S
24
G
54
Posts: 4,747
Reputation: 40,757


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron