{"id":182,"date":"2023-05-14T05:05:11","date_gmt":"2023-05-14T04:05:11","guid":{"rendered":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/?p=182"},"modified":"2023-05-14T05:05:11","modified_gmt":"2023-05-14T04:05:11","slug":"bsc1b-week-6-developer-journal","status":"publish","type":"post","link":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/2023\/05\/14\/bsc1b-week-6-developer-journal\/","title":{"rendered":"BSc1b week 6: Developer journal"},"content":{"rendered":"\n<p>This week continuing work on the unreal fundamental tasks with fixing the dash cooldown UI and for the task create some functions that change the blueprint\u2019s appearance when conditions using the moving platform and just having it&#8217;s material constantly change colour.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"264\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Working-dash-cooldown-and-colour-changing-platform-gif-1.gif\" alt=\"\" class=\"wp-image-184\"\/><\/figure>\n\n\n\n<p>This gif shows both the now working dash cooldown bar and the moving platforms now constantly changing to a random colour.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"621\" height=\"138\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Dash-cooldown-blueprint-fixed.png\" alt=\"\" class=\"wp-image-185\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Dash-cooldown-blueprint-fixed.png 621w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Dash-cooldown-blueprint-fixed-300x67.png 300w\" sizes=\"auto, (max-width: 621px) 100vw, 621px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"250\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Reduce-dash-cooldown-blueprint-1024x250.png\" alt=\"\" class=\"wp-image-186\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Reduce-dash-cooldown-blueprint-1024x250.png 1024w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Reduce-dash-cooldown-blueprint-300x73.png 300w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Reduce-dash-cooldown-blueprint-768x187.png 768w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Reduce-dash-cooldown-blueprint.png 1037w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The above blueprints are related to the now fixed dash cooldown just in the UI which now first sets the dash cooldown timer to 1 the calls the function reduce dash cooldown. With the reduce dash cooldown timer it takes the time clamped between 0 and 1 and sets the dash cooldown timer to that which it then takes away this value from 1 then sets the percent of the dash bar using that sum.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"370\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Dash-cooldown-blueprint-in-player-1024x370.png\" alt=\"\" class=\"wp-image-187\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Dash-cooldown-blueprint-in-player-1024x370.png 1024w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Dash-cooldown-blueprint-in-player-300x109.png 300w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Dash-cooldown-blueprint-in-player-768x278.png 768w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Dash-cooldown-blueprint-in-player.png 1529w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This is for reducing the dash cooldown done in player following on from all the dash related stuff (shown in week 3) except now in the end it sets a timer by event reduce dash cooldown connected to world delta seconds. Connected to this is setting the dash timer, calling the dash cooldown in UI and finally setting dash cooldown equal to 1. The reduce dash cooldown event gets the dash cooldown (1 second) then takes away world delta seconds with the result clamped between 0 and 1 setting the new value of dash cooldown. This then calls the reduce dash cooldown in the UI. Then it will loop constantly checking if the dash cooldown is equal to 0. Once it is equal to 0 it clear and invalidates the dash timer timer.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"468\" height=\"112\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Platform-construct-script.png\" alt=\"\" class=\"wp-image-188\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Platform-construct-script.png 468w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Platform-construct-script-300x72.png 300w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"292\" height=\"90\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Platform-event-tick.png\" alt=\"\" class=\"wp-image-189\"\/><\/figure>\n\n\n\n<p>These are both blueprints related to the colour changing of the moving platform so when when platform is created it calls the colour changing function. Also every event tick it calls the colour changing function.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"305\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Colour-changing-function-1-1-1024x305.png\" alt=\"\" class=\"wp-image-193\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Colour-changing-function-1-1-1024x305.png 1024w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Colour-changing-function-1-1-300x89.png 300w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Colour-changing-function-1-1-768x229.png 768w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Colour-changing-function-1-1.png 1416w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"566\" height=\"362\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Colour-changing-function-2.png\" alt=\"\" class=\"wp-image-194\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Colour-changing-function-2.png 566w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Colour-changing-function-2-300x192.png 300w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/figure>\n\n\n\n<p>These are the colour changing function in which it uses the dynamic material instance of the mater colour changing on the target of plane (the platform). In this it sets the values within the colour changing material first being the flow intensity set to 5000. Then sets the value of the parameter other colour then sets the scalar parameter value of red to a random value in the float range 0 to 1. This is then repeated for both green and blue.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"483\" height=\"591\" src=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Colour-changing-materials-graph.png\" alt=\"\" class=\"wp-image-195\" srcset=\"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Colour-changing-materials-graph.png 483w, https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2023\/05\/Colour-changing-materials-graph-245x300.png 245w\" sizes=\"auto, (max-width: 483px) 100vw, 483px\" \/><\/figure>\n\n\n\n<p>This is the material graph for the colour changing material showing how all the parameters come together.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week continuing work on the unreal fundamental tasks with fixing the dash cooldown UI and for the task create some functions that change the blueprint\u2019s appearance when conditions using the moving platform and just having it&#8217;s material constantly change colour. This gif shows both the now working dash cooldown bar and the moving platforms [&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-182","post","type-post","status-publish","format-standard","hentry","category-devlog"],"_links":{"self":[{"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/182","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=182"}],"version-history":[{"count":2,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/182\/revisions"}],"predecessor-version":[{"id":196,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/182\/revisions\/196"}],"wp:attachment":[{"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/georgebaker.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}