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
https://www.scirra.com/manual/131/common-conditions
https://www.scirra.com/manual/133/common-expressions
Does not work ... Please edit the file .capx
I got a demo file working. Move the mouse around to scroll to different positions.
https://drive.google.com/file/d/0B_yBalwF1wRjYlg0eHN1cndfYUk/view?usp=sharing
Eh, Steve!
Excelent!!!
Thank you.
No problem!
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.