G
graviax
Guest
I made a blood particle coming out of the flying corpses in my game but, I made it using only object.
problem is it can be very laggy
So i tried to make a particle emitter but, I don't know how to make the blood stay on the ground.
Is there a way to make particle "physic"?
problem is it can be very laggy
Code:
if(!place_meeting(x,y+1,obj_wall))
{
if(vsp < 30)vsp += 0.1;
}
//Horizontal Collision
if (place_meeting(x+hsp,y,obj_wall))
{
while(!place_meeting(x+sign(hsp),y,obj_wall))
{
x += sign(hsp);
}
hsp = 0;
}
x += hsp;
//Vertical Collision
if (place_meeting(x,y+vsp,obj_wall))
{
while(!place_meeting(x,y+sign(vsp),obj_wall))
{
y += sign(vsp);
}
vsp = 0;
}
y += vsp;
Is there a way to make particle "physic"?