Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. for i = 1, #ennemi do
  2.    collision(tir.laser,tir.position.X, tir.position.Y,monstre1, ennemi[i].pos.x,ennemi[i].pos.y)
  3. if collision( tir.laser,tir.position.X, tir.position.Y,monstre1, ennemi[i].pos.x,ennemi[i].pos.y) == true then
  4.   table.remove(ennemi,i)
  5.   tir.launched = false
  6. end
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement