{"id":129,"date":"2024-02-22T07:33:23","date_gmt":"2024-02-22T07:33:23","guid":{"rendered":"https:\/\/wildtechgames.com\/?p=129"},"modified":"2024-03-09T19:51:11","modified_gmt":"2024-03-09T19:51:11","slug":"my-unreal-engine-learning-journey-day-20-crouch-walk-and-lose-condition","status":"publish","type":"post","link":"https:\/\/wildtechgames.com\/?p=129","title":{"rendered":"My Unreal Engine Learning Journey \u2013 Day 20 \u2013 Crouch\/Walk and Lose Condition"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction:<\/h2>\n\n\n\n<p>I have (mostly) finished setting up the animations for walking while crouched. And the game now has a lose condition with a on-screen text showing the player has lost as well.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"799\" src=\"https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-16-1024x799.png\" alt=\"\" class=\"wp-image-130\" srcset=\"https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-16-1024x799.png 1024w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-16-300x234.png 300w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-16-768x599.png 768w, https:\/\/wildtechgames.com\/wp-content\/uploads\/2024\/02\/image-16.png 1381w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Crouch\/Walk:<\/h2>\n\n\n\n<p>I added the animation for when the character is walking while crouched, although I&#8217;ve got a bug that makes it look pretty funny where the knees wobble, but the legs don&#8217;t actually &#8216;walk&#8217;.   I&#8217;ll debug this in the future.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Lose Condition:<\/h2>\n\n\n\n<p>All good things must come to an end and now the game lets the player know when they&#8217;ve lost!  Added a bit of time dilation and a &#8216;You Lose!&#8217; text on the screen before the game resets back to the beginning.  Now that I think about it, the game now has at least 1 full gameplay loop, losing.  Still no win condition, but we&#8217;ll get there eventually!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion:<\/h2>\n\n\n\n<p>I&#8217;ll go back and fix the walk\/crouch animation in the future, I&#8217;m thinking it has something to do with the megascan character I chose as I&#8217;ve been having some performance issues with it as well when the camera auto-zooms in\/out.  I&#8217;ll make a note of the bug fix in a future blog post.  <br>Next up will be adding some stairs and bridges! <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"My Unreal Engine Learning Journey \u2013 Day 20 \u2013 Crouch\/Walk and Lose Condition\" width=\"640\" height=\"480\" src=\"https:\/\/www.youtube.com\/embed\/0AgsjtkdNJs?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: I have (mostly) finished setting up the animations for walking while crouched. And the game now has a lose condition with a on-screen text showing the player has lost as well. Crouch\/Walk: I added the animation for when the character is walking while crouched, although I&#8217;ve got a bug that makes it look pretty [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1,8],"tags":[10,11,14,9],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/posts\/129"}],"collection":[{"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=129"}],"version-history":[{"count":3,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=\/wp\/v2\/posts\/129\/revisions\/134"}],"wp:attachment":[{"href":"https:\/\/wildtechgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wildtechgames.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}