{"id":165,"date":"2023-05-14T02:59:37","date_gmt":"2023-05-14T01:59:37","guid":{"rendered":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/?p=165"},"modified":"2023-05-14T17:12:50","modified_gmt":"2023-05-14T16:12:50","slug":"bsc1b-week-4-developer-journal","status":"publish","type":"post","link":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/2023\/05\/14\/bsc1b-week-4-developer-journal\/","title":{"rendered":"BSc1b week 4: Developer journal"},"content":{"rendered":"\n<p>This week was continuing on the unreal fundamental tasks with doing the tasks of something that tracks the players health and something that counts down an ability cooldown. This was through some work on UI with a health and dash cooldown UI (Dash cooldown UI not fully implemented yet just a bar).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"451\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/UI-in-game-view-1024x451.png\" alt=\"\" class=\"wp-image-166\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/UI-in-game-view-1024x451.png 1024w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/UI-in-game-view-300x132.png 300w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/UI-in-game-view-768x338.png 768w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/UI-in-game-view.png 1431w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This is an in game view of the UI with the health in the top left corner and dash cooldown in the bottom right.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"582\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/UI-designer-view-1024x582.png\" alt=\"\" class=\"wp-image-167\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/UI-designer-view-1024x582.png 1024w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/UI-designer-view-300x170.png 300w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/UI-designer-view-768x436.png 768w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/UI-designer-view.png 1127w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This is the UI designer view.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Adding-UI-to-scene-view.png\" alt=\"\" class=\"wp-image-200\" width=\"650\" height=\"107\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Adding-UI-to-scene-view.png 964w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Adding-UI-to-scene-view-300x49.png 300w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Adding-UI-to-scene-view-768x127.png 768w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/figure>\n\n\n\n<p>This is the blueprint for adding the UI to the viewport when beginning play.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"626\" height=\"140\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Casting-to-player-for-UI-player-interaction.png\" alt=\"\" class=\"wp-image-168\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Casting-to-player-for-UI-player-interaction.png 626w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Casting-to-player-for-UI-player-interaction-300x67.png 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/figure>\n\n\n\n<p>This is the blueprint for casting the UI to the player so the UI can interact with the player (for health\/dash cooldown)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"657\" height=\"131\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Health-bar-UI-blueprint.png\" alt=\"\" class=\"wp-image-169\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Health-bar-UI-blueprint.png 657w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Health-bar-UI-blueprint-300x60.png 300w\" sizes=\"auto, (max-width: 657px) 100vw, 657px\" \/><\/figure>\n\n\n\n<p>This is the blueprint for the health bar UI in which it takes the health of the player divides it by 100 (to get it in the range of 0-1 needed for a progress bar as the player health is 100) and returning the value to the health bar.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"364\" height=\"230\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Removing-health-blueprint.png\" alt=\"\" class=\"wp-image-170\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Removing-health-blueprint.png 364w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Removing-health-blueprint-300x190.png 300w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/figure>\n\n\n\n<p>I did also to ensure the health bar worked create a way to remove health through pressing the &#8216;F&#8217; key in which it will take 25 from the players current health.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"536\" height=\"122\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Not-working-dash-cooldown-bar-blueprint.png\" alt=\"\" class=\"wp-image-171\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Not-working-dash-cooldown-bar-blueprint.png 536w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Not-working-dash-cooldown-bar-blueprint-300x68.png 300w\" sizes=\"auto, (max-width: 536px) 100vw, 536px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"765\" height=\"158\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Not-working-dash-cooldown-bar-blueprint2.png\" alt=\"\" class=\"wp-image-172\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Not-working-dash-cooldown-bar-blueprint2.png 765w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Not-working-dash-cooldown-bar-blueprint2-300x62.png 300w\" sizes=\"auto, (max-width: 765px) 100vw, 765px\" \/><\/figure>\n\n\n\n<p>These are the blueprints both related to the dash cooldown however the dash cooldown doesn&#8217;t currently work so these are likely to change when fixing the issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week was continuing on the unreal fundamental tasks with doing the tasks of something that tracks the players health and something that counts down an ability cooldown. This was through some work on UI with a health and dash cooldown UI (Dash cooldown UI not fully implemented yet just a bar). This is an [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-165","post","type-post","status-publish","format-standard","hentry","category-devlog"],"_links":{"self":[{"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":4,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"predecessor-version":[{"id":202,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/165\/revisions\/202"}],"wp:attachment":[{"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}