Going about a dots game
zweg25
Member Posts: 738
Was wondering if anyone knew the game dots and knew a way of going about making a similar template?
Comments
It's a surprisingly complex game to program. I don't know of any existing templates.
You would need to spawn or place all of the line segment actors on the scene and you would need to keep track of placed lines in a table and then check for completed boxes of a single color (assuming each player has their own color).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
How would I make it so the game board of dots are assembled through a table. And then another table that shows there is a line change value from 0 to 1. And then take the 1s in the table and know when to make a box. Then also snap to grid for the lines. That may be confusing so I will try and simplify it.
I want to make a table to assemble the dots
I want to be able to make lines snap to two dots (not diagonally)
I think the best way to calculate if there is a box is to use a table of 0s and 1s (EDIT: it does not have to be made of a single color)... how can I go about that?
Thanks
zweg25
The D's represent dots, the 1's represent player 1 lines, the 2's represent player 2 lines, and the 0's represent empty line spaces. I suppose the blank squares/cells would also have to contain zeros but I left them blank for visibility sake. You can see that in the table a cell surrounded by 1's (or 2's) would be a completed square in the game.
Instead of having a player draw a line that snaps to endpoints (dots), it would be easier to spawn or show a line actor when the area between two dots is tapped.
See #1 above. Like I said, it's difficult and I don't have all of the answers for you but if you have a strong sense of how tables work and how data can be stored and retrieved, as well as checked for patterns, this should give you a starting point. There are very good -- and very advanced -- templates for sale on third party sites that provide methods for checking "match 3" type games using tables and they would most certainly be helpful if you're stuck.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks a bunch @tatiang! Very helpful! My problem is I have not gotten familiar with the new table functions. I like to stay with the old tableCellValue lol. So I am not sure how detecting that box pattern part would work, but other than that I have an idea of what to do.