Search found 78 matches
- Sat Oct 05, 2019 9:35 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: 12641
Re: The big problem with loops running at the same time, about destroying objects and asking about how loops work
OH. I will send the link soon. Wait me some minute. So sorry )
- 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: 12641
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
- 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: 12641
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...
- 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: 3748
- 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: 3748
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...
- 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: 3748
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 i...
- 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: 3748
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...
- 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: 3748
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...
- Sun Sep 29, 2019 2:32 pm
- Forum: Support and Development
- Topic: Looking for animation logic
- Replies: 9
- Views: 4307
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.
- Sun Sep 29, 2019 2:19 pm
- Forum: Support and Development
- Topic: Looking for animation logic
- Replies: 9
- Views: 4307
Re: Looking for animation logic
Ah yes! Good solution. Good tutorial. It help me a lot! Thank you!