Count all sprites

0 favourites
  • 5 posts
From the Asset Store
Be quick and count the cards and choose the right number!
  • 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

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Cool cheers all sounds good

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)