What is the purpose of this?

0 favourites
  • 7 posts
From the Asset Store
102 sound for different purposes in-game but specially good for interface
  • Was looking in the RTS example and found this:

    What is the purpose of ("Bases") at the end of Mouse.X and Mouse.Y, Doesn't recall haven't seen it before. And reading the rest of the code doesn't make it any clearer why and what this is used for.

    Anyone knows?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The addition of ("Bases") makes the x and the y based on the layer Bases..

    If you have more layers than one and the paralax or scale of those layers are different x and y values can get troublesome, for they differ between the layers.

  • "Bases" is an object. You seem to be assigning the X/Y coordinates to the location of "Bases."

    What's the URL of the RTS example?

  • The addition of ("Bases") makes the x and the y based on the layer Bases..

    If you have more layers than one and the paralax or scale of those layers are different x and y values can get troublesome, for they differ between the layers.

    Ok that makes perfect sense, thanks

  • "Bases" is an object. You seem to be assigning the X/Y coordinates to the location of "Bases."

    What's the URL of the RTS example?

    "Bases" in this example isn't an object. It's the name of the layer this action should get the x and y - coordinates from.

    This only works for mouse and touch, as far as I know..

  • > "Bases" is an object. You seem to be assigning the X/Y coordinates to the location of "Bases."

    > What's the URL of the RTS example?

    >

    "Bases" in this example isn't an object. It's the name of the layer this action should get the x and y - coordinates from.

    This only works for mouse and touch, as far as I know..

    cool, thanks for the correction... anyone got the URL of this RTS example?

  • Its in the construct 2 examples when you start a new project just type RTS in the search bar and it will show up as a template.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)