large levels peformance

Discussion and feedback on Construct 2

Post » Tue Feb 25, 2014 1:17 pm

if the event sheets would be in a object, you could just use the events when the object is realy used or on screen. What i mean is, you still have to check every game loop if the object is there but only have to check on the events if object is realy there. Should increase performance a little bit. Or im completely wrong?
B
38
S
11
G
5
Posts: 485
Reputation: 5,340

Post » Tue Feb 25, 2014 4:31 pm

You can do that already.

If sprite.count>0
- do stuff
Moderator
B
94
S
33
G
33
Posts: 3,006
Reputation: 27,744

Post » Wed Feb 26, 2014 12:00 am

sorry, but i dont get this, how do i set this up? i dont see something like count anywhere
B
38
S
11
G
5
Posts: 485
Reputation: 5,340

Post » Wed Feb 26, 2014 1:03 am

New event>system>compare values, enter sprite.count.
Moderator
B
94
S
33
G
33
Posts: 3,006
Reputation: 27,744

Post » Wed Feb 26, 2014 7:49 am

ah ok, thank you very much! :) i totally missed this, comes very helpfull for a problem that i had for some time now, i used a variable to check if a object is there, but never liked this workaround.
B
38
S
11
G
5
Posts: 485
Reputation: 5,340

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: Colludium and 1 guest