Search found 4 matches

by DPlayer234
Thu Jun 01, 2017 3:50 pm
Forum: Games and Creations
Topic: DPlox Parkour 2 [Demo] - Just another 2d platformer
Replies: 0
Views: 2353

DPlox Parkour 2 [Demo] - Just another 2d platformer

I've been working on the sequel to my previous game (which was never posted here) for a couple of months now and I'm feeling confident about showing it here. :awesome: To sum up, it's a 2d platformer/jump 'n' run with a simple (and silly) story to break up the gameplay. Just like its predecessor. Yo...
by DPlayer234
Tue May 02, 2017 8:30 am
Forum: Libraries and Tools
Topic: Löve Debugger
Replies: 1
Views: 2517

Löve Debugger

After working on this utility for a long time and extensively using and extending it myself, I finally decided to share and publish it. :ultrahappy: You can find its GitHub repo here. In a nutshell, it will look about like this when used: https://i.gyazo.com/3a9550c6ab5a50dd0cd6fd5c7bd22294.png Don'...
by DPlayer234
Tue Apr 12, 2016 5:30 pm
Forum: Support and Development
Topic: love2d thinks the number "3" is a bool
Replies: 9
Views: 7427

Re: love2d thinks the number "3" is a bool

zorg wrote:
DPlayer234 wrote:This code will now make it return 1 if both "v[3] == 1" and "v[3] == 3" return true (the "or 1"-part does that).
You mean it'll return 1 if both return false; if both returned true, then it'd set the value to the first in the chain.
Oh yeah, right. Of course. My bad.
by DPlayer234
Tue Apr 12, 2016 3:43 pm
Forum: Support and Development
Topic: love2d thinks the number "3" is a bool
Replies: 9
Views: 7427

Re: love2d thinks the number "3" is a bool

The solution is pretty simple. This: (lines 225-228) for i,v in pairs(CurrentLevel.Enemies) do v[1] = v[3] == 1 and v[1] + 1 or v[3] == 3 and v[1] - 1 v[2] = v[3] == 2 and v[2] + 1 or v[3] == 4 and v[2] - 1 end would set v[1] to false if neither "v[3] == 1" or "v[3] == 3" return ...