{"id":4306,"date":"2016-11-27T23:57:20","date_gmt":"2016-11-27T23:57:20","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=4306"},"modified":"2016-12-04T23:49:53","modified_gmt":"2016-12-04T23:49:53","slug":"p-172-unitp0-p-172-part-54-more-guis-damage-modelling-targeting-etc","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p-172-unitp0-p-172-part-54-more-guis-damage-modelling-targeting-etc\/","title":{"rendered":"P0-P-172: Part 54: More Gui&#8217;s: Damage modelling, targeting, etc"},"content":{"rendered":"<p>I have completed the &#8220;operation&#8221; menu for the shuttle.<\/p>\n<p>The different buttons on the gui will change colour to reflect damage: green for no damage, yellow for repairable damage, and red for severe, irreparable damage.<\/p>\n<p>At the moment, I am hardcoding the engine damage, to make sure the shuttle always crashes, but the other damage is added randomly.<\/p>\n<p>In future, I will add a complex damage system which will apply damage to various components based on the unique circumstances, such as the type of weapon used, the location of the hit, etc etc.<\/p>\n<p>I have also added realistic &#8220;damage effects&#8221;. If a missile hits the shuttle, I have smoke, fire, sparks, and flame effects that will be created. This looks great. Along with the visual effects, there are various alarms that will sound based on the damage sustained. One for minor damage, one for major damage. This all works very well.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_4288\" aria-describedby=\"caption-attachment-4288\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-06_09_22-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4288\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-06_09_22-AM-300x164.jpg\" alt=\"Unity 25\/11\/2016 , 06:09:22 AM\" width=\"300\" height=\"164\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-06_09_22-AM-300x164.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-06_09_22-AM-768x420.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-06_09_22-AM-1024x560.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4288\" class=\"wp-caption-text\">Unity<br \/>25\/11\/2016 , 06:09:22 AM<\/figcaption><\/figure>\n<figure id=\"attachment_4286\" aria-describedby=\"caption-attachment-4286\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-02_56_23-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4286\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-02_56_23-AM-300x163.jpg\" alt=\"Unity 25\/11\/2016 , 02:56:23 AM Unity Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-02_56_23-AM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-02_56_23-AM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-02_56_23-AM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-02_56_23-AM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4286\" class=\"wp-caption-text\">Unity<br \/>25\/11\/2016 , 02:56:23 AM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_4287\" aria-describedby=\"caption-attachment-4287\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-06_09_02-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4287\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-06_09_02-AM-300x163.jpg\" alt=\"Unity 25\/11\/2016 , 06:09:02 AM Unity Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone* \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-06_09_02-AM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-06_09_02-AM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-06_09_02-AM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-25_11_2016-06_09_02-AM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4287\" class=\"wp-caption-text\">Unity<br \/>25\/11\/2016 , 06:09:02 AM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone*<\/figcaption><\/figure>\n<figure id=\"attachment_4285\" aria-describedby=\"caption-attachment-4285\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-24_11_2016-09_33_21-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4285\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-24_11_2016-09_33_21-PM-300x164.jpg\" alt=\"Unity 24\/11\/2016 , 09:33:21 PM\" width=\"300\" height=\"164\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-24_11_2016-09_33_21-PM-300x164.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-24_11_2016-09_33_21-PM-768x420.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-24_11_2016-09_33_21-PM-1024x560.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4285\" class=\"wp-caption-text\">Unity<br \/>24\/11\/2016 , 09:33:21 PM<\/figcaption><\/figure>\n<figure id=\"attachment_4294\" aria-describedby=\"caption-attachment-4294\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-27_11_2016-02_12_45-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4294\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-27_11_2016-02_12_45-AM-300x163.jpg\" alt=\"Unity 27\/11\/2016 , 02:12:45 AM Unity Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-27_11_2016-02_12_45-AM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-27_11_2016-02_12_45-AM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-27_11_2016-02_12_45-AM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-27_11_2016-02_12_45-AM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4294\" class=\"wp-caption-text\">Unity<br \/>27\/11\/2016 , 02:12:45 AM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_4293\" aria-describedby=\"caption-attachment-4293\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-27_11_2016-02_12_43-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4293\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-27_11_2016-02_12_43-AM-300x163.jpg\" alt=\"Unity 27\/11\/2016 , 02:12:43 AM Unity Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-27_11_2016-02_12_43-AM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-27_11_2016-02_12_43-AM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-27_11_2016-02_12_43-AM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-27_11_2016-02_12_43-AM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4293\" class=\"wp-caption-text\">Unity<br \/>27\/11\/2016 , 02:12:43 AM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I have completed the &#8220;operation&#8221; menu for the shuttle. The different buttons on the gui will change colour to reflect damage: green for no damage, yellow for repairable damage, and red for severe, irreparable damage. At the moment, I am hardcoding the engine damage, to make sure the shuttle always crashes, but the other damage [&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,17,10,11],"tags":[],"class_list":["post-4306","post","type-post","status-publish","format-standard","hentry","category-astral-realms","category-p-0","category-software-and-games","category-spiritus-astrum","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"builder_content":"","_links":{"self":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/4306"}],"collection":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/comments?post=4306"}],"version-history":[{"count":5,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/4306\/revisions"}],"predecessor-version":[{"id":4371,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/4306\/revisions\/4371"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=4306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=4306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=4306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}