Author Topic: Fix for bullets skipping past objects that are thinner than the bullet's speed  (Read 1039 times)

WetWookie

  • Cherry Eater
  • Posts: 90
  • OS:
  • Windows 10 Windows 10
  • Browser:
  • Firefox 50.0 Firefox 50.0
    • View Profile
  • Playstyle: Keyboard
Put this in the End Step Event of the object being shot
Code: [Select]
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);
       
       }
    }
}