{"id":146,"date":"2019-06-25T14:11:57","date_gmt":"2019-06-25T14:11:57","guid":{"rendered":"http:\/\/www.shmupcreator.com\/doc\/?docs=shmupcreator\/assets-and-art-creation\/animating-sprites"},"modified":"2024-07-24T08:56:54","modified_gmt":"2024-07-24T08:56:54","slug":"animating-sprites","status":"publish","type":"docs","link":"https:\/\/www.shmupcreator.com\/doc\/?docs=shmupcreator\/assets-and-art-creation\/animating-sprites","title":{"rendered":"Animating sprites"},"content":{"rendered":"<p>To animate sprites, you have to draw several frames and place them in one image. <br>It&#8217;s called a texture atlas, a texture that contains several images.<br>Your picture should be divided into cells, forming a grid, where each cell has the same dimension. A cell can be square or rectangular. Then you place your frame one by one, starting from the first cell and going from left to right and top to bottom.<br>You can divide your grid as you wish: you can have only one row, it doesn&#8217;t matter, as long as every cell has the same size.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1442 aligncenter\" src=\"http:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/06\/2D_enemy_ball.png\" alt=\"\" width=\"192\" height=\"128\"><\/p>\n<p>Then, you have to set the right numbers of rows and columns in the animation section of the objects to set the animation in the tool.<br>In the above example, there are 2 rows and 3 columns.<\/p>\n<p>In the SHMUP Creator, all the animations are looping, except for the explosions.<br><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1443 aligncenter\" src=\"http:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/06\/ball.gif\" alt=\"\" width=\"98\" height=\"98\"><\/p>\n\n\n<pre class=\"wp-block-preformatted\"><strong>Note:<\/strong> Animated explosions and particles should be saved in &gt;&gt; <strong>Assets\/Particles<\/strong>.<\/pre>\n\n\n<h3>PLAYER: how to set a <strong>bank animation<\/strong>:<\/h3>\n<p>You need to create a sprite sheet with an odd number of frames.<br data-rich-text-line-break=\"true\">The central frame should be the &#8220;default&#8221; frame, the frames on the left the banking to the left frames (or to the top, depending of the type of your game), and the frames on the right the banking on the right frames.<br><br data-rich-text-line-break=\"true\">Example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2061 size-full\" src=\"http:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/06\/bank_small_02.jpg\" alt=\"\" width=\"1280\" height=\"300\" srcset=\"https:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/06\/bank_small_02.jpg 1280w, https:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/06\/bank_small_02-300x70.jpg 300w, https:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/06\/bank_small_02-1024x240.jpg 1024w, https:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/06\/bank_small_02-768x180.jpg 768w, https:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/06\/bank_small_02-1200x281.jpg 1200w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><strong>In PLAYER\/ANIMATION tab:<\/strong><br>&gt;&gt; set the right number of columns<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2056\" src=\"http:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/06\/bank_player_animation_02.jpg\" alt=\"\" width=\"358\" height=\"212\" srcset=\"https:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/06\/bank_player_animation_02.jpg 358w, https:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/06\/bank_player_animation_02-300x178.jpg 300w\" sizes=\"auto, (max-width: 358px) 85vw, 358px\" \/><\/p>\n<p>In PLAYER\/SETTINGS tab<br>&gt;&gt; check &#8220;bank&#8221; and set the options for rolling, pitching and the speed<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2057 size-full\" src=\"http:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/06\/bank_player_settings_02.jpg\" alt=\"\" width=\"358\" height=\"547\" srcset=\"https:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/06\/bank_player_settings_02.jpg 358w, https:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/06\/bank_player_settings_02-196x300.jpg 196w\" sizes=\"auto, (max-width: 358px) 85vw, 358px\" \/><\/p>\n\n\n<pre class=\"wp-block-preformatted\"><strong>Note<\/strong>: there are a lot of great pixel art animation softwares:\n-<a href=\"https:\/\/www.piskelapp.com\">Piskel<\/a>\n-<a href=\"https:\/\/libresprite.github.io\">LibreSprite<\/a>\n-<a href=\"https:\/\/www.aseprite.org\/\">Aseprite<\/a> (Not free)<\/pre>\n","protected":false},"featured_media":0,"parent":139,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-146","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=\/wp\/v2\/docs\/146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=146"}],"version-history":[{"count":23,"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=\/wp\/v2\/docs\/146\/revisions"}],"predecessor-version":[{"id":2919,"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=\/wp\/v2\/docs\/146\/revisions\/2919"}],"up":[{"embeddable":true,"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=\/wp\/v2\/docs\/139"}],"next":[{"title":"3D creation and export","link":"https:\/\/www.shmupcreator.com\/doc\/?docs=shmupcreator\/assets-and-art-creation\/3d-creation-and-export","href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=\/wp\/v2\/docs\/869"}],"prev":[{"title":"Sprites creation and good practices","link":"https:\/\/www.shmupcreator.com\/doc\/?docs=shmupcreator\/assets-and-art-creation\/sprites-creation-and-export","href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=\/wp\/v2\/docs\/868"}],"wp:attachment":[{"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=146"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}