Search found 1 match
- Sat Jul 30, 2022 3:47 pm
- Forum: Support and Development
- Topic: Looking for help
- Replies: 2
- Views: 1469
Looking for help
So I want these creatures to move towards food when it is in their vision, the food is inside of a table and randomly spawned. Here is the code I used to move the creatures: function moveCreatures(dt) for index, creature in ipairs(creatures) do dir = rand(1, creature.chanceToMove+4) if dir == 1 and ...