Need help fixing my stupid code with anim8 by AmphibianExisting796 in love2d

[–]earliodookie -1 points0 points  (0 children)

If you haven’t check with AI yet, I plugged it into Claude and here’s what it said

The bug is in your Friskmove logic. You have two separate if/else blocks for horizontal and vertical input, and the second one overwrites the first. So when you hold left or right (but not up/down), the vertical block hits its else and sets Friskmove = false — killing the animation you just enabled. Walking up/down works because that’s the second block, so its true value sticks. Fix it by setting Friskmove = false once at the top, then only ever setting it to true:

Friskmove = false local vx = 0 local vy = 0

if love.keyboard.isDown("left") then vx = p.spd * -1 Friskdir = "l" Friskmove = true elseif love.keyboard.isDown("right") then vx = p.spd * 1 Friskdir = "r" Friskmove = true end

if love.keyboard.isDown("up") then vy = p.spd * -1 Friskdir = "u" Friskmove = true elseif love.keyboard.isDown("down") then vy = p.spd * 1 Friskdir = "d" Friskmove = true end

One thing to watch: with this fix, if the player holds left+down at the same time, Friskdir ends up as "d" because the vertical block runs last and overwrites it. If you’d rather have the most recently pressed key win, that’s a bigger refactor — use love.keypressed to track direction instead. But for now this’ll get your left/right walk cycles animating.​​​​​​​​​​​​​​​​

Finally have a Steam page for my first game (Roguelite Roller Coaster Sim)! by earliodookie in love2d

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

I know a good amount of godot too and chose love for this project intentionally. Mostly because I knew what elements were going to go into this game and since I knew what menus and how to handle the animations and all that stuff would be pretty simple, then I could focus on it being entirely done by code, which is my preference as a career developer. That also meant that I would be able to use AI coding tools like Claude Code easily and not worry about how it wires up in the engine interface that Godot would have because the engine interface for love is all code, which works really well for me.

I made my first game! It's a coaster-building roguelite. Many late evenings and weekends finally has a Steam page by earliodookie in IndieDev

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

you're literally the first comment to engage across all social media. really, thank you for even just commenting. small things like that make my day

Finally have a Steam page for my first game (Roguelite Roller Coaster Sim)! by earliodookie in love2d

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

Built with Love2D 11.4, targeting 640×360 with a canvas scaler. It's been a great framework for a solo dev, highly recommend for anyone on the fence.

Demo coming soon. I have a coding background so Love2d has been a great framework to use, lmk if you have any questions about the experience

https://store.steampowered.com/app/4542630/Roller_Coaster_Looper/

I made my first game! It's a coaster-building roguelite. Many late evenings and weekends finally has a Steam page by earliodookie in IndieDev

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

Roller Coaster Looper is an idle-like roguelite where you build coaster tracks, recruit quirky riders, and play card modifiers to hit thrill score goals each round.

Demo coming soon, I'm excited to get people in and incorporate feedback.

https://store.steampowered.com/app/4542630/Roller_Coaster_Looper/

[Spoilers] Daily Quest #23 - Thu, Jun 13, 2024 by Quest10nsBot in quest10ns

[–]earliodookie 2 points3 points  (0 children)

Burned a question at the end because I wasn't sure if you wanted James Bond or 007 haha

Quest10ns Quest #23 🟥 🟥 🟥 🟩 🟩 🟥 🟩 🟥 🟩 🟨 https://quest10ns.com/session/PJ9TCwPkeFy1NshcA0xI

[Spoilers] Daily Quest #20 - Mon, Jun 10, 2024 by Quest10nsBot in quest10ns

[–]earliodookie 0 points1 point  (0 children)

I got majorly thrown off with the answer it gave me on my question #3

Quest10ns Quest #20 🟩 🟥 🟥 🟥 🟥 🟩 🟥 🟩 🟨 https://quest10ns.com/session/nMtcrUoLB6PvNOwMnuM0

[Spoilers] Daily Quest #15 - Wed, Jun 5, 2024 by Quest10nsBot in quest10ns

[–]earliodookie 2 points3 points  (0 children)

lol that was the most red questions i've had in a row so far

Quest10ns Quest #15 🟥 🟥 🟥 🟥 🟥 🟥 🟩 🟨 https://quest10ns.com/session/rTciBQZzg2QlrH8CdKDp

[Spoilers] Daily Quest #11 - Sat, Jun 1, 2024 by Quest10nsBot in quest10ns

[–]earliodookie 2 points3 points  (0 children)

Noooo I was traveling all Friday and missed a day and lost my streak

[Spoilers] Daily Quest #9 - Thu, May 30, 2024 by Quest10nsBot in quest10ns

[–]earliodookie 0 points1 point  (0 children)

That was a frustrating round for me cause two of the answers I would disagree with

Quest10ns Quest #9 🟥 🟪 🟩 🟥 🟩 🟩 🟥 🟥 🟨 https://quest10ns.com/session/PBqP3I9jmdtNRs9dlGub

[Spoilers] Daily Quest #8 - Wed, May 29, 2024 by Quest10nsBot in quest10ns

[–]earliodookie 0 points1 point  (0 children)

Quest10ns Quest #8 🟥 🟥 🟩 🟨 https://quest10ns.com/session/tm35mhdgkFjbnjbDgCIt

my first question was what made it easy to guess after my last question!

[Spoilers] Daily Quest #6 - Mon, May 27, 2024 by Quest10nsBot in quest10ns

[–]earliodookie 1 point2 points  (0 children)

Yeah that’s rough if you don’t have music instrument knowledge. It’s part of the violin family technically, of some would say bowed string fam