Using image point in array

0 favourites
  • 3 posts
From the Asset Store
Connect the dots in the correct order and draw happy animals!
  • Hi guys :)

    I'm currently making a board game. The game itself is circular, and I'm planning to use an array to map all the positions at the game board. The problem I am currently having is that I can't seem to add an image point or a coordinate for that sake as a value in my array.

    Lets say, that I want to assign the position X0, Y0 at the game board to position X0Y0 in the array, just to make it easy. There is no way to just set XY to X0,Y0 or ImagePoint1.

    I have thought about maybe adding an instance variable that represents every slot in the game, and use that to map the position, and then just refer to that instance variable in the corresponding array-position.

    Thank you in advance :)

  • Use the syntax : X0=Sprite.imagepointx(1)

    It took me a while to figure, I had a rotating object and wanted to find the x value of the imagepoint.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ah ofc! thank you, good sir!

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