Search found 78 matches

by ilovelove2019
Sat Oct 05, 2019 7:05 am
Forum: Support and Development
Topic: The big problem with loops running at the same time, about destroying objects and asking about how loops work
Replies: 21
Views: 4911

Re: The big problem with loops running at the same time, about destroying objects and asking about how loops work

I need some way to manage the collision and remove object correctly and clearly. I am willing to give up everything to start over. I really hope for the help of professional people. Hope everyone be open to help me. Thanks very much
by ilovelove2019
Sat Oct 05, 2019 6:53 am
Forum: Support and Development
Topic: The big problem with loops running at the same time, about destroying objects and asking about how loops work
Replies: 21
Views: 4911

The big problem with loops running at the same time, about destroying objects and asking about how loops work

mygame.love Hi everyone, I have another problem in my code. I feel ashamed to constantly bother people with stupid questions like these. But hope that you will sympathize and help me. I really need your help. My problem is as follows: It relates to the following files: main.lua, player.lua, frog.lu...
by ilovelove2019
Wed Oct 02, 2019 4:56 am
Forum: Support and Development
Topic: Find the order of the object itself in a table?
Replies: 7
Views: 1564

Re: Find the order of the object itself in a table?

raidho36 wrote:
Tue Oct 01, 2019 11:18 pm
Not sure what went wrong when you tried to use the array, but it's good to know you've got it all worked out.
Thank you so much! :awesome: :awesome:
by ilovelove2019
Tue Oct 01, 2019 10:17 pm
Forum: Support and Development
Topic: Find the order of the object itself in a table?
Replies: 7
Views: 1564

Re: Find the order of the object itself in a table?

I am really happy now. During the course of my game programming, I went through many different programming languages, game engines, and frameworks. Each has its own community. But for me, the love2d community is the friendliest. People are always kind and highly skilled. They are always ready to hel...
by ilovelove2019
Tue Oct 01, 2019 10:13 pm
Forum: Support and Development
Topic: Find the order of the object itself in a table?
Replies: 7
Views: 1564

Re: Find the order of the object itself in a table?

you might set frog status to dead then you can clean then at once (you can also copy alive ones to a new table) for i=#listofrogs, 1, -1 do if listofrogs[i].status == "dead" then remove(listofrogs, i) end end or since self points to your frog you can do for k, v in ipairs(listofrogs) do if v == sel...
by ilovelove2019
Tue Oct 01, 2019 10:09 pm
Forum: Support and Development
Topic: Find the order of the object itself in a table?
Replies: 7
Views: 1564

Re: Find the order of the object itself in a table?

You can try this implementation of array: https://bitbucket.org/rcoaxil/lua-minilibs/src/default/uarray.lua It's tailored to store game objects such as enemies or bullets (but it can be any type of value). Specifically, it will store exactly one of each value in the array, so you can keep adding th...
by ilovelove2019
Tue Oct 01, 2019 1:18 pm
Forum: Support and Development
Topic: Find the order of the object itself in a table?
Replies: 7
Views: 1564

Find the order of the object itself in a table?

Hello everyone! Let's go to the main topic. I am programming games and now I want to destroy enemies. In main.lua I had a table named listOfFrog. I added the enemy by table.insert (listOfFrog, Frog (500, 400)) ... In player.lua, when the player collided with an enemy I called: enemy: boom () (with t...
by ilovelove2019
Sun Sep 29, 2019 2:32 pm
Forum: Support and Development
Topic: Looking for animation logic
Replies: 9
Views: 1926

Re: Looking for animation logic

I have visited your site. And I see your work so amazing! I see you have some project public on Steam. Good work. Keep doing.
by ilovelove2019
Sun Sep 29, 2019 2:19 pm
Forum: Support and Development
Topic: Looking for animation logic
Replies: 9
Views: 1926

Re: Looking for animation logic

Ah yes! Good solution. Good tutorial. It help me a lot! Thank you!