Search found 14 matches

by Leonardo2450
Sat Oct 17, 2020 3:11 am
Forum: Support and Development
Topic: Help creating a multiplayer game
Replies: 2
Views: 3763

Help creating a multiplayer game

Hi, I am planning to create a small game as a kind of test that is multiplayer. Something simple like two cubes moving and something else. Searching I discovered Lua-enet so I decided to try it, however I don't understand how to use it. So I directly came here, to the forum to ask you how to make a ...
by Leonardo2450
Thu Mar 12, 2020 10:29 pm
Forum: General
Topic: How do I use a pathfinding system?
Replies: 3
Views: 4408

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: 3858

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: 2714

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 detecti...
by Leonardo2450
Sun Feb 09, 2020 2:28 am
Forum: Support and Development
Topic: Help with multiple "enemies" [Solved]
Replies: 4
Views: 2714

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 detecti...
by Leonardo2450
Sat Feb 08, 2020 2:57 am
Forum: Support and Development
Topic: Help with multiple "enemies" [Solved]
Replies: 4
Views: 2714

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: 2977

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: 2977

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 r...
by Leonardo2450
Fri Dec 20, 2019 3:00 pm
Forum: Support and Development
Topic: Help to create enemies
Replies: 5
Views: 2977

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: 2130

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