Search found 3 matches

by Artres102
Fri Jan 05, 2024 12:56 am
Forum: Support and Development
Topic: [SOLVED] Variables that have integers being read as nil
Replies: 2
Views: 32815

Re: Variables that have integers being read as nil

Now that I reread the code in a calmer manner I saw the mistake and you're right. My brain was on auto-pilot since I had just changed similar stuff on other files where things were being declared the same as their main table. Thank you for the help!
by Artres102
Thu Jan 04, 2024 4:48 pm
Forum: Support and Development
Topic: [SOLVED] Variables that have integers being read as nil
Replies: 2
Views: 32815

[SOLVED] Variables that have integers being read as nil

So I have a problem where all variables I create that represent integer numbers are being read as nil. This started happening out of nowhere and I don't know why. Here's the code that seems to have a problem. function CreateEnemy(world, x, y, i) local enemy = {} enemy.body = love.physics.newBody(wor...
by Artres102
Wed Nov 29, 2023 3:05 pm
Forum: Support and Development
Topic: Enemy Behaviour help
Replies: 1
Views: 2495

Enemy Behaviour help

So I'm trying to make it so enemy behaviour will change upon meeting certain conditions, this being quite simply if the player is within a certain range from the enemy Basically, if the player is within this circular body around the enemy, the enemy should stop. This is kinda working, as the enemies...