Detect if nearby on X-/Y-axis

For questions about using Classic.

Post » Thu Mar 05, 2009 8:41 pm

How does "pick closest" as condition work with multiple instances of 1 object?

This is how the game works:
In a tetris-way:
- blocks fall down, randomly.
- if 2 blocks of the same color are next to eachother, they should be destroyed.

So I tried:
+ Pick closest to BlockRed.Left - 7 (7pixels left from BlockRed), BlockRed.Top.

What happens: at first it goes a kind of as expected (blocks left from the red block are triggered, but all new spawned red blocks are also triggered.

I would like to let all block instances detect if another block comes near it, within a certain range.
One of my recent games: Plants
Posts: 729
Reputation: 6,494

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests