hellnooo…
then your suggestion is the best solution about that, thanky you very much for help, i’m using windows…
also thanks for your great tutorial :]
i haven’t used ogmo editor before, or xml by the way… but i’ll learn in the future…
i’ve made my own level editor inside my project, it looks like ogmo… but because of my game doesn’t have lots of tiles, no need for ogmo right now…
if (this.repeater == 0)
{
GLOBALS.corecount = 1;
this.tankcount = 0;
this.group =
"11111111110001"
+ "10000000000001"
+ "10000000000001"
+ "10000000000001"
+ "10001111111111"
+ "10000000000001"
+ "10000000000201"
+ "10000000000001"
+ "11111111111111";
this.row = 1;
this.groupwidth = 14;
this.xspace = 25;
this.yspace = -25;
this.bornx = FP.halfWidth - ((this.groupwidth - 1) * this.xspace / 2);
this.borny = this.yspace - 100;
for (this.col = 1; this.col < this.group.length + 1; this.col++)
{
switch (this.group.charAt(this.col - 1))
{
case "1":
Enemy(create(Enemy)).init("tank", this.bornx, this.borny, 50, [0], [0], [0]);
this.tankcount++;
break;
case "2":
Enemy(create(Enemy)).init("core", this.bornx, this.borny, 50, [0], [0], [0]);
break;
}
if (this.col % this.groupwidth == 0)
{
this.borny += this.yspace;
this.bornx = FP.halfWidth - ((this.groupwidth - 1) * this.xspace / 2);
}
else
{
this.bornx += this.xspace;
}
}
}