Search found 13 matches

by Leonardo2450
Thu Mar 12, 2020 10:29 pm
Forum: General
Topic: How do I use a pathfinding system?
Replies: 3
Views: 3578

How do I use a pathfinding system?

I'm developing a project and I need my enemies to know how to recognize the best path to the player (pathfinding). I come to you to ask: How do they work internally? Is there one available for a game made without a gang?
by Leonardo2450
Sat Feb 29, 2020 5:27 pm
Forum: General
Topic: Can you give me advice?
Replies: 3
Views: 2940

Can you give me advice?

Hello, I am learning a lot from Lua and Love2D although I still need to learn from Lua: metatables, metamethods, OOP and I think some more things are missing. Even so I would like to start a project well. I would like some advice. Any advice is useful and I would be happy if some of them shared me :...
by Leonardo2450
Sun Feb 09, 2020 2:28 am
Forum: Support and Development
Topic: Help with multiple "enemies" [Solved]
Replies: 4
Views: 2021

Re: Help with multiple "enemies"

How that will look depends a great deal on how you implement those enemies, and on how far you want to go with "deleting" them. If you just want to remove them from play (but keep them in memory), a simple boolean variable that the game looks for when rendering and doing collision detection will su...
by Leonardo2450
Sun Feb 09, 2020 2:28 am
Forum: Support and Development
Topic: Help with multiple "enemies" [Solved]
Replies: 4
Views: 2021

Re: Help with multiple "enemies"

How that will look depends a great deal on how you implement those enemies, and on how far you want to go with "deleting" them. If you just want to remove them from play (but keep them in memory), a simple boolean variable that the game looks for when rendering and doing collision detection will su...
by Leonardo2450
Sat Feb 08, 2020 2:57 am
Forum: Support and Development
Topic: Help with multiple "enemies" [Solved]
Replies: 4
Views: 2021

Help with multiple "enemies" [Solved]

I am creating a game where one has to eliminate immovable "enemies" so to speak. I need you to tell me how I can create several of them and delete them when they touch the player.
by Leonardo2450
Fri Dec 20, 2019 11:24 pm
Forum: Support and Development
Topic: Help to create enemies
Replies: 5
Views: 1982

Re: Help to create enemies

Ref wrote:
Fri Dec 20, 2019 7:25 pm
This might give you some ideas.
Best
I'm sorry, I'm still new to Lua and I don't quite understand the code of this project. :/

Edit:
Thank you very much, that gave me an idea and I have done it and it worked. As they would say in my country: Sos un capo
by Leonardo2450
Fri Dec 20, 2019 7:07 pm
Forum: Support and Development
Topic: Help to create enemies
Replies: 5
Views: 1982

Re: Help to create enemies

That question is pretty broad. "Follow you" can be as simple as go straight towards you as in Drazzard https://love2d.org/forums/viewtopic.php?f=14&t=80655, or as complex as using a path finding algorithm, which is an advanced topic for which a good understanding of graph theory and recursive funct...
by Leonardo2450
Fri Dec 20, 2019 3:00 pm
Forum: Support and Development
Topic: Help to create enemies
Replies: 5
Views: 1982

Help to create enemies

I am currently experimenting before starting a project. These days I was thinking about how to create an enemy with a basic artificial intelligence: just follow you. Without a pathfinding system And I was also thinking of creating several instances of that enemy. The problem is that I don't know how...
by Leonardo2450
Mon Sep 09, 2019 10:01 pm
Forum: Support and Development
Topic: I need to save variables
Replies: 3
Views: 1758

I need to save variables

Actually my project in Love2D is moving on the right track. However, I need to start with the loading / saving system and I have no idea how to do it. Can you help me? What is the easiest way and which is the most efficient?

First of all, Thanks
by Leonardo2450
Wed Aug 14, 2019 12:08 am
Forum: Support and Development
Topic: I need help with the compilation (Resolved)
Replies: 3
Views: 1146

I need help with the compilation (Resolved)

I was compiling my game but for some reason this error comes out. Attached images of the code and the organization of the attached files.

Update 14/08
Apparently it was the Ñ that did not allow loading the file. Thank you all for your ideas.