Hello,
Please help me!
I need to limit the pXent_move, I want keep the physic entity inside the "position.y" limits Ex: lateral movement entity.y = -33; & entity.y = 33;
below the code:
action jogador1_azul()
{
// my.tilt = 43;
//my.skill2 = my.tilt;
ent_setskin(me,jogadorazul,1);
pXent_settype(my,PH_RIGID,PH_CONVEX);
pXent_setmass(my,1);
pXent_setfriction(my,5);
pXent_setelasticity(my,10);
pXent_setdamping(my,3,70);
pXent_setbodyflag (my, NX_BF_DISABLE_GRAVITY,1);
pXent_setbodyflag (my, NX_BF_KINEMATIC,1);
while(1)
{
pXent_move(my,vector(0, my.skill1,0),NULL);
pXent_rotate(my,vector(0,my.skill2,0),NULL);
wait(1);
}
}