BIG thanks.
The biggest thanks would go to the person who is telling me why if a level looks likes this
end like this if I run it
Number one is a invisible/bbox wall, the other are sprites which are uisng this function (same function, just other vars)
action new_game()
{
pXent_settype(me,PH_RIGID,PH_BOX);
while(me)
{
if(mouse_ent == me)
{
if(mouse_left)
{
start2_los = 1;
}
my.ambient = 100;
pXent_addforcecentral(me,vector(0,random(100)-50, random(100)-50));
}
else
{
my.ambient = 50;
}
wait(1);
}
}
And the pxent addforcecentral isn't working, but if I click it is okay. Sprites are flying everywhere, and the both in the picture are wiggling super fast. If I remove the invisible thing everything works fine