At 11/22/08 03:25 PM, SpamBurger wrote:
At 11/22/08 03:18 PM, Glaiel-Gamer wrote:
It is going to be in AS3 however, cause a flash-off just isn't a flash of in measly ashton scrip 2 point oh.
That's really annoying. All it does is exclude people. I'm sure AS2 would work fine for this :\
well the actual engine is in AS3, but the way I'm setting it up, everyone is going to make a .as file with their bot's AI in it. As long as you use good coding habits, then the actual language shouldn't matter, so if someone feels like porting my engine to AS2 once it's out there, feel free, but the final battles will be in AS3.
Anyway, there's going to be functions you can call to get properties, but no direct accessing of variables. The as file you submit will be something like:
var x = getMyX();
var y = getMyY();
if(getWallStatus(x, y+1)){
return 1;
}
if you notice, that code is both AS2 and AS3 compatible (so just make sure you declare your variables correctly and everything is good to go.)
Again though someone will have to port it down. I suck with AS2 now that I know AS3.