Some questions

For questions about using Classic.

Post » Fri Jul 30, 2010 3:06 am

1) Why does my event "Every 100 miliseconds - create smoke puff at missile" only create smoke puffs on one missile at a time? How can I get this to work for multiple missiles? I figure it should automatically..

2) Is there anyway to stop flashing an object besides waiting for it's duration to end? Say I want to flash an object for a duration of 9999999 (because the point at where the object stops flashing varies) There seems to be no way to do this.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Fri Jul 30, 2010 3:17 am

For your first question, you can use a "For each object" loop to get this to work right. Just add a for each loop event as a subevent to your "Every 100 milliseconds" event and create your smoke puff in that. That will create one for each missile.

As for the second question, the flashing action is pretty limited, so I'd suggest coding your own flashing effect, which shouldn't be too difficult.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Fri Jul 30, 2010 9:15 am

for easy flashing,use the sine behavior 8)
B
3
S
2
G
2
Posts: 136
Reputation: 1,347

Post » Fri Jul 30, 2010 10:21 am

Works great, thanks!
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Fri Jul 30, 2010 8:43 pm

There's also a nice short tutorial regarding your first question that may clear up any questions you have about that:

Tutorial: When to use 'for each'

.
B
3
S
2
G
2
Posts: 187
Reputation: 1,449


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests