Today, I have some very personal request and maybe I can find some help out here on getting some ideas on how to deal with this task.
- I need to figure out how to place a fixed number of Mahjong stones on a fixed grid (made of single actors / null objects for example) randomly.
- If two of the same stones gets clicked by the mouse, they need to be deleted and on top of each stone, I need to show a plane where I can load in a fitting video/flipbook animation
- If it happens that the game can’t be finished, I would love to add a randomize button that randomizes the stone’s position, but keeps the layout intact.
The long cringe part: My mother turned 70 and due to medical things she has a hard time doing anything else than watching TV or sometimes playing a game. She just plays one particular game. I tried to show her a lot of games but this is the one she loves: A very specific Mahjong game from the 90’s. It gives me and Windows 10 headaches to make it run here and there and I thought it might be an interesting little project, building a very very simple Mahjong game in UE4.
Most time, it’s pretty basic gameplay. There is a fixed number of existing “common” layouts on how stones get placed. As a Senior Artist, it’s not a big deal for me to get all stuff done from the graphical side of things, but struggling to find certain Blueprint mechanics to place a fixed number of assets on a fixed number of actors or predefined positions - and randomize it. Then, how to tell stones what type of stone they are. Example: You have Stones with Numbers - So you can click on a stone with the number 1 and on another stone with the same number to delete it. But there might be stones with the four seasons which you can pair like Winter + Summer or Summer and Autumn.
From my perspective, I have the feeling that such mechanics could be done inside Blueprints, but really looking for some opinion here what would be a good approach.
I found some pointers like “Memory games” that would have similar mechanics but still looking for any viable tutorials which would solve my “place fixed number of meshes randomly on fixed positions” issue.