object.count is number in a layout, not all layouts?

Just started using Construct 2? Post your questions here

Post » Fri Feb 19, 2016 6:53 pm

Hello;

when I get spriteBall.Count, its the number of instances in my current layout--not the whole project right?
The fact an sprite has persistent set from another layout doesn't matter right?

thanks for your time.

yours
winkr7
B
34
S
8
G
3
Posts: 169
Reputation: 3,305

Post » Fri Feb 19, 2016 9:30 pm

Only the current layout is loaded, but an object with the Global property will still be counted if you load it's layout and then change out to another one
B
84
S
22
G
15
Posts: 1,039
Reputation: 15,249

Post » Sat Feb 20, 2016 1:42 am

Thanks lots 7Soul.
B
34
S
8
G
3
Posts: 169
Reputation: 3,305


Return to Beginner's Questions

Who is online

Users browsing this forum: brunopalermo and 1 guest