Fangames > Game Design
Fix for bullets skipping past objects that are thinner than the bullet's speed
(1/1)
WetWookie:
Put this in the End Step Event of the object being shot
--- Code: ---with objBullet
{
if collision_line(x,y,xprevious,yprevious,other.id,true,false)
{
//x=xprevious; //Optional move bullet back
//y=yprevious;
//move_contact_all(direction,speed);
with other
{
event_perform(ev_collision,other.object_index);
}
}
}
--- End code ---
Navigation
[0] Message Index
Go to full version