Creating a Memory Match Game

7
  • 115 favourites

Index

Stats

20,914 visits, 53,996 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Part 2: Laying out the Cards

Video Part 2a

Subscribe to Construct videos now

(If you don't see the video, follow this link to view Part 2a.)

Cheat Sheet for Part 2a

If you don't trust your ability to type in the more complicated expressions, you can copy them from here:

gCardHeight

        int((WindowHeight-((gNumberRows + 1)*gSpaceBetweenCards))/gNumberRows)


gCardWidth

int(gCardHeight * (Card.Width/Card.Height))

gMarginLeft

    int((WindowWidth - (gCardWidth + gSpaceBetweenCards) * gNumberColumns) / 2)


gMarginTop

    int((WindowHeight-(gCardHeight + gSpaceBetweenCards)*gNumberRows)/2)



Video Part 2b

Subscribe to Construct videos now

(If you don't see the video, follow this link to view Part 2b.)

Cheat Sheet for Part 2b

If you don't trust your ability to type in the more complicated expressions, you can copy them from here:

CurrentColumn

    CurrentTableauCard%NumberColumns

X (Create Card)

    gMarginLeft + (CurrentColumn*(gCardWidth + gSpaceBetweenCards))

Y (Create Card)

    gMarginTop + (CurrentRow*(gCardHeight + gSpaceBetweenCards))



  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!