Search found 260 matches

by sphyrth
Mon Dec 28, 2020 9:18 pm
Forum: Support and Development
Topic: Function that switch a boolean value
Replies: 6
Views: 5414

Re: Function that switch a boolean value

pgimeno wrote: Mon Dec 28, 2020 7:44 pm @sphyrth why the double comparison?
I have this a habit of thinking "What if param == nil?", and that slipped into my style. Now that I think about it, it IS unnecessary given the context.
by sphyrth
Mon Dec 28, 2020 1:47 pm
Forum: Support and Development
Topic: Function that switch a boolean value
Replies: 6
Views: 5414

Re: Function that switch a boolean value

Here's another take:

Code: Select all

function switchParameter(param)
  if param and param == true then
    return false
  else
    return true
  end
end
by sphyrth
Mon Dec 28, 2020 6:22 am
Forum: Games and Creations
Topic: Hoarder's Horrible House of Stuff - A 3D Puzzle Game
Replies: 7
Views: 7580

Re: Hoarder's Horrible House of Stuff - A 3D Puzzle Game

Love the choice of music.

It completes the "Adventure Sokoban" vibe.
by sphyrth
Wed Dec 23, 2020 4:39 am
Forum: Support and Development
Topic: Can't move my Sprite
Replies: 2
Views: 2222

Re: Can't move my Sprite

I'm only assuming that you didn't call Player:update(dt) inside love.update(dt)
by sphyrth
Wed Dec 23, 2020 1:10 am
Forum: Support and Development
Topic: I've used setDefaultFilter but the text is still too pixelated
Replies: 6
Views: 3751

Re: I've used setDefaultFilter but the text is still too pixelated

Getting your font the way you want is a different beast of a problem.
by sphyrth
Sat Dec 19, 2020 1:17 am
Forum: General
Topic: What do you use to design your game concepts?
Replies: 4
Views: 8783

Re: What do you use to design your game concepts?

I mostly do "cloning" jobs. 1. I see a game that I like - ("I want to make a game like this.") 2. There are features that I want to put in, there are features that I want to put out. 3. Scribble down notes in a paper. 4. This is actually the coding part... where my game will most...
by sphyrth
Thu Dec 17, 2020 12:51 am
Forum: General
Topic: How to make a platformer [Youtube Tutorial] - All (6) episodes released!
Replies: 17
Views: 26109

Re: How to make a platformer [Youtube Tutorial] - E5 Released!

Jeeper wrote: Wed Dec 16, 2020 7:02 pm Do you have any suggestions on topics I should cover in the future?
There's one: The ParticleSystem

I kinda know my way around it, but I want beginners to play around with it... knowing how to set the 2 Basic Components (Particles and Emitter) is enough I believe.
by sphyrth
Tue Dec 15, 2020 6:02 pm
Forum: General
Topic: why am I getting this error?
Replies: 4
Views: 6602

Re: why am I getting this error?

You don't have "hero.x" defined.

Either you do something like this...

Code: Select all

hero = 
{
  image = love.graphics.newImage("hero.png"),
  x = 0,
  y = 0
}
or convert the bugged section into something like this:

Code: Select all

if stepx < mouse.x then stepx=stepx+4 
end
by sphyrth
Tue Dec 15, 2020 1:11 am
Forum: General
Topic: How to make a platformer [Youtube Tutorial] - All (6) episodes released!
Replies: 17
Views: 26109

Re: How to make a platformer [Youtube Tutorial] - E5 Released!


Congrats on finishing this series. The next Episode might be called "6.5/6", "7/6" or "Extra".
by sphyrth
Fri Dec 11, 2020 12:59 am
Forum: General
Topic: How to make a platformer [Youtube Tutorial] - All (6) episodes released!
Replies: 17
Views: 26109

Re: How to make a platformer [Youtube Tutorial] - E5 Released!

Jeeper wrote: Wed Dec 09, 2020 9:47 am Sorry for the delay with the last episode...
It's fine, dude. I'm aware of what it takes to make videos, let alone with such quality. Get some rest if you need to.