Search found 104 matches
- 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...
- 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.
- 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...
- 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
- 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...
- 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
- 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 ...
- 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, #...
- 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
- 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
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