Search found 721 matches
- Sun Sep 07, 2014 8:46 pm
- Forum: Support and Development
- Topic: Editing a table by referencing.
- Replies: 12
- Views: 3329
Re: Editing a table by referencing.
Let me preface this by saying you should listen to Kikito; what you're trying to do isn't really the Lua way and you'll be working against the language more than with it, which is never a good thing. That said; there are ways. There are always ways. You can wrap an integer or string in a closure: ma...
- Fri Sep 05, 2014 6:08 pm
- Forum: Support and Development
- Topic: Character creation
- Replies: 3
- Views: 3081
Re: Character creation
That's a little broad. But I'll give you a little boost. For your character; the two key things you'll need to start with are making a table to store the character's data in along with some functions to modify it, and to build a simple system to translate keyboard commands to function calls on the c...
- Fri Sep 05, 2014 2:11 pm
- Forum: Support and Development
- Topic: "Questions that don't deserve their own thread" thread
- Replies: 905
- Views: 425437
Re: "Questions that don't deserve their own thread" thread
Honestly, if every little bit matters, you should probably build it in C. It'll earn you a lot more speed than anything else would
- Fri Sep 05, 2014 1:52 pm
- Forum: Support and Development
- Topic: Can't save .love files?
- Replies: 7
- Views: 4867
Re: Can't save .love files?
On windows under certain settings, the filesystem will automatically keep the file's extension intact even if you try to change it. The easiest way around it (without having to change settings, which you probably can't) is to open a command console (windows-key + R, type "cmd", hit enter) ...
- Thu Sep 04, 2014 2:22 pm
- Forum: Support and Development
- Topic: "Questions that don't deserve their own thread" thread
- Replies: 905
- Views: 425437
Re: "Questions that don't deserve their own thread" thread
I'm really not sure what you're trying to accomplish, Zilarrezko.
Can you make a new thread and try to explain what kind of functionality you're trying to create? The examples don't really make clear what the outcome of this whole puzzle is supposed to be, so I'm not really sure how to help.
Can you make a new thread and try to explain what kind of functionality you're trying to create? The examples don't really make clear what the outcome of this whole puzzle is supposed to be, so I'm not really sure how to help.
- Thu Sep 04, 2014 7:08 am
- Forum: Support and Development
- Topic: "Questions that don't deserve their own thread" thread
- Replies: 905
- Views: 425437
Re: "Questions that don't deserve their own thread" thread
Zilarrekzo, tables handles in Lua are references, so the example you list will already replace the string "fruit" in the table with "rotten". However, that only works on tables, not primitives, so the initial variable "Banana", which is a string, will not also be update...
- Thu Aug 28, 2014 8:45 am
- Forum: Support and Development
- Topic: Lua Memory Editing?
- Replies: 7
- Views: 4139
Re: Lua Memory Editing?
For networking there's a number of solutions available. It depends heavily on how many people you expect will be invested in trying to cheat at it, of course. One of the safest ways to prevent cheating in network based games is to use a command-architecture where the client cannot change anything, b...
- Thu Aug 28, 2014 7:15 am
- Forum: Games and Creations
- Topic: [LD30] FACED - Innovative tile shoving puzzle game
- Replies: 3
- Views: 2027
Re: [LD30] FACED - Innovative tile shoving puzzle game
Haha, that looks like an awesome puzzle game
- Thu Aug 28, 2014 6:26 am
- Forum: Support and Development
- Topic: Lua Memory Editing?
- Replies: 7
- Views: 4139
Re: Lua Memory Editing?
There's nothing much you can do about it, since the whole program and all its memory are running on the host computer which is outside of your influence. Why are you concerned about memory editing? Also, there's not so much "risk of decompiling" as there is the simple ability to read the s...
- Thu Aug 28, 2014 6:23 am
- Forum: Support and Development
- Topic: how to check if mouse is over an object?
- Replies: 2
- Views: 3333
Re: how to check if mouse is over an object?
You'll have to calculate it, so it depends a lot on what the object looks like. For circular objects, you can use a simple distance calculation between the mouse's location and the center of the circle using it's radius. For rectangular objects, you can use a bounding-box check (if you google that t...