0 Favourites

Count all sprites

  • Is there a way to count all sprites on your layout?

    I'm just wanting to keep track of all the sprites I have in comparison with the FPS

  • I don't have C2 licence so I can't tell you that it's posible to put your sprites in family and then set Text to "Family.Number.of.Object" like in CC - in CC that option you can call but it's not working like meany things in CC.

    If that's not possible in C2 you can set text to 'objectcount'(from system) (all object that ara on layout and exclude those that are not sprite and counts as those that are on layot even if not visible. Some of these are:

    text, particle, tilebackground,canvas, array, ok button, dictionary, fuction...

    find out the rest that you use in your project and for total number of object substracte each of them

    'objectcount'- number of object that are on layout (visible or not)and not sprites = number of sprites

    that's all I can think of

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • All objects should be countable using the .count expression in both CC, and C2.

    As in sprite.count, text.count, not sure but even family.count.

  • if you wanna to count instances of "one sprite object" then it's possible, but if you wanna to count all sprite objects/not instances an their instances then it cant be done in one shoot. Family count dont work in CC. I sugest method in my first post if family count don't work in C2, or you get number of each sprite instance and add that to instance count of all other sprite objects

  • Cool cheers all sounds good

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
Sprite Font Generator - v3
368 112,395
RetroDaddy's avatar
RetroDaddy
Unread hot topic
86 28,724
St4rDu57's avatar
St4rDu57
Unread hot topic
153 104,456
DravenX's avatar
DravenX