Add only one action when event loops

New releases and general discussions.

Post » Mon Aug 11, 2008 10:27 pm

this is a feature which is very important for event based programming its basically added to an event to make it perform its action only once e.g. you make an event which says, shoot object A out of object B when Object B's animation is on frame 2, sounds fine, but theres a problem, object b will shoot as many objects as it can during that frame, so if its anim speed is lets say, 25, object b will shoot 3 shots b4 the frame changes, if you were to make the event {shoot object A out of object B when Object B's animation is on frame 2 and add to that only one action when event loops} then your object b would shoot only 1 bullet when its on frame 2 regardless of how long it stays on that frame, which is the desired action.

plz implement in next build

and if its already there some1 plz tell me where it is
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Mon Aug 11, 2008 10:31 pm

In the system object, use the action: Trigger once while true.
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Mon Aug 11, 2008 10:33 pm

[quote="Attan":3qeu4m39]In the system object, use the [color=#FF0000:3qeu4m39]action[/color:3qeu4m39]: Trigger once while true.[/quote:3qeu4m39]
You mean condition. Remeber that order of conditions is vital.
/thread
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Mon Aug 11, 2008 10:35 pm

Ah, yeah sorry.
B
8
S
2
G
5
Posts: 744
Reputation: 3,288


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 0 guests