Question about pong multiplayer tutorial

Just started using Construct 2? Post your questions here

Post » Thu Nov 19, 2015 5:53 pm

Hello, in multiplayer pong tutorial, this is indicated in parentheses:

("game")

Why is this done ?.
Is not it enough mouse.y?

Image
B
29
S
12
G
21
Posts: 783
Reputation: 14,417

Post » Thu Nov 19, 2015 6:07 pm

From the Manual:

If an individual layer has been scrolled, scaled or rotated, these expressions do not take that in to account - for that case, use the layer versions below.

mouse.X("layer")
mouse.Y("layer")
Return the position of the mouse cursor in game co-ordinates, with scrolling, scaling and rotation taken in to account for the given layer. The layer can be identified either by a string of its name or its zero-based index (e.g. Mouse.X(0)).
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,375
Reputation: 58,432

Post » Thu Nov 19, 2015 6:22 pm

Ok clarified, thank you !.
B
29
S
12
G
21
Posts: 783
Reputation: 14,417


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests