Check if there's a sprite or not on coordinates.

Get help using Construct 2

Post » Sat Mar 04, 2017 11:59 pm

Let's say we have these coordinates.. 0x32, 32x32 etc..

How do we check that there's NO sprite there, that is, it is empty? (and then proceed with events from there)


Pick Sprite overlapping (32, 32) will pick all sprites on that place. But if there's none, how can I get returned as such that there's no sprites there?

I am sorry for asking daft questions. My search-mojo is not the best.
B
58
S
18
G
13
Posts: 447
Reputation: 10,735

Post » Sun Mar 05, 2017 12:09 am

And it would be nice if it wasn't cpu intense too as I am checking up to 600 sprites every 0.2 second
B
58
S
18
G
13
Posts: 447
Reputation: 10,735

Post » Sun Mar 05, 2017 12:21 am

helena wrote:Pick Sprite overlapping (32, 32) will pick all sprites on that place. But if there's none, how can I get returned as such that there's no sprites there?


Image

Image
Image
B
64
S
23
G
7
Posts: 1,482
Reputation: 10,825

Post » Sun Mar 05, 2017 12:40 am

Thumbs up to you!
B
58
S
18
G
13
Posts: 447
Reputation: 10,735


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Casimir, pwrtoppl, sublimate and 8 guests