So the way I see it in order to create consecutive 4, I must focus on 4 key problem area’s:
1. Meeting all the requirements of the build in my design.
Solution: Having to use more than 100 prim’s to create the game is going to be interesting, There is 42 spaces and 42 pieces and then no less than 2 parts for the sides if not more which should get me close, I am sure there will be other things I discover are needed along the way to get me over 100.
At least three different primitive types well that should not be to hard to do between the square sections and play pieces then the sides I can imagine needing three easily.
At least four kinds of prim manipulation and two different texture manipulations, well I will need to factor this in as I am building it to try things and see what works or looks good along with considering appropriate scaling.
Textures and color’s throughout the build shall be applied as I create each part before linking it to anything which has a different texture etc, i sourced these from the display board setup by our Tutor.
2. Building and designing the physical object itself.
Solution: This is a problem for any newbie to the virtual world who desires to build, all I can do is research more and apply skills and knowledge gained from virtual world classes to help me create the game object i require.
I must think about keeping the visual game play to a minimum and inside my ability range as best I can as much as I would like to have the game pieces laying on the ground and player click one and drag it, moving it up to the slot they wish to drop it into and see it fall down nicely into place completing the players move, I believe it will be best to keep it simple and get it working first and foremost.
So my solution to keeping it simple is that players only select a column and it then spawns the players colored piece into place where it would end up, or hopefully show it kind of falling down into place at best, or instead of spawning pieces they might exist in position ready but invisible until needing it to show, and setting the color accordingly once it shows.
So in the image above you see I have built 3 shapes that I intend to use for creating one single section of the game, the part where pieces go, and the piece itself, which once all together look like the image below, and can be duplicated many times to form the rows and columns for the game.
3. Find and understand all the LSL code to make it work.
Solution: Well there is an array of different functionality I will need to research and understand to combine and make everything working the way I intend listing them all this early is not possible, but of the top of my head and after some research I have done I feel I may need to use some of the following….
llMessageLinked will help me to communicate between different scripts on the game object, or between different linked prim’s depending where I attach scripts.
Reading here about variables because I understand my game will likely need local variables in the functions I create along with global variables storing not so temporary data such as names of the two residents currently playing which would remain until the game is reset through its menu options which reminds me, I need a menu?
Well it appears we cannot customize the pie menu very much other than changing the sit here text, and touch text in the pie menu, so dialog menu’s are the way to go here I believe, I can use this to reset game, or let players choose which color they will be playing as.
So using just that which I have found now, I should be able to get a lot of the interactivity for the game working, But still need to solve things like how to change the transparency, color or moving a single linked part, display whos move it is, who the winner was, or complexly cycle through all playing pieces checking for 4 of one color consecutively to know that a player has won the game!
4. Meeting all the requirements of the build in my code.
Solution: This part will be difficult, because I must meet 6 of the criteria for complex interaction, and there is only 9 options provided off which most do not really suit the game being created, which means I just have to force them in somehow, that is all the solution I have at this point, I will leave this to last after everything else is done, to start forcing in some of these requirements however and where ever I can.