RTS template question

Just started using Construct 2? Post your questions here

Post » Thu Jun 12, 2014 10:58 am

I want to make a unit selection box like in the RTS template provide by C2.I notice there is an expression Mouse.Y("Bases"). I do not know the uses of "Bases".I try to remove the word "Bases" and the result is when I zoomed in,the selection box shape doesn't follow my coordinate of mouse accurately.
Anyone can tell me the use of "Bases"?
B
17
S
4
G
1
Posts: 203
Reputation: 1,583

Post » Thu Jun 12, 2014 5:56 pm

It's the name of the layer the system should use to get mouse coordinates. Without the layer, the mouse goes off the layout coordinates and this can throw off the coordinates if scaling does not affect the entire layout.

See the manual post about the Mouse object:

https://www.scirra.com/manual/114/mouse
B
40
S
12
G
11
Posts: 331
Reputation: 7,752

Post » Fri Jun 13, 2014 6:34 am

Thank you!
B
17
S
4
G
1
Posts: 203
Reputation: 1,583


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests