{"id":4812,"date":"2023-12-09T10:58:31","date_gmt":"2023-12-09T01:58:31","guid":{"rendered":"https:\/\/blog.criware.com\/?p=4812"},"modified":"2024-05-17T17:20:08","modified_gmt":"2024-05-17T08:20:08","slug":"elemental-weapons","status":"publish","type":"post","link":"https:\/\/blog.criware.com\/index.php\/2023\/12\/09\/elemental-weapons\/","title":{"rendered":"Elemental Weapons"},"content":{"rendered":"<p>Elemental weapons provide a twist to combat in RPGs, by channelling the power of natural elements such as fire, ice, lightning, etc. In this post, we will see how to design sounds that match the visual effects associated with these weapons, all in Atom Craft.<\/p>\n<div class=\"wp-video\" style=\"width: 800px; display: block; margin: 40px auto;\">\n<div style=\"width: 800px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-4812-1\" width=\"800\" height=\"423\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2023\/12\/Video_ElementalWeapons.mp4?_=1\" \/><a href=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2023\/12\/Video_ElementalWeapons.mp4\">https:\/\/blog.criware.com\/wp-content\/uploads\/2023\/12\/Video_ElementalWeapons.mp4<\/a><\/video><\/div>\n<\/div>\n<h1 style=\"font-size: 150%; font-weight: bold; margin-top: 40px;\">Assets creation<\/h1>\n<p>First, we need to create several layers, both for the sounds of the basic weapon and for its elemental components. For each of the layers, we will need several variations as well. In our example, we made a sword sound that is composed of two layers:<\/p>\n<ul>\n<li>Sword Hit<\/li>\n<li>Sword Whoosh<\/li>\n<\/ul>\n<p>Then, we created some whoosh sound effects for the following elements:<\/p>\n<ul>\n<li>Fire<\/li>\n<li>Electricity<\/li>\n<li>Ice<\/li>\n<li>Water<\/li>\n<\/ul>\n<p>Of course, feel free to create whooshes for other elements, as required by your game.<\/p>\n<p>Once the assets are ready, drag and drop everything into your Materials folder.<\/p>\n<h1 style=\"font-size: 150%; font-weight: bold; margin-top: 40px;\">Implementation<\/h1>\n<p>First, we create a Cue for our sword.<\/p>\n<ul>\n<li>Create a new <em>Polyphonic<\/em> Cue.<\/li>\n<li>Add the tracks that correspond to your weapon sounds, in our case one for the Hit and one for the Whoosh.<\/li>\n<li>Then, add one track for each elemental layer (four in our case).<\/li>\n<\/ul>\n<p>With our tracks ready, we can now move our assets in the Cue:<\/p>\n<ul>\n<li>In each track, create a <strong>Sub Sequence<\/strong> of type Shuffle.<\/li>\n<li>Drag and drop the Materials for each layer in its corresponding <em>Sub Sequence<\/em>.<\/li>\n<li>Move the Sword Hit Sub Sequence on the timeline to start at about 700 ms (depending on the length of the whoosh).<\/li>\n<li>Open the <strong>List Editor<\/strong> and adjust the <em>Volume Random Range<\/em> and the <em>Pitch Random Range<\/em> properties to your liking in order to add more variations.<\/li>\n<\/ul>\n<p style=\"text-align:right;\">\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2023\/12\/01-Cue-and-SubSequence.png\" alt=\"01 Cue and SubSequence\" width=\"1187\" height=\"620\" class=\"alignnone size-full wp-image-4818\" srcset=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2023\/12\/01-Cue-and-SubSequence.png 1187w, https:\/\/blog.criware.com\/wp-content\/uploads\/2023\/12\/01-Cue-and-SubSequence-300x157.png 300w, https:\/\/blog.criware.com\/wp-content\/uploads\/2023\/12\/01-Cue-and-SubSequence-768x401.png 768w, https:\/\/blog.criware.com\/wp-content\/uploads\/2023\/12\/01-Cue-and-SubSequence-1024x535.png 1024w, https:\/\/blog.criware.com\/wp-content\/uploads\/2023\/12\/01-Cue-and-SubSequence-390x205.png 390w\" sizes=\"auto, (max-width: 1187px) 100vw, 1187px\" \/>\n<\/p>\n<p>&nbsp;<br \/>\nAt this stage, if you play the Cue all the tracks will play together. We need a way to always play the Sword Whoosh and Hit sounds, but to play the elemental sounds selectively. To achieve this, we can use a feature of the <em>Polyphonic<\/em> Cue that allows us to use a <strong>Selector<\/strong> on its tracks.<\/p>\n<ul>\n<li>On the <strong>Project Tree<\/strong>, add a new \u201cElement\u201d <em>Selector<\/em> in the <em>Selector Folder<\/em>.<\/li>\n<li>Add a <em>Selector Label<\/em> for each of your elements: Fire, Electric, Ice, and Water in our case.<\/li>\n<li>Add a None label to allow the elemental power of the weapon to be disabled.<\/li>\n<li>Finally, in your Weapon Cue, assign the Selector Labels to the appropriate tracks.<\/li>\n<\/ul>\n<p style=\"text-align:right;\">\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2023\/12\/02-Selector.png\" alt=\"02 Selector\" width=\"990\" height=\"628\" class=\"alignnone size-full wp-image-4819\" srcset=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2023\/12\/02-Selector.png 990w, https:\/\/blog.criware.com\/wp-content\/uploads\/2023\/12\/02-Selector-300x190.png 300w, https:\/\/blog.criware.com\/wp-content\/uploads\/2023\/12\/02-Selector-768x487.png 768w\" sizes=\"auto, (max-width: 990px) 100vw, 990px\" \/>\n<\/p>\n<p>While testing your Cue in the Session window, you can switch the Selector value, allowing for different elements to play along with the original sword strike. In the same way, in your game, if your weapon has an elemental effect activated, you can simply switch to the appropriate selector label.<\/p>\n<p>You can test it by yourself in the demo project below.<\/p>\n<div style=\"max-width: 800px; margin: 0 auto; margin-bottom: 20px; text-align: center;\"><a style=\"display: block; border: 1px solid #ccc; padding: 20px; max-width: 100%; margin: 0 auto;\" href=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2023\/12\/AtomCraft_Project_ElementalWeapons.zip\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1813\" style=\"display: block; margin: 0 auto;\" src=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/zip.png\" alt=\"zip\" width=\"80\" height=\"78\">AtomCraft_Project_ElementalWeapons.zip<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Elemental weapons provide a twist to combat in RPGs, by channelling the power of natural elements such as fire, ice,<\/p>\n","protected":false},"author":2,"featured_media":5384,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[5,7],"tags":[],"class_list":["post-4812","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-adx","category-tutorials"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/posts\/4812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/comments?post=4812"}],"version-history":[{"count":7,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/posts\/4812\/revisions"}],"predecessor-version":[{"id":5383,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/posts\/4812\/revisions\/5383"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/media\/5384"}],"wp:attachment":[{"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/media?parent=4812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/categories?post=4812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/tags?post=4812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}