Failing with events

Get help using Construct 2

Post » Thu Nov 14, 2013 6:57 pm

Hi
I am really struggling with events. I am trying to write one where it checks whether one of the player 1's counters is currently overlapping another player 1 counter, or a player 2 counter, or has been dropped back on the same spot as when it started. I was wondering whether someone could answer:

1. If the condition in the event says "Player 1" (for example) - is that the instance that has been selected by the player or is it some general sprite? For example, I have an event where "player 1 is overlapping player 2".

2. If I want to compare an instance variable on a counter with the UID of a sprite on the background, how can I find the sprite over which the player 1 instance is hovering?

Hope this makes sense and any help would be appreciated!

Thanks
Matthew

B
12
S
3
Posts: 37
Reputation: 1,111

Post » Thu Nov 14, 2013 9:12 pm

1. It will check all instances.

2. Using 'Is overlapping player 2' should affect that specific instance only.

If it doesn't, try adding the condition "System > Pick overlapping point", then specify the object and then type "player1.X" and player1.Y" for the coordinates.TwinTails2013-11-28 19:20:02
B
25
S
6
G
3
Posts: 197
Reputation: 3,355

Post » Fri Nov 15, 2013 8:25 am

Thanks, I'll give it a go.
B
12
S
3
Posts: 37
Reputation: 1,111


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 22 guests