Loop the group of events?

For questions about using Classic.

Post » Sat Jun 13, 2009 10:58 am

I've group of events and I wish that these events occur periodically.
So, how to loop group of events?
B
2
G
3
Posts: 30
Reputation: 910

Post » Sat Jun 13, 2009 11:39 am

You could set up something like every x miliseconds enable group "something".
Then at the end of that group's events disable the group, from within the group.
Or use the new toggle function, and adjust your counter accordingly.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Sat Jun 13, 2009 12:16 pm

I do not fully understand you.. :(

?an you give me the example of the first AND second method? Write here the code, pleasee :wink:

Or, for example, this file [url:1i2giaja]http://willhostforfood.com/access.php?fileid=70179[/url:1i2giaja]
- there is object in the scene, which periodcally appears. I wish to loop this event.
B
2
G
3
Posts: 30
Reputation: 910

Post » Sat Jun 13, 2009 12:20 pm

Why not just make it "Every 250 miliseconds"? Then you can just enable and disable the group at will.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sat Jun 13, 2009 1:16 pm

Mipey,
I try to make "every x miliseconds" and enable group, and after disable, But it doesn't work properly. I just want to loop group of events (instead of repeating similar events in editor).

Look at my file above... May be you show specific example how to set appearing and disappearing of the object and loop it? :|
B
2
G
3
Posts: 30
Reputation: 910

Post » Sat Jun 13, 2009 2:12 pm

All event are looped. If you want an event to only run once every X amount of time you use Every X miliseconds. if you want to enable a group to loop every x miliseconds.

Make an event outside the group: Every X milliseconds, inverted group is activated(Group is not active)> enable group
Make your events then As the LAST event do a system > group is active> Deactivate group
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Sat Jun 13, 2009 2:29 pm

You don't need to use activation or deactivation. Groups can be placed as a subevent to another event, so if the group is a subevent to an 'every X milliseconds' event, it will run the events contained within every X milliseconds.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sat Jun 13, 2009 2:59 pm

I could be wrong but I think theres something wrong with enablling and disabling groups.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Sat Jun 13, 2009 10:19 pm

If there is, post a bug with clear steps on the tracker.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Sun Jun 14, 2009 1:00 am

ai ai rich...



...




. :wink:
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests