How I can count the number of objects " Is On Screen Only "?

Get help using Construct 2

Post » Sat Jun 25, 2016 7:14 pm

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

Image

Here the capx file:
https://www.dropbox.com/s/u32i9i5bq8knz ... .capx?dl=0
B
48
S
9
G
10
Posts: 200
Reputation: 8,258

Post » Sat Jun 25, 2016 7:19 pm

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
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Sat Jun 25, 2016 7:52 pm

Does not work ... Please edit the file .capx
B
48
S
9
G
10
Posts: 200
Reputation: 8,258

Post » Sat Jun 25, 2016 8:18 pm

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!
Eh, Steve!
B
113
S
54
G
13
Posts: 112
Reputation: 16,095

Post » Sat Jun 25, 2016 9:52 pm

Excelent!!!
Thank you.

Image
B
48
S
9
G
10
Posts: 200
Reputation: 8,258

Post » Sun Jun 26, 2016 9:31 pm

No problem!
Eh, Steve!
B
113
S
54
G
13
Posts: 112
Reputation: 16,095


Return to How do I....?

Who is online

Users browsing this forum: charliesan763 and 22 guests