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
28
S
11
G
18
Posts: 690
Reputation: 12,594

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
73
Posts: 5,085
Reputation: 51,990

Post » Thu Nov 19, 2015 6:22 pm

Ok clarified, thank you !.
B
28
S
11
G
18
Posts: 690
Reputation: 12,594


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest