I always figured the function being passed through the table.sort call simply returned true or false. So as long as the value being returned is a boolean I'd think it worked. Therefore when it's stepping through the table deciding whether to move a row into a new position, having it randomly tell it yes or no seems like it would work for a simple shuffle function.
I just ended up using code I found on StackExchange that's similar to Robin's code since it accepted the RNG fine.
"Questions that don't deserve their own thread" thread
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Jack Dandy
- Prole
- Posts: 49
- Joined: Mon Sep 08, 2014 4:26 pm
Re: "Questions that don't deserve their own thread" thread
Hey there, I was wondering, where did all the tutorials in https://www.love2d.org/wiki/Category:Tutorials disappear to? I remember there were a lot more there some time ago.
- Ranguna259
- Party member
- Posts: 911
- Joined: Tue Jun 18, 2013 10:58 pm
- Location: I'm right next to you
Re: "Questions that don't deserve their own thread" thread
What do you mean ?
I belive they are still there but you can check the tutorial's wiki history.
I belive they are still there but you can check the tutorial's wiki history.
- Jack Dandy
- Prole
- Posts: 49
- Joined: Mon Sep 08, 2014 4:26 pm
Re: "Questions that don't deserve their own thread" thread
Both the TutorialTest and Example pages only lead to the example pages- the code (and tutorial) themselves can't be seen anywhere.
Re: "Questions that don't deserve their own thread" thread
The examples.love link takes you to the code. Unzip the love file to see it.Jack Dandy wrote:Both the TutorialTest and Example pages only lead to the example pages- the code (and tutorial) themselves can't be seen anywhere.
- Jack Dandy
- Prole
- Posts: 49
- Joined: Mon Sep 08, 2014 4:26 pm
Re: "Questions that don't deserve their own thread" thread
I see, thanks.
- 5 Inch House
- Prole
- Posts: 4
- Joined: Thu Sep 24, 2015 10:33 pm
Re: "Questions that don't deserve their own thread" thread
I've been copy and pasting function lines from the LOVE wiki's Callback Function tutorial trying to see what each did, since it's a tutorial. I even figured out simpler things like adding color to the loaded images and general color on my own, but love.mousereleased crashes the experimental project and everything past that just doesn't seem to work. What am I doing wrong?
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: "Questions that don't deserve their own thread" thread
You know, it would be much more helpful if you uploaded a .love of that instead of a screenshot.
Help us help you: attach a .love.
- 5 Inch House
- Prole
- Posts: 4
- Joined: Thu Sep 24, 2015 10:33 pm
Re: "Questions that don't deserve their own thread" thread
The folder labelled "basics" is me trying to learn things, so the experimental program. Also, the folder labelled "reference images" is for a project idea I have for when I can actually do things, so don't pay that too much mind. Don't even have a .love of the experimental yet, so I apologize if that's a nuisance. If you drag the "basics" folder onto love.exe it should function.Robin wrote:You know, it would be much more helpful if you uploaded a .love of that instead of a screenshot.
- Attachments
-
- LOVE 2D.zip
- (4.49 MiB) Downloaded 128 times
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: "Questions that don't deserve their own thread" thread
If you had zipped the contents of the folder "basics", then you could rename that to .love, but anyway.
I can't reproduce your error, it all works fine.
I can't reproduce your error, it all works fine.
Help us help you: attach a .love.
Who is online
Users browsing this forum: Bing [Bot] and 3 guests