Search found 2 matches
- Sun Jun 06, 2021 12:26 pm
- Forum: General
- Topic: Help i am making a game for a project but i have some trouble
- Replies: 2
- Views: 5470
Re: Help i am making a game for a project but i have some trouble
The reason is that you are declaring the trash table in your mousepressed callback function. This means that each time you set it to be a new, empty, table. Apart from that your code is a little bit confusing, which makes it harder for you to find issues like this. I would recommend against nesting...
- Sat Jun 05, 2021 9:47 am
- Forum: General
- Topic: Help i am making a game for a project but i have some trouble
- Replies: 2
- Views: 5470
Help i am making a game for a project but i have some trouble
I am making a game where the character needs to collect trash to get the points but I am having trouble spawning multiple trash bags. The code I wrote spawns one trash bag and changes the x point but I need multiple bags with different x points. How can I do this? Here is the code. I can try this on...