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
19
Posts: 700
Reputation: 13,116

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
129
S
29
G
75
Posts: 5,144
Reputation: 53,193

Post » Thu Nov 19, 2015 6:22 pm

Ok clarified, thank you !.
B
28
S
11
G
19
Posts: 700
Reputation: 13,116


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests