Page 39 of 91
Re: "Questions that don't deserve their own thread" thread
Posted: Sat Aug 15, 2015 8:26 pm
by Jasoco
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.
Re: "Questions that don't deserve their own thread" thread
Posted: Thu Sep 17, 2015 2:37 pm
by Jack Dandy
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.
Re: "Questions that don't deserve their own thread" thread
Posted: Thu Sep 17, 2015 8:41 pm
by Ranguna259
What do you mean ?
I belive they are still there but you can check the
tutorial's wiki history.
Re: "Questions that don't deserve their own thread" thread
Posted: Sat Sep 19, 2015 3:36 pm
by Jack Dandy
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
Posted: Sat Sep 19, 2015 6:47 pm
by kbmonkey
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.
The
examples.love link takes you to the code. Unzip the love file to see it.
Re: "Questions that don't deserve their own thread" thread
Posted: Sun Sep 20, 2015 7:11 pm
by Jack Dandy
I see, thanks.
Re: "Questions that don't deserve their own thread" thread
Posted: Thu Sep 24, 2015 11:02 pm
by 5 Inch House
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?
Re: "Questions that don't deserve their own thread" thread
Posted: Fri Sep 25, 2015 7:45 am
by Robin
You know, it would be much more helpful if you uploaded a .love of that instead of a screenshot.
Re: "Questions that don't deserve their own thread" thread
Posted: Sat Sep 26, 2015 3:39 am
by 5 Inch House
Robin wrote:You know, it would be much more helpful if you uploaded a .love of that instead of a screenshot.
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.
Re: "Questions that don't deserve their own thread" thread
Posted: Sat Sep 26, 2015 12:06 pm
by Robin
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.