set Visible VS create Object

Get help using Construct 2

Post » Thu Nov 14, 2013 11:25 am

Which one has lower effect on FPS?

When you have events like this:

1) -> On touched sth ->> Create object on layer ? at X,Y (then destroy it)

or:

2) -> On touched sth ->> Set object Visble (then set it back at being invisible)trance2013-11-14 11:25:16
B
14
S
4
Posts: 110
Reputation: 1,538

Post » Thu Nov 14, 2013 11:46 am

Depending of the size of the object (image source) and how many time you do this per tick.

in your case use you could use the method you want without any problem
B
85
S
14
G
6
Posts: 72
Reputation: 7,237

Post » Thu Nov 14, 2013 11:46 am

The create is best overall. Because even if you have lets say 10000 hidden objects, you would have to make C2 not do something with these, that it should do with others, but to find out which is hidden you would have to check all objects to see if that's the case.

Now 10000 objects are quite a lot :) but even with 500 and you having 35 events/tests that needs to check it, its quite a lot in the end.nimos1002013-11-14 11:49:23
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848


Return to How do I....?

Who is online

Users browsing this forum: bclikesyou, kellehk, ST314 and 23 guests