High CPU and Memory Usage [?]

For questions about using Classic.

Post » Sat Jul 25, 2009 6:59 am

Trigger once is usually used in conjuction with another condition. For example:

[code:382s0g7h]+If 'variable' equals 0
+Trigger Once
-Add 1 to 'variable2'[/code:382s0g7h]
If the first condition comes out true, then the action within will only be performed once. However, if the first condition later evaluates to false, then the action will trigger again as soon as the first condition is once again true, starting the cycle over.

If you want the events under the trigger once conditions to only be run at the start of the layout, it would be better to put them as sub events to the start of layout condition.

EDIT: Here's an example showing what I just described.
Moderator
B
99
S
37
G
19
Posts: 1,584
Reputation: 17,842

Post » Sat Jul 25, 2009 9:21 am

What linkman said. Trigger once only runs where you have repeated conditions which go on/off in cycles, mainly collisions.

It's normal for some CPU to be being used even when idle, don't worry about it.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests