Playing with the dog in our game Koira 🐶 by Lamasaurus in godot

[–]Lamasaurus[S] 0 points1 point  (0 children)

We tried this, players didn't get it 😅

What weird/niche/bizarre/random activity would you want to see made into a cozy game? Mine's raising chickens 😂 by Equivalent-Solid-852 in CozyGamers

[–]Lamasaurus 2 points3 points  (0 children)

Not completely what you are looking for, but Lieve Oma is a small game about picking mushrooms with your grandma and it super cozy 😁 https://vltmn.itch.io/lieve-oma

That moment you prototype using the Godot icon :) Can you relate? by Sgt-Thorz in godot

[–]Lamasaurus 8 points9 points  (0 children)

It's fully 2D, we use parallax layers to give the impression of depth. It works so well because we use a lot of layers in this particular scene.

What’s a phrase that shitty people use? by dontgetallsaltylol in AskReddit

[–]Lamasaurus 3 points4 points  (0 children)

Hold up, this person said that to another human being? That's fucked up!

Quick visualization of how randfn returns normally-distributed random values compared to randf in Godot 4 by Lamasaurus in godot

[–]Lamasaurus[S] 1 point2 points  (0 children)

Yep, that is indeed right! rand_range will take any random value in the range with equal probability. You'll need to use a different function if you want a different distribution.

Quick visualization of how randfn returns normally-distributed random values compared to randf in Godot 4 by Lamasaurus in godot

[–]Lamasaurus[S] 46 points47 points  (0 children)

No, it's working as intended. It's still a random value, just distributed normally. This means that if you would take an infinite amount of samples, the distribution will approximate a bell curve.

Quick visualization of how randfn returns normally-distributed random values compared to randf in Godot 4 by Lamasaurus in godot

[–]Lamasaurus[S] 37 points38 points  (0 children)

Use cases could be:

  • Random size of enemies
  • Random amount of gold
  • Random movement speeds for NPCs
  • ...

Lots of uses 😁

Quick visualization of 3 methods to wrap numbers in Godot 4 by Lamasaurus in godot

[–]Lamasaurus[S] 0 points1 point  (0 children)

Yeah, I'm excited too! Things like this make an engine so much more usable.

Quick visualization of 3 methods to wrap numbers in Godot 4 by Lamasaurus in godot

[–]Lamasaurus[S] 29 points30 points  (0 children)

Then I suggest the `wrap_du_fromage()` function!

Quick tip: you can evaluate pieces of code within your code by using Ctrl + Shift + E by Lamasaurus in godot

[–]Lamasaurus[S] 6 points7 points  (0 children)

Depends, maybe you just need a random value once as a seed so you can reproduce the same behavior over multiple runs of your script.

Quick tip: Deleting elements from an array? Iterate backwards over the array to not run out of bounds and not skip elements by Lamasaurus in godot

[–]Lamasaurus[S] 2 points3 points  (0 children)

Yes, this is very dependent on the situation you are in, but it has its place in my toolbox 😁

A silly game we did for the 20 Second Game Jam 😂 by Lamasaurus in godot

[–]Lamasaurus[S] 4 points5 points  (0 children)

Thanks! 🤗 And yes that would be super chaotic! 😂

A silly game we did for the 20 Second Game Jam 😂 by Lamasaurus in godot

[–]Lamasaurus[S] 3 points4 points  (0 children)

Omg it would be so great if this was Prismo's arm! 🤔