position of energy balls ? 

Jerome Fulachier wrote:

Hi all ,

Is it possible to set the altitude of energy balls in water simulation ?

Regards
fufu

Forums: 
Maciej Komosinski's picture

> 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);
}