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
27
S
11
G
16
Posts: 653
Reputation: 11,477

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
126
S
29
G
72
Posts: 5,028
Reputation: 51,366

Post » Thu Nov 19, 2015 6:22 pm

Ok clarified, thank you !.
B
27
S
11
G
16
Posts: 653
Reputation: 11,477


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests