Welcome to my blog. I mainly blog about the basics of running Flash games over the internet, but sometimes I get distracted. Here you will find my efforts at programming turn based Flash games, plus links to all the games I have written. You are free (as in beer) to get all the code, just email me - nicolas_evans at yahoo.com (sorry you cant click on it - I dont want more spam).
Building Multiplayer Games in Flash.
// in the constructor for (i = 0;i<15;i++) { mcCa.attachMovie("McMarker","mcMarker" + i,++gnNextDepth,{_x:-100,_y:-100,_alpha:20}); } // at the start of turn k = 0; i = gnStartI; j = gnStartJ; mcCa["mcMarker" + k]._x = (i - 11) * 40; mcCa["mcMarker" + k]._y = (j - 11) * 40; do { if (i < gnEndI) i++; else if (i > gnEndI) i--; if (j < gnEndJ) j++; else if (j > gnEndJ) j--; k++; mcCa["mcMarker" + k]._x = (i - 11) * 40; mcCa["mcMarker" + k]._y = (j - 11) * 40; } while ((i != gnEndI || j != gnEndJ) && k < 15)