I Made A Speed Running Duck Game IN 7 DAYS Using Godot 4 | Ducky Runnerz

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024
  • เกม

ความคิดเห็น • 71

  • @metakazz
    @metakazz 7 หลายเดือนก่อน +21

    4:08
    In a nutshell, your problem stems from trying to play two different animations every frame of the game. What Godot normally does is if you tell it to play an animation it's already playing, it ignores you. When you're jumping, your code is essentially saying "start the idle or run animation, **then** start the jump animation". So Godot is showing the first frame of the idle/run then the first frame of the jump over and over.
    I think the essential part is understanding that "if-else" statements will **always** perform one of the two blocks below it. From how update_animations is currently written, either the idle or run will always play before anything else happens.
    Hope this helps!
    P.S. As a black gamedev myself, it's my first time encountering your channel and I'm glad to see you. Keep going; the world needs us!

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +7

      Thanks for the tips man! I was able to get the animation to play with only writing if statements. I'll keep that in mind for my next if-else statement.
      I'm glad you found my video bro, we out here! I appreciate the encouragement, you keep doing yo thang as well 👊🏽

  • @shout64
    @shout64 7 หลายเดือนก่อน +1

    Game looks good man! I've been working in Godot as well, it's an amazing engine.
    This game looks like a lot of fun, I'd definitely be interested if you kept adding to this game

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +1

      Thanks yo! Its really nice to see other Godot users show love. 😅 This support for this game has been a blessing. I'm defiantly going to be working on making this a full game!

  • @markoszilagyi9056
    @markoszilagyi9056 7 หลายเดือนก่อน +1

    Your pause menu popping up when pressing space should be related to the button's focus property, try setting Focus > Mode to "None"

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน

      Aaaaaahhhhhhh I seee I see, that makes sense! Thanks for the help 🙏🏽 I’ll keep that in mind

  • @adammortonmusic
    @adammortonmusic 7 หลายเดือนก่อน

    Awesome game, and great devlog! Love seeing your passion for game dev, and looking forward to seeing your channel grow as you create more games and share your journey 🤟 The game controls took a bit to get used to, Ducky felt a bit "slippery" at times so it was hard to control at first - but hey, that's all part of learning this platforming character.
    Two feedback comments would be to 1) keep the pixel resolution consistent - the duck being a higher resolution than the other objects feels out of place, and 2) the "win" music is overlapping the gameplay music in the End Screen, so if you can fade out the gameplay music while the win music is playing, then return the gameplay music after the win music finishes, that would be cleaner.
    Overall, really enjoyed the quick gameplay, impressive you did it all in a week (INCLUDING LEARNING THE ENTIRE FREAKIN ENGINE), so mad props to you for that. If you're looking to expand the game into a full release, I'd love to connect about the music for the full game. I don't imagine I can post links in comments without getting flagged, so let me know if there's a best email address to connect with you and I can share some of my previous work and a free music pack with you! :)

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +1

      Ayy thanks for the feedback! I’ll keep your suggestions in mind as I further develop the game 👊🏽 you made some solid points, appreciate it yo! And that would be amazing if you worked on the soundtrack! You can email me at anoccasionalgamer@gmail.com

    • @adammortonmusic
      @adammortonmusic 7 หลายเดือนก่อน

      @@anOccasionalGamer You're welcome! And that's awesome, thanks! I've sent you an email. Looking forward to connecting 🤟

  • @MartinvanZ
    @MartinvanZ 7 หลายเดือนก่อน

    Great job! We all know those head scratching issues. But in the end you will figure it out and your games will get better and better.
    You made a lot of progress in 7 days! It took 3 years for me to publish my game. And Im still working on updates.
    Are you planning to release the game on Android as well?

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน

      Thanks a ton MartinvanZ 👊🏽 I appreciate the kind words. I would love to check out your game, what’s it called?
      And I thought about releasing it on android/ iOS but I know most if not all mobile users are interested in free games. I feel like playing this game with ads would ruin its the players experience. I also feel like ducky runners wouldn’t be received well if It had to be purchased.

  • @user-xsn5ozskwg
    @user-xsn5ozskwg 7 หลายเดือนก่อน

    Welcome to the world of gamedev, man! Seems like you made some great progress in only seven days. Have you ever worked with any programming languages before?

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +1

      Glad to be here! I’ve mostly used C# back in the day but didn’t make anything too extensive. Also, I started learning blueprints for unreal engine a month ago. My previous videos on game dev cover my background 👊🏽

    • @user-xsn5ozskwg
      @user-xsn5ozskwg 7 หลายเดือนก่อน

      @@anOccasionalGamer Word, I'll have to watch them. You've got a sub from me, I can't wait to see what you do

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +1

      @@user-xsn5ozskwg thanks for support yo, it really means a lot 🙏🏽

  • @marcusrehn6915
    @marcusrehn6915 7 หลายเดือนก่อน

    I like the way it looks when jumping tight now though!

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +1

      😅 I got the animation working now! If you jump without moving, there’s no animation. As soon as you move left or right and flapping animation plays! It’s Very satisfying 😁😁😁😁

  • @DylanDev14
    @DylanDev14 7 หลายเดือนก่อน

    Very inspiring, love the sound of a food fight game. I’ll check out ducky runner when I can:)

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน

      Thanks a ton DylanDev 👊🏽 let me know what you think when you check it out!

  • @CallMeMaykes
    @CallMeMaykes 7 หลายเดือนก่อน

    Can’t wait to check it out when I get home! 🙌🏾🙌🏾

  • @Yawwdmondonny
    @Yawwdmondonny 2 หลายเดือนก่อน

    tough 🔥🔥🔥

  • @TheBoringDeveloper
    @TheBoringDeveloper 7 หลายเดือนก่อน

    I really loved your video, what's one idiology you follow to become a flent programmer?

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +1

      Aayyy I’m glad you enjoyed the video!! And honestly what’s working for me to become a fluent programmer is making mistakes. Instead of looking up tutorials for everything, I take a stab at a concept on my own. It may take longer to get the results you want but you would have retained how you got to the end. Also, i follow Godot on Reddit. In my free time I’m actively keeping my mind sharp on exploring new concepts and logic for code in many unique situations. Read, watch, and dream programming daily and you’ll see results 👊🏽

    • @TheBoringDeveloper
      @TheBoringDeveloper 7 หลายเดือนก่อน

      @@anOccasionalGamer 👊 I promise I'll follow that and I'll even start recording my journey , one day I'll do a collab with you. I promise I will make this happen

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน

      @@TheBoringDeveloper let’s make it happen 👊🏽 I’m looking forward to it!

    • @TheBoringDeveloper
      @TheBoringDeveloper 7 หลายเดือนก่อน

      @@anOccasionalGamer alright let's make this happen 👊 tommorow I upload my first video, won't be perfect but the efforts compound don't they

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน

      @@TheBoringDeveloper Happy to be your second subscriber 👌🏽 what’s important is starting, the vids will get better over time yo

  • @mooreVR
    @mooreVR 7 หลายเดือนก่อน

    YESSIR 🕶️🍷🔥🔥

  • @GurkisDev
    @GurkisDev 7 หลายเดือนก่อน

    The player looks more like a goose than a duck 😅. Sorry I dont wanna be that one annoying guy that points it out but I just thought you should know.

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน

      🤣🤣🤣🤣 no worries at all lol it is a goose. I thought about changing the colors to make it look more like a duck 🦆 but I thought it was funny if maybe the main character was named Ducky but is really a goose and tie that into the story. Nothing final yet, but thanks for pointing that out 👊🏽

  • @jamroll3841
    @jamroll3841 7 หลายเดือนก่อน +16

    I HAD THE SAME PROBLEM WITH THE JUMP ANIMATION, it took like 20 minutes for me to figure out why my thing wasn't working but then I came to like a eureka moment, you know when you're playing a game and you hit like both left and right at the same time and the character just doesn't move or freezes in place? I think it's something like that. And basically if you get rid of the jumping animation entirely, it'll show the running animation playing instead when you jump. Basically you have to specify to the code to only play the default animation and the running animation when the character is on the floor. something like "is_on_floor" or "is_on_floor_only" that's what worked for me!

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +9

      YOU ARE THE GOAT!!!! THANK YOU SO MUCH!!!!!!
      Yoooo I yelled out loud when this worked! Really appreciate you yo!

    • @jamroll3841
      @jamroll3841 7 หลายเดือนก่อน +1

      @@anOccasionalGamer Of course man!! happy to help, especially knowing how frustrating it is to only see one frame of an animation you worked on come out and having zero idea why it's doing that lol, excited to see ducky runners's journey!!!

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +2

      @@jamroll3841 You're a real one! Trust me lol I gave up on trying to figure it out and just kept developing the game knowing I'll figure it out some time in the future. Thanks again for your help!

  • @JackGuyDude
    @JackGuyDude 7 หลายเดือนก่อน +5

    I think the issue with the jump animation may be that it is being called multiple times while the player is in the air so it never has a chance to finish playing. I don't know if this is very efficient but the way I solve this is to put 2 conditions into the if statement and then set one of them to false in the if statement. It would look like this:
    var play_jump_animation = true
    if not is_on_floor() and play_jump_animation = true:
    animated_sprite_2d.play("jump")
    play_jump_animation = false
    and then to reset it you would have to do this:
    if is_on_floor():
    play_jump_animation = true
    Good luck, hope this helps :))

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน

      Thanks for the help! That logic kind of worked for the duck being in the air and next to the wall. Which made me think of adding a slide on wall animation. Unfortunately, the animation still doesn't fully play out.
      I wonder if a state machine would be a solution.

    • @JackGuyDude
      @JackGuyDude 7 หลายเดือนก่อน

      @@anOccasionalGamer I personally haven't looked into state machines yet but I've heard they are pretty powerful so it could definitely be something worth looking into. Great job with the game by the way!

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +1

      @@JackGuyDude thanks a ton JackGuyDude! Means a lot!!

    • @JackGuyDude
      @JackGuyDude 7 หลายเดือนก่อน

      No problem man! Keep up the good work! 👍

  • @eggcitedbro
    @eggcitedbro 7 หลายเดือนก่อน +3

    Been watching tons of GODOT tutorial and have your video rec to me by YT - instant subscribe, good luck on your development journey!

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน

      Ayyy welcome to the guild! Thanks for the support and I hope all is well with you and your interest in Godot as well 😁

  • @PensnPixels
    @PensnPixels 7 หลายเดือนก่อน +2

    I look forward to seeing where you go with the full version of Ducky Runners. As a developer who released a speedrun platformer with a walljumping duck who has a limited amount of time to complete each level on Steam, I think there's room for more speedrun platformers with a walljumping ducks who have a limited amount of time to complete each level on Steam. ;)
    If my tone isn't clear, this is similar in concept to a game I released a couple of years back but I am 100% here for it! We've got different aesthetic sensibilities and I do genuinely eagerly await the full version! GREAT WORK. :)

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน

      Yoooo…. Your game quickly quackley looks INTENSE 🔥🔥🔥🔥 love the art style, tight platforming, the music. Lol I thought duck runners was 1 of 1 😅 I appreciate your support! And I’ll be supporting you as well 👊🏽 I appreciate the kind words frfr

  • @bruex2277
    @bruex2277 7 หลายเดือนก่อน

    The game is cool (I really like the physics for the duck) but the art is not great. Most of the sprites are a different resolution from eachother which looks really weird. Try to use a consistent pixel size for all of your assets next time you use pixel art for a project.

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +1

      Thanks Bruex! Thanks for the suggestion, that's a solid take for the art style. I'll keep that in mind as I develop further!

  • @therubbermeep7456
    @therubbermeep7456 7 หลายเดือนก่อน

    If its only the first frame showing try addy a if animation is not already playing condition cause it could be stuck on restarting the animation

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน

      I was able to figure it out, I think it wasn’t okay because of the else statement. Nothing after the else statement was running correctly. I also defined idle and run animation to play while on the floor and now the animation plays perfectly! Feels very satisfying. Thanks for the help Rubbermeep 👊🏽

  • @ahmedkhabar
    @ahmedkhabar 7 หลายเดือนก่อน

    Hi, In your next project learn something named State Machine which will help you a lot.

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +1

      I’ve been looking into them! They’re really powerful and useful but can be really complex 😅 I’ll see if I can do without them for this project but definitely use them for my next!

    • @ahmedkhabar
      @ahmedkhabar 7 หลายเดือนก่อน

      Hhh it's true @@anOccasionalGamer

  • @TooMuchFoood
    @TooMuchFoood 7 หลายเดือนก่อน

    Let's go! 🎉🎉

  • @janjann98
    @janjann98 7 หลายเดือนก่อน

    Keep it up Paigey!! 🎉

  • @wLiwa
    @wLiwa 7 หลายเดือนก่อน

    Great job fam!!

  • @Ragz10
    @Ragz10 7 หลายเดือนก่อน

    Sweet currently making my 2nd game in godot soon finished

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +1

      That’s awesome, do you have it on itch or stream? Would love to check it out

    • @Ragz10
      @Ragz10 7 หลายเดือนก่อน

      @@anOccasionalGamer thanks.
      I'm still working on it maybe able to release a base demo by tonight

    • @Ragz10
      @Ragz10 7 หลายเดือนก่อน

      @@anOccasionalGamer good morning
      Got the demo out last night. Gotta go and download your game. Hope to see it get more updates and such also.

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +1

      @@Ragz10 Aayy glad to hear you released it, where can I check out your demo? And I’ll definitely be updating the game more very soon

  • @harmoithehaloinkdemon5701
    @harmoithehaloinkdemon5701 7 หลายเดือนก่อน

    I would love to see your party game come through!
    I haven't checked out Ducky Runners yet but I'll give you feedback when I do👍

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน +1

      Thanks a ton Harmoni 👊🏽 appreciate you! And trust me, we’re taking steps toward making the dream game.

  • @24gwmcpher
    @24gwmcpher 7 หลายเดือนก่อน

    I died to many times already looooool Congrats bro, it only gets better from here

    • @anOccasionalGamer
      @anOccasionalGamer  7 หลายเดือนก่อน

      Looool were you able to beat level 3 ? And appreciate it bro! The journey continues