Search found 104 matches

by MaxGamz
Fri Nov 24, 2023 4:03 pm
Forum: General
Topic: What makes a good level?
Replies: 6
Views: 42239

What makes a good level?

I'm trying to design a level but I have been having problems thinking of ways to make it fun. I am not much of a gamer; however, I still love the idea of making games. What type of experiences do you guys have in playing platformers and what do you enjoy most about them? What makes a level interesti...
by MaxGamz
Sun Oct 22, 2023 1:29 am
Forum: General
Topic: Should I make my own tilesets or download a set online (with credit of course)
Replies: 4
Views: 84602

Should I make my own tilesets or download a set online (with credit of course)

I am fine with making my own art however I had trouble finding the exact sets I would like, I would like to make my own but I don't feel like I have the skills for it. Especially with the complexity of what I am planning.
by MaxGamz
Sun Oct 08, 2023 2:01 pm
Forum: Support and Development
Topic: I have a question about how lua works in general
Replies: 8
Views: 7822

Re: I have a question about how lua works in general

https://www.lua.org/pil/16.html See the explanation about colon functions here. Do the functions get indexed as well as the values? I keep getting an "attempting to index function value" error and I'm confused if I should make another table within the coin one but I feel like it would add...
by MaxGamz
Sun Oct 08, 2023 1:36 am
Forum: Support and Development
Topic: I have a question about how lua works in general
Replies: 8
Views: 7822

Re: I have a question about how lua works in general

dusoft wrote: Sat Oct 07, 2023 7:08 pm And your question is?
To make it more clear here is my last attempt. I commented out the coin spawing functions in the main.lua file and tried to import them from a coin.lua file
test.love
(884.2 KiB) Downloaded 85 times
by MaxGamz
Sun Oct 08, 2023 1:22 am
Forum: Support and Development
Topic: I have a question about how lua works in general
Replies: 8
Views: 7822

Re: I have a question about how lua works in general

Main.lua: Require 'coin' Coin.myfunction() Coin.lua: Coin = {} Function Coin.myfunction() -- do things End Return coin I'm not sure if that answers the question. (Im On mobile) What would be the difference between something like Coin.myfunction() and Coin:myFunction()? When I tried to do the second...
by MaxGamz
Sat Oct 07, 2023 8:53 pm
Forum: Support and Development
Topic: I have a question about how lua works in general
Replies: 8
Views: 7822

Re: I have a question about how lua works in general

dusoft wrote: Sat Oct 07, 2023 7:08 pm And your question is?
I wan't to create a seperate coin file and call the functions that are responcible for spawning the coins in the main file. I tried it before but I got a lot of errors and I wasn't sure why it was happening
by MaxGamz
Sat Oct 07, 2023 4:41 pm
Forum: Support and Development
Topic: I have a question about how lua works in general
Replies: 8
Views: 7822

I have a question about how lua works in general

When I stared learning how to make games in Lua, I liked how versatile it was, especially with the ability to create different files for each object. The only problem I am having however, is when I make an array object. Recently I created a coin systems and it is working just fine, but I don't want ...
by MaxGamz
Mon Oct 02, 2023 10:39 pm
Forum: Support and Development
Topic: I'm making progress with my coin collection system, but I have a problem with destroying coins
Replies: 9
Views: 9044

Re: I'm making progress with my coin collection system, but I have a problem with destroying coins

Your issue was that you were looping over `coin` using `for` and `#coin` length. But with gaps, your table could contain index 7, but the length would be e.g. just 5. So you would never come to coin index 7. I recommend using pairs to iterate. You former buggy code (main.lua, line 73): for i = 1, #...
by MaxGamz
Mon Oct 02, 2023 4:30 pm
Forum: Support and Development
Topic: I'm making progress with my coin collection system, but I have a problem with destroying coins
Replies: 9
Views: 9044

Re: I'm making progress with my coin collection system, but I have a problem with destroying coins

dusoft wrote: Mon Oct 02, 2023 12:47 pm Then post the complete code or the relevant parts of it.
Here is the complete love file just to make it easier
testGame.love
(883.73 KiB) Downloaded 139 times
by MaxGamz
Mon Oct 02, 2023 12:01 pm
Forum: Support and Development
Topic: I'm making progress with my coin collection system, but I have a problem with destroying coins
Replies: 9
Views: 9044

Re: I'm making progress with my coin collection system, but I have a problem with destroying coins

dusoft wrote: Mon Oct 02, 2023 11:14 am The you might have some issues with your indexing. With the solution proposed above, you get a table with gaps.
My only major problem is why I take 2 coins at the same time when I grab one. This happened with the proposed solution, but its getting me somewhere