[HELP]Shoot dont touch me

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Posts: 1
Joined: Wed Jul 31, 2019 4:37 pm

[HELP]Shoot dont touch me

Post by mtsu » Wed Jul 31, 2019 4:48 pm

Hello i got a small problem.
Well when my i want forward my shoot per second by +0.1 my shoot dont touch me.
But before than the shoot up by +0.1 the shoot touch me without problem so i dont understand why.
If you know why tell me please thanks

Posts: 86
Joined: Wed Sep 29, 2010 8:14 pm

Re: [HELP]Shoot dont touch me

Post by Xugro » Wed Jul 31, 2019 8:52 pm

Line 537

Code: Select all

      if math.dist(Shoot.x,Shoot.y,Player.x,Player.y) < 5 then 
should be

Code: Select all

      if math.dist(shoot.x,shoot.y,Player.x,Player.y) < 5 then 
since Lua is case sensitive.

And a small tip for the next time you have a question: You can use DeepL for pretty good translations :).
Et un petit conseil pour la prochaine fois que vous avez une question:Vous pouvez utiliser DeepL pour de bonnes traductions :).

Post Reply

Who is online

Users browsing this forum: No registered users and 52 guests