How do I compare frames of two different object instances?

Get help using Construct 2

Post » Thu Sep 14, 2017 3:32 am

Um, what's wrong with using filtering?

object.frame=f
-object is overlapping object, do fo
Image ImageImage
B
179
S
50
G
207
Posts: 8,719
Reputation: 128,306

Post » Thu Sep 14, 2017 3:38 am

@newt you are right, I got a bit carried away :)

EDIT: actually, no, you are not right.
The task was to find 2 sprites that have matching frames, not to find 2 sprites with frame=f (some fixed number).


And still, the trick with using a family to refer to another instance of the same object can help in many different situations.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
19
S
9
G
158
Posts: 2,377
Reputation: 84,381

Post » Thu Sep 14, 2017 4:52 am

Well I really wasn't talking about that, and you may even need that in certain circumstances.
I was just pointing out that the picking system works to make things less complicated.

Also, yes this is assuming you know the frame beforehand, which is quite common for a matching game.
Image ImageImage
B
179
S
50
G
207
Posts: 8,719
Reputation: 128,306

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 64 guests