{"id":132,"date":"2019-06-25T14:09:19","date_gmt":"2019-06-25T14:09:19","guid":{"rendered":"http:\/\/www.shmupcreator.com\/doc\/?docs=shmupcreator\/making-a-game\/paths-and-waypoints"},"modified":"2022-03-13T11:57:48","modified_gmt":"2022-03-13T11:57:48","slug":"paths-and-waypoints","status":"publish","type":"docs","link":"https:\/\/www.shmupcreator.com\/doc\/?docs=shmupcreator\/making-a-game\/paths-and-waypoints","title":{"rendered":"Paths and waypoints"},"content":{"rendered":"<h3>WHATS ITS FOR:<\/h3>\n<p><strong>Enemy paths<\/strong> are the basis of your game: draw a path and the enemy will move! Paths also control other things, like the orientation of the enemy or can change their weapon at a certain position.<\/p>\n<h3>HOW IT WORKS:<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1141\" src=\"http:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2020\/01\/waypoints.jpg\" alt=\"\" width=\"544\" height=\"156\" srcset=\"https:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2020\/01\/waypoints.jpg 544w, https:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2020\/01\/waypoints-300x86.jpg 300w\" sizes=\"auto, (max-width: 544px) 85vw, 544px\" \/><\/p>\n<p><strong>WAYPOINTS<\/strong><br \/>\nA path connects a collection of points called <strong>waypoints<\/strong>.<br \/>\nClick on the <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1465\" src=\"http:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2022\/02\/newWayPoint.jpg\" alt=\"\" width=\"22\" height=\"22\" \/> <strong>Create waypoint tool<\/strong> button on the waypoint tab to start the Create waypoint tool, then press the <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1465\" src=\"http:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2022\/02\/newWayPoint.jpg\" alt=\"\" width=\"22\" height=\"22\" \/> button again to stop the Create waypoint tool. This tool will insert a new waypoint after the selected waypoint.<\/p>\n<p>You can also press the <strong>alt key<\/strong> and click on the left mouse button in the level to insert a new point.<\/p>\n<p>Each waypoint has a collection of properties (see the waypoints section of <a href=\"http:\/\/www.shmupcreator.com\/doc\/?docs=shmupcreator\/objects-and-entities\/enemies-and-waves\">enemy<\/a> and<a href=\"http:\/\/www.shmupcreator.com\/doc\/?docs=shmupcreator\/objects-and-entities\/camera\"> camera<\/a> to know more about them), like the travel speed, the direction of the enemy (does it orient itself to the path direction or does it orient to the player direction?) and so on.<\/p>\n<p><strong>INTERPOLATION<\/strong><br \/>\nMost of those properties are interpolated between two waypoints, which means that if the speed is 1 on the 1st waypoint and 10 on the second waypoints, the enemy will accelerate from speed 1 to speed 10 between those two points.<\/p>\n<p><strong>CLOSE PATH AND LOOP<\/strong><br \/>\nThere is also a <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-427\" src=\"http:\/\/www.shmupcreator.com\/doc\/wp-content\/uploads\/2019\/07\/checkbox.jpg\" alt=\"\" width=\"26\" height=\"26\" \/>\u00a0<strong>close path<\/strong> checkbox, which will connect the last waypoint to the first waypoint, creating a loop.<\/p>\n","protected":false},"featured_media":0,"parent":35,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-132","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=\/wp\/v2\/docs\/132","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=132"}],"version-history":[{"count":9,"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=\/wp\/v2\/docs\/132\/revisions"}],"predecessor-version":[{"id":1673,"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=\/wp\/v2\/docs\/132\/revisions\/1673"}],"up":[{"embeddable":true,"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=\/wp\/v2\/docs\/35"}],"next":[{"title":"Attached to the camera, attached to the world","link":"https:\/\/www.shmupcreator.com\/doc\/?docs=shmupcreator\/making-a-game\/attached-to-the-camera-attached-to-the-world","href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=\/wp\/v2\/docs\/131"}],"prev":[{"title":"Sharing properties","link":"https:\/\/www.shmupcreator.com\/doc\/?docs=shmupcreator\/making-a-game\/instancing-properties","href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=\/wp\/v2\/docs\/64"}],"wp:attachment":[{"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=132"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.shmupcreator.com\/doc\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}