Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
How I can count the number of objects " is On Screen Only "?
(only the Objects in the windows Size)
I do not want to count all the objects in the Layout
Here the capx file:
https://www.dropbox.com/s/u32i9i5bq8knz ... .capx?dl=0
Develop games in your browser. Powerful, performant & highly capable.
I don't have C2 now, but using the condition "is on screen" to filter instances then retrieve the character.pickedcount should work
Does not work ... Please edit the file .capx
I got a demo file working. Move the mouse around to scroll to different positions.
i use construct 3 but this code fits also to construct 2. See image
demosthenesk You don't need the loop and the variable. Just pick all instances on the screen and use .PickedCount expression.