Permalink Submitted by Maciej Komosinski on Fri, 2002-09-06 13:07
> Is it possible to set the altitude of energy balls in water simulation ?
It is all in the scripts. Wait until 2.2 release (really close!),
it will be easy to control that:
function addfood()
{
LiveLibrary.group=1;
LiveLibrary.createFromString("//0\nm:Vstyle=food\np:");
}
function place_food()
{
var x=(World.wrldsiz-Creature.size_x)*Math.rnd01-Creature.size_x/2;
var y=(World.wrldsiz-Creature.size_y)*Math.rnd01-Creature.size_y/2;
var z=WorldMap.getHeight(x,y)-0.9; //or whatever you need
Creature.moveAbs(x,y,z);
}
Re: position of energy balls ?
> Is it possible to set the altitude of energy balls in water simulation ?
It is all in the scripts. Wait until 2.2 release (really close!),
it will be easy to control that:
function addfood()
{
LiveLibrary.group=1;
LiveLibrary.createFromString("//0\nm:Vstyle=food\np:");
}
function place_food()
{
var x=(World.wrldsiz-Creature.size_x)*Math.rnd01-Creature.size_x/2;
var y=(World.wrldsiz-Creature.size_y)*Math.rnd01-Creature.size_y/2;
var z=WorldMap.getHeight(x,y)-0.9; //or whatever you need
Creature.moveAbs(x,y,z);
}