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
173
S
50
G
194
Posts: 8,560
Reputation: 121,356

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
17
S
9
G
125
Posts: 1,735
Reputation: 66,791

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
173
S
50
G
194
Posts: 8,560
Reputation: 121,356

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests