<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	 xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>Levels &#8211; AnonyViet &#8211; English Version</title>
	<atom:link href="https://en.anonyviet.com/tag/levels/feed/" rel="self" type="application/rss+xml" />
	<link>https://en.anonyviet.com</link>
	<description>The most popular website for sharing information technology, computer networks, and security knowledge. Stay up to date with the hottest news and tips</description>
	<lastBuildDate>Mon, 13 Apr 2026 14:51:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.1</generator>

<image>
	<url>https://en.anonyviet.com/wp-content/uploads/2023/01/cropped-ico-logo-75x75-1.png</url>
	<title>Levels &#8211; AnonyViet &#8211; English Version</title>
	<link>https://en.anonyviet.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Complete set of AI training materials from the Ministry of Education at all levels (Elementary &#8211; High School)</title>
		<link>https://en.anonyviet.com/complete-set-of-ai-training-materials-from-the-ministry-of-education-at-all-levels-elementary-high-school/</link>
					<comments>https://en.anonyviet.com/complete-set-of-ai-training-materials-from-the-ministry-of-education-at-all-levels-elementary-high-school/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Mon, 13 Apr 2026 14:51:46 +0000</pubDate>
				<category><![CDATA[Knowledge]]></category>
		<category><![CDATA[Complete]]></category>
		<category><![CDATA[Education]]></category>
		<category><![CDATA[Elementary]]></category>
		<category><![CDATA[high]]></category>
		<category><![CDATA[Levels]]></category>
		<category><![CDATA[Materials]]></category>
		<category><![CDATA[Ministry]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[set]]></category>
		<category><![CDATA[Training]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=21817</guid>

					<description><![CDATA[AI training materials from the Ministry of Education is the key to helping teachers become more confident when teaching technology lessons. With rich resources, lesson preparation will become faster and more professional than ever. Let&#8217;s exploit this entire set of documents right away with AnonyViet. 📢 Join the channel Telegram belong to AnonyViet 👉 Go [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div id="ftwp-postcontent">
<p style="text-align: justify;"><strong>AI training materials from the Ministry of Education</strong> is the key to helping teachers become more confident when teaching technology lessons. With rich resources, lesson preparation will become faster and more professional than ever. Let&#8217;s exploit this entire set of documents right away with AnonyViet.</p>
<div class="av-telegram-box" style="margin:16px 0;">
<div style="border:1px solid #dbeafe; background:linear-gradient(135deg,#eff6ff 0%,#ecfeff 100%); border-radius:14px; padding:14px 16px; box-shadow:0 4px 14px rgba(0,0,0,.06); text-align:center;">
<p> <span style="display:inline-block; margin-right:4px;">📢</span> Join the channel <span style="color:#2563eb;">Telegram</span> belong to <span style="color:#0f766e;">AnonyViet</span></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietoffical" target="_blank" rel="noopener nofollow" style="display:inline-flex; align-items:center; justify-content:center; gap:8px; background:#229ED9; color:#fff; text-decoration:none; font-weight:700; font-size:14px; padding:10px 14px; border-radius:10px; box-shadow:0 4px 10px rgba(34,158,217,.25);"><br />
<span>👉 Go to Telegram AnonyViet</span><br />
</a></p>
<p>  Update new articles, cool tools and IT tips fastest</p>
</div>
</div>
<h2 id="ftoc-kham-pha-kho-tai-lieu-tap-huan-ai-tu-bo-giao-duc" class="ftwp-heading" style="text-align: justify;"><strong>Explore AI training materials from the Ministry of Education</strong></h2>
<p style="text-align: justify;">Bringing Artificial Intelligence into schools is a big step forward, helping students become familiar with technology early. Instead of teaching in the traditional way, teachers can use this set of materials to illustrate through visual images, helping students understand that computers can &#8220;learn&#8221; like humans through observation and practice.</p>
<p style="text-align: justify;">To help teachers easily visualize the difference between traditional teaching methods and AI applications, we have compiled the comparison table below:</p>
<table>
<tbody>
<tr>
<td style="text-align: center;"><b>Criteria</b></td>
<td style="text-align: center;"><b>Traditional method</b></td>
<td style="text-align: center;"><b>AI integration method</b></td>
</tr>
<tr>
<td style="text-align: center;"><span style="font-weight: 400;">Content</span></td>
<td style="text-align: center;"><span style="font-weight: 400;">Focus on textbook theory</span></td>
<td style="text-align: center;"><span style="font-weight: 400;">Combines hands-on and computational thinking</span></td>
</tr>
<tr>
<td style="text-align: center;"><span style="font-weight: 400;">Tools</span></td>
<td style="text-align: center;"><span style="font-weight: 400;">White chalk, blackboard, pictures</span></td>
<td style="text-align: center;"><span style="font-weight: 400;">Software, AI models, digital lesson plans</span></td>
</tr>
<tr>
<td style="text-align: center;"><span style="font-weight: 400;">Interact</span></td>
<td style="text-align: center;"><span style="font-weight: 400;">One-way from teacher to student</span></td>
<td style="text-align: center;"><span style="font-weight: 400;">Two-way, students explore on their own through examples</span></td>
</tr>
</tbody>
</table>
<h2 style="text-align: justify;"/>
<figure id="attachment_100015" aria-describedby="caption-attachment-100015" style="width: 600px" class="wp-caption aligncenter"><img post-id="21817" fifu-featured="1" fetchpriority="high" decoding="async" class="wp-image-100015 size-full" src="https://anonyviet.com/wp-content/uploads/2026/04/tai-lieu-tap-huan-ai-tu-bo-giao-duc-4.jpg" alt="Complete set of AI training materials from the Ministry of Education at all levels (Elementary &#8211; High School)" title="Complete set of AI training materials from the Ministry of Education at all levels (Elementary &#8211; High School)" width="600" height="212" title="Complete set of AI training materials from the Ministry of Education at all levels (Elementary - High School) 9" srcset="https://anonyviet.com/wp-content/uploads/2026/04/tai-lieu-tap-huan-ai-tu-bo-giao-duc-4.jpg 600w, https://anonyviet.com/wp-content/uploads/2026/04/tai-lieu-tap-huan-ai-tu-bo-giao-duc-4-300x106.jpg 300w" sizes="(max-width: 600px) 100vw, 600px"/><figcaption id="caption-attachment-100015" class="wp-caption-text">Explore AI training materials from the Ministry of Education</figcaption></figure>
<h2 id="ftoc-cach-tai-va-su-dung-tai-lieu-tap-huan-ai-tu-bo-giao-duc" class="ftwp-heading" style="text-align: justify;"><strong>How to download and use AI training materials from the Ministry of Education</strong></h2>
<p style="text-align: justify;">To start applying AI training materials from the Ministry of Education into their lessons, teachers can follow these simple steps:</p>
<p style="text-align: justify;"><strong>Step 1:</strong> Access the Google Drive link containing documents that have been shared publicly<a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fdrive.google.com%2Fdrive%2Ffolders%2F1YyEru05Hlf58Ss8J1_fFrv9G2iFvsYro" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';"><strong>  HERE.</strong></a></p>
<figure id="attachment_100012" aria-describedby="caption-attachment-100012" style="width: 600px" class="wp-caption aligncenter"><img decoding="async" class="wp-image-100012 size-full" src="https://anonyviet.com/wp-content/uploads/2026/04/tai-lieu-tap-huan-ai-tu-bo-giao-duc-1.jpg" alt="Access the Google Drive path containing the document" width="600" height="248" title="Complete set of AI training materials from the Ministry of Education at all levels (Elementary - High School) 10" srcset="https://anonyviet.com/wp-content/uploads/2026/04/tai-lieu-tap-huan-ai-tu-bo-giao-duc-1.jpg 600w, https://anonyviet.com/wp-content/uploads/2026/04/tai-lieu-tap-huan-ai-tu-bo-giao-duc-1-300x124.jpg 300w" sizes="(max-width: 600px) 100vw, 600px"/><figcaption id="caption-attachment-100012" class="wp-caption-text">Access the Google Drive path containing the document</figcaption></figure>
<p style="text-align: justify;"><strong>Step 2:</strong> Search the directory corresponding to the grade level or subject that the teacher is in charge of teaching.</p>
<p style="text-align: justify;"><strong>Step 3:</strong> Select sample lesson plan files to download to your personal computer for content editing.</p>
<ul>
<li style="text-align: justify;">Look through sample textbook PDF files to grasp the method of imparting knowledge to students.</li>
<li style="text-align: justify;">Use available lecture slides to present during class to increase vividness.</li>
</ul>
<figure id="attachment_100013" aria-describedby="caption-attachment-100013" style="width: 600px" class="wp-caption aligncenter"><img decoding="async" class="wp-image-100013 size-full" src="https://anonyviet.com/wp-content/uploads/2026/04/tai-lieu-tap-huan-ai-tu-bo-giao-duc-2.jpg" alt="Search the directory corresponding to the level or subject" width="600" height="298" title="Complete set of AI training materials from the Ministry of Education at all levels (Elementary - High School) 11" srcset="https://anonyviet.com/wp-content/uploads/2026/04/tai-lieu-tap-huan-ai-tu-bo-giao-duc-2.jpg 600w, https://anonyviet.com/wp-content/uploads/2026/04/tai-lieu-tap-huan-ai-tu-bo-giao-duc-2-300x149.jpg 300w, https://anonyviet.com/wp-content/uploads/2026/04/tai-lieu-tap-huan-ai-tu-bo-giao-duc-2-360x180.jpg 360w" sizes="(max-width: 600px) 100vw, 600px"/><figcaption id="caption-attachment-100013" class="wp-caption-text">Search the directory corresponding to the level or subject</figcaption></figure>
<p style="text-align: justify;">Using AI training materials from the Ministry of Education helps teachers save significant time drafting lesson plans. Instead of having to build your own from scratch, teachers can customize sample lesson plans to suit the level of students in their class. This is the highest quality resource available for teachers today.</p>
<figure id="attachment_100014" aria-describedby="caption-attachment-100014" style="width: 600px" class="wp-caption aligncenter"><img decoding="async" class="wp-image-100014 size-full" src="https://anonyviet.com/wp-content/uploads/2026/04/tai-lieu-tap-huan-ai-tu-bo-giao-duc-3.jpg" alt="How to download and use AI training materials from the Ministry of Education" width="600" height="400" title="Complete set of AI training materials from the Ministry of Education at all levels (Elementary - High School) 12" srcset="https://anonyviet.com/wp-content/uploads/2026/04/tai-lieu-tap-huan-ai-tu-bo-giao-duc-3.jpg 600w, https://anonyviet.com/wp-content/uploads/2026/04/tai-lieu-tap-huan-ai-tu-bo-giao-duc-3-300x200.jpg 300w" sizes="(max-width: 600px) 100vw, 600px"/><figcaption id="caption-attachment-100014" class="wp-caption-text">How to download and use AI training materials from the Ministry of Education</figcaption></figure>
<h2 id="ftoc-loi-ket" class="ftwp-heading" style="text-align: justify;"><strong>Conclusion</strong></h2>
<p style="text-align: justify;">Set <strong>AI training materials from the Ministry of Education</strong> It is truly an effective support tool for teachers in the digital age. Make the most of sample lesson plans to provide the best learning experience for your students. Thank you teachers for following and I wish you successful teaching hours.</p>
<h2 id="ftoc-cau-hoi-thuong-gap-qa" class="ftwp-heading" style="text-align: justify;"><strong>Frequently Asked Questions (Q&#038;A)</strong></h2>
<p style="text-align: justify;"><strong>1. Is this material suitable for elementary school teachers?</strong></p>
<p style="text-align: justify;">Yes, the kit provides complete lesson plans and sample books for both elementary, middle and high school levels.</p>
<p style="text-align: justify;"><strong>2. Can I edit content in lesson plan files?</strong></p>
<p style="text-align: justify;">It&#8217;s entirely possible, because sample lesson plans are provided as Word files for teachers to easily customize according to classroom realities.</p>
<p style="text-align: justify;"><strong>3. How to access this document repository?</strong></p>
<p style="text-align: justify;">Teachers just need to click on the Google Drive link shared in the article to view and download the necessary documents.</p>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/complete-set-of-ai-training-materials-from-the-ministry-of-education-at-all-levels-elementary-high-school/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2026/04/tai-lieu-tap-huan-ai-tu-bo-giao-duc-4.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>[Lập Trình Game] Lesson 7: Move between levels when completing a mission</title>
		<link>https://en.anonyviet.com/lap-trinh-game-lesson-7-move-between-levels-when-completing-a-mission/</link>
					<comments>https://en.anonyviet.com/lap-trinh-game-lesson-7-move-between-levels-when-completing-a-mission/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Thu, 02 Feb 2023 11:49:36 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[completing]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[lập]]></category>
		<category><![CDATA[Lesson]]></category>
		<category><![CDATA[Levels]]></category>
		<category><![CDATA[mission]]></category>
		<category><![CDATA[Move]]></category>
		<category><![CDATA[trình]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=8360</guid>

					<description><![CDATA[Continuing the series, today ad will continue part 7 which is moving between levels. Can be understood as moving back and forth to edit the senses. To learn about sence, please review from Lesson 0 of Game programming series with Godot. As for the level, do you guys play the game? mmorp then understand it [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div id="ftwp-postcontent">
<p><strong>Continuing the series, today ad will continue part 7 which is moving between levels.  Can be understood as moving back and forth to edit the senses.  To learn about sence, please review from Lesson 0 of <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2F%3Fs%3Dgodot" rel="noopener noreferrer" class="local-link">Game programming series with Godot</a>.  As for the level, do you guys play the game? <span style="color: #008000;">mmorp </span>then understand it is a level but in this it is a game screen.  For example, if you play argry bird after stage 1, you will see that stage 2 is the Level I mentioned here.  Without further ado, let&#8217;s get started.</strong></p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> of the <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2 id="ftoc-tao-sence-moi" class="ftwp-heading"><strong>Create New Sense</strong></h2>
<p>The first step is to create a new sense for yourself with the button &#8220;<strong>+</strong>” next to the sence tab <strong>World</strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage001xx.png" rel="noopener" class="local-link"><img decoding="async" class="aligncenter wp-image-18609 size-full" src="https://anonyviet.com/wp-content/uploads/2020/03/image001xx.png" alt="Move between levels" width="540" height="406" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image001xx.png 540w, https://anonyviet.com/wp-content/uploads/2020/03/image001xx-300x226.png 300w" sizes="(max-width: 540px) 100vw, 540px" title="[Lập Trình Game]  Lesson 7: Moving between levels when completing a mission 27"/></a></p>
<p>Okay like this:</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage002xx.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-18610 size-full" src="https://anonyviet.com/wp-content/uploads/2020/03/image002xx.jpg" alt="programming godot game through level" width="625" height="343" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image002xx.jpg 625w, https://anonyviet.com/wp-content/uploads/2020/03/image002xx-300x165.jpg 300w" sizes="auto, (max-width: 625px) 100vw, 625px" title="[Lập Trình Game]  Lesson 7: Move between levels when completing quest 28"/></a></p>
<p>Choose for yourself <strong>Other Node</strong> then press enter.Note select other node then press <strong>enter</strong> don&#8217;t press anything else. It will give you the black button</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage003xx.png" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18611" src="https://anonyviet.com/wp-content/uploads/2020/03/image003xx.png" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing quest 22" width="261" height="289" title="[Lập Trình Game]  Lesson 7: Move between levels when completing quests 29"/></a></p>
<p>And we&#8217;ll need to save <strong>Node Player</strong> and <strong>Node Tilemap</strong> about as <strong>.tscn </strong>to be able to put it into another sence without redoing it. And the like <strong>Node</strong> other like <strong>enemy</strong> nice <strong>trap</strong></p>
<p>By the following way:</p>
<p>You right click on <strong>Node Player And Node Tilemap </strong>Choose for yourself <strong>Save Branch As Sense</strong></p>
<p><strong><u>That means it will save the node you just selected as tscn and in this tscn you can put your node in any sence without doing another one.</u></strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage004xx.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-18612 size-full" src="https://anonyviet.com/wp-content/uploads/2020/03/image004xx.jpg" alt="Move between levels when completing missions" width="624" height="351" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image004xx.jpg 624w, https://anonyviet.com/wp-content/uploads/2020/03/image004xx-300x169.jpg 300w" sizes="auto, (max-width: 624px) 100vw, 624px" title="[Lập Trình Game]  Lesson 7: Move between levels when completing a mission 30"/></a></p>
<p>You can leave it anywhere.  But remember to create a folder containing files like this for compactness.</p>
<p>Here I will save it in the folder <strong>tscn</strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage005xx.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18591" src="https://anonyviet.com/wp-content/uploads/2020/03/image005xx.jpg" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing quest 23" width="624" height="342" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image005xx.jpg 624w, https://anonyviet.com/wp-content/uploads/2020/03/image005xx-300x164.jpg 300w" sizes="auto, (max-width: 624px) 100vw, 624px" title="[Lập Trình Game]  Lesson 7: Move between levels when completing quest 31"/></a></p>
<p>In the folder you will see there <strong>2 tscn</strong> just saved as <strong>Tilemap</strong> and <strong>Player</strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage006xx.png" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18592" src="https://anonyviet.com/wp-content/uploads/2020/03/image006xx.png" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing task 24" width="201" height="148" title="[Lập Trình Game]  Lesson 7: Move between levels when completing mission 32"/></a></p>
<p>And next is <strong>Import Tscn</strong> enter <strong>sense</strong></p>
<p>Choose the one in the picture:</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage007xx.png" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18593" src="https://anonyviet.com/wp-content/uploads/2020/03/image007xx.png" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing the mission 25" width="266" height="372" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image007xx.png 266w, https://anonyviet.com/wp-content/uploads/2020/03/image007xx-215x300.png 215w" sizes="auto, (max-width: 266px) 100vw, 266px" title="[Lập Trình Game]  Lesson 7: Move between levels when completing quest 33"/></a></p>
<p style="text-align: center;"><strong>==></strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage008xx.png" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18594" src="https://anonyviet.com/wp-content/uploads/2020/03/image008xx.png" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing missions 26" width="262" height="371" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image008xx.png 262w, https://anonyviet.com/wp-content/uploads/2020/03/image008xx-212x300.png 212w" sizes="auto, (max-width: 262px) 100vw, 262px" title="[Lập Trình Game]  Lesson 7: Move between levels when completing a mission 34"/></a></p>
<p>And here you will see there are 2-4 <strong>node</strong> It depends on your tscn. Mine has 3:</p>
<ul>
<li>1 is <strong>Player</strong>.</li>
<li>2 is <strong>TileMap</strong>.</li>
<li>3 Is Level 1 is <strong>World</strong></li>
</ul>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage009xx.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18595" src="https://anonyviet.com/wp-content/uploads/2020/03/image009xx.jpg" alt="[Lập Trình Game]  Lesson 7: Moving between levels when completing a mission 27" width="624" height="344" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image009xx.jpg 624w, https://anonyviet.com/wp-content/uploads/2020/03/image009xx-300x165.jpg 300w" sizes="auto, (max-width: 624px) 100vw, 624px" title="[Lập Trình Game]  Lesson 7: Move between levels when completing a mission 35"/></a></p>
<p>You guys Instance 2 is <strong>Player</strong> and <strong>TileMap</strong> come in</p>
<p>And you&#8217;ll see it&#8217;s like <strong>old sense</strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage010xx.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18596" src="https://anonyviet.com/wp-content/uploads/2020/03/image010xx.jpg" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing quest 28" width="624" height="306" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image010xx.jpg 624w, https://anonyviet.com/wp-content/uploads/2020/03/image010xx-300x147.jpg 300w" sizes="auto, (max-width: 624px) 100vw, 624px" title="[Lập Trình Game]  Lesson 7: Move between levels when completing mission 36"/></a></p>
<p><strong>Note: In tilemap you may not need to save it as tscn anymore, just create a tilemap node and then enter the tileset and design a new level, if you want this sence to be different</strong></p>
<p>Well, you guys like to save this sence 2 for yourself as level 2 and save it in a certain folder, mine is in the sence folder and Click <strong>Ctrl + WILL</strong> to save</p>
<p>And below is my level 2.  Next we will create an object that moves between levels</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage011xx.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18597" src="https://anonyviet.com/wp-content/uploads/2020/03/image011xx.jpg" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing quests 29" width="624" height="378" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image011xx.jpg 624w, https://anonyviet.com/wp-content/uploads/2020/03/image011xx-300x182.jpg 300w" sizes="auto, (max-width: 624px) 100vw, 624px" title="[Lập Trình Game]  Lesson 7: Move between levels when completing the mission 37"/></a></p>
<h2 id="ftoc-tao-object-di-chuyen-sence" class="ftwp-heading"><strong>Creating Sense Move Object</strong></h2>
<p>To move between levels you will need to create a Move Sense Object.  First, you create your own <strong>node area2D</strong> live <strong>sense 1</strong> Please</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage012xx.png" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18598" src="https://anonyviet.com/wp-content/uploads/2020/03/image012xx.png" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing a mission 30" width="480" height="309" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image012xx.png 480w, https://anonyviet.com/wp-content/uploads/2020/03/image012xx-300x193.png 300w" sizes="auto, (max-width: 480px) 100vw, 480px" title="[Lập Trình Game]  Lesson 7: Move between levels when completing mission 38"/></a></p>
<p>Add me 2 in Area 2D</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage013xx.png" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18599" src="https://anonyviet.com/wp-content/uploads/2020/03/image013xx.png" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing quest 31" width="248" height="172" title="[Lập Trình Game]  Lesson 7: Move between levels when completing mission 39"/></a></p>
<p>In the Sprite section, you put your photos in and you can find them online</p>
<p>And here is my picture:</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage014xx.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18600" src="https://anonyviet.com/wp-content/uploads/2020/03/image014xx.jpg" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing mission 32" width="624" height="329" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image014xx.jpg 624w, https://anonyviet.com/wp-content/uploads/2020/03/image014xx-300x158.jpg 300w" sizes="auto, (max-width: 624px) 100vw, 624px" title="[Lập Trình Game]  Lesson 7: Move between levels when completing a mission 40"/></a></p>
<p>After running the game</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage015xx.jpg" rel="noopener" class="local-link"><img alt="[Lập Trình Game] Lesson 7: Move between levels when completing a mission" title="[Lập Trình Game] Lesson 7: Move between levels when completing a mission" post-id="8360" fifu-featured="1" decoding="async" loading="lazy" class="aligncenter size-full wp-image-18601" src="https://anonyviet.com/wp-content/uploads/2020/03/image015xx.jpg" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing quest 33" width="624" height="388" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image015xx.jpg 624w, https://anonyviet.com/wp-content/uploads/2020/03/image015xx-300x187.jpg 300w" sizes="auto, (max-width: 624px) 100vw, 624px" title="[Lập Trình Game]  Lesson 7: Move between levels when completing quest 41"/></a></p>
<p>Next, you create yourself a new script in Area2D</p>
<p>Then the code is as follows</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage016xx.png" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18602" src="https://anonyviet.com/wp-content/uploads/2020/03/image016xx.png" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing a mission 34" width="501" height="223" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image016xx.png 501w, https://anonyviet.com/wp-content/uploads/2020/03/image016xx-300x134.png 300w" sizes="auto, (max-width: 501px) 100vw, 501px" title="[Lập Trình Game]  Lesson 7: Move between levels when completing quest 42"/></a></p>
<p>Here below:</p>
<p>Part<code> export(String,FILE,"*.tscn") var next_world</code> this is the part it will take this out of the node&#8217;s settings and you can put tscn in there for it to point to</p>
<p><code>get_overlapping_boides</code>  is a function that helps you check the bodies inside <strong>collection bodies</strong> enter <strong>collsion</strong> it will do something.</p>
<p><code>for body in boides</code>: for body in boides (just declared above) means that if a body is inside the boides it will execute the if statement below. this body is a command of this node, the body here is <strong>kinematicbody</strong> and <strong>staticbody</strong></p>
<p><code>if body.name == player: body.name</code>  ie body and then get its name if by Player it will execute the command below.  Well, the “Player” is the name of your Player node. If your Node player has any name, you must replace it with “Player” to be effective.</p>
<p><code>get_tree.change_sence</code>  this is an order of <strong>Godot</strong> help you move from <strong>sense</strong> this is <strong>sense</strong> other <strong>(next_world)</strong> is the function we declared above <strong>export</strong>.speak for easy understanding in <strong>Export</strong> it will allow you to give <strong>1 sense</strong> Go in and then below if <strong>player</strong> touch the <strong>Object Move Sense</strong> then it will move <strong>Player</strong> arrive <strong>sense</strong> in the section <strong>Export</strong></p>
<p>Next, you save it and return to the sence, you will see there<strong> Next World</strong> live <strong>Node Area2D</strong> Right side of the Place <strong>Script Variables.</strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage017xx.png" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18603" src="https://anonyviet.com/wp-content/uploads/2020/03/image017xx.png" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing a mission 35" width="209" height="316" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image017xx.png 209w, https://anonyviet.com/wp-content/uploads/2020/03/image017xx-198x300.png 198w" sizes="auto, (max-width: 209px) 100vw, 209px" title="[Lập Trình Game]  Lesson 7: Move between levels when completing quest 43"/></a></p>
<p>Next, you click on the folder next to next world and choose the second sence</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage018xx.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18604" src="https://anonyviet.com/wp-content/uploads/2020/03/image018xx.jpg" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing mission 36" width="624" height="331" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image018xx.jpg 624w, https://anonyviet.com/wp-content/uploads/2020/03/image018xx-300x159.jpg 300w" sizes="auto, (max-width: 624px) 100vw, 624px" title="[Lập Trình Game]  Lesson 7: Moving between levels when completing missions 44"/></a></p>
<p>And it will be</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage019xx.png" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18605" src="https://anonyviet.com/wp-content/uploads/2020/03/image019xx.png" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing the mission 37" width="195" height="97" title="[Lập Trình Game]  Lesson 7: Move between levels when completing tasks 45"/></a></p>
<p>Ah and we have to set collection for <strong>area2D</strong> Then the Player can move to another level</p>
<p>I have set it up and it can move to another level</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage020xx.png" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18606" src="https://anonyviet.com/wp-content/uploads/2020/03/image020xx.png" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing mission 38" width="246" height="207" title="[Lập Trình Game]  Lesson 7: Moving between levels when completing a mission 46"/></a></p>
<p>And if you want better, you can do the following:</p>
<p><strong>Set limit camera</strong> How much is it on the right, then adjust <strong>collsion</strong> of the <strong>sprite area2d</strong> behind the camera limit.  When the camera reaches the number you set it will no longer move and after you move behind the limit camera player will be moved.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage021xx.png" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18607" src="https://anonyviet.com/wp-content/uploads/2020/03/image021xx.png" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing mission 39" width="457" height="564" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image021xx.png 457w, https://anonyviet.com/wp-content/uploads/2020/03/image021xx-243x300.png 243w" sizes="auto, (max-width: 457px) 100vw, 457px" title="[Lập Trình Game]  Lesson 7: Move between levels when completing a mission 47"/></a></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fimage022xx.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-18608" src="https://anonyviet.com/wp-content/uploads/2020/03/image022xx.jpg" alt="[Lập Trình Game]  Lesson 7: Move between levels when completing a mission 40" width="624" height="381" srcset="https://anonyviet.com/wp-content/uploads/2020/03/image022xx.jpg 624w, https://anonyviet.com/wp-content/uploads/2020/03/image022xx-300x183.jpg 300w" sizes="auto, (max-width: 624px) 100vw, 624px" title="[Lập Trình Game]  Lesson 7: Moving between levels when completing a task 48"/></a></p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;18590&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (100 votes)    </p>
</p></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/lap-trinh-game-lesson-7-move-between-levels-when-completing-a-mission/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2020/03/image015xx.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>[Tạo 2D Platformer Game với Godot] Part 9: Moving between levels</title>
		<link>https://en.anonyviet.com/tao-2d-platformer-game-voi-godot-part-9-moving-between-levels/</link>
					<comments>https://en.anonyviet.com/tao-2d-platformer-game-voi-godot-part-9-moving-between-levels/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Fri, 27 Jan 2023 01:47:09 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Godot]]></category>
		<category><![CDATA[Levels]]></category>
		<category><![CDATA[moving]]></category>
		<category><![CDATA[Part]]></category>
		<category><![CDATA[Platformer]]></category>
		<category><![CDATA[tạo]]></category>
		<category><![CDATA[với]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=4505</guid>

					<description><![CDATA[In this part, I will show you how to be able to move between levels 1,2,3,etc when reaching the end of a level. Join the channel Telegram of the AnonyViet 👉 Link 👈 Create New Scene First, you create a new Scene with Area2D as the root node. Here, I use Area2D because I will [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div id="ftwp-postcontent">
<p>In this part, I will show you how to be able to move between levels 1,2,3,etc when reaching the end of a level.</p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> of the <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2 id="ftoc-tao-scene-moi" class="ftwp-heading">Create New Scene</h2>
<p><img decoding="async" class="aligncenter wp-image-36509 size-full" src="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-30-00.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels" width="299" height="121" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 34"/>First, you create a new Scene with Area2D as the root node.</p>
<p>Here, I use Area2D because I will create an area and when the PLAyer enters it will move to the next level.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36510 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-31-12.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 31" width="288" height="151" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 35"/></p>
<p>Done, then save it in the Scene folder.<img decoding="async" loading="lazy" class="size-full wp-image-36511 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-31-38.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 32" width="368" height="322" srcset="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-31-38.png 368w, https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-31-38-300x263.png 300w" sizes="auto, (max-width: 368px) 100vw, 368px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 36"/></p>
<p>Next, add the script to it.</p>
<p>The script includes the following:</p>
</p>
<pre class="EnlighterJSRAW" data-enlighter-language="python">extends Area2D&#13;
&#13;
&#13;
export (String,FILE) var LevelKeTiep&#13;
&#13;
&#13;
func _on_KhuVucDiChuyen_body_entered(body):&#13;
    if body.name == "Player":&#13;
        get_tree().change_scene(LevelKeTiep)</pre>
<p>I declare a variable and this variable is special where I use it <strong>export</strong>(this is the command that will make the variable appear outside the Inspector so it can be easily edited)</p>
</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36512 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-47-13.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 33" width="275" height="96" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 37"/>I add (String,FILE) behind to be able to select files from outside the Inspector.</p>
<p>You can find more documentation here: <a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fdocs.godotengine.org%2Fen%2Fstable%2Fgetting_started%2Fscripting%2Fgdscript%2Fgdscript_exports.html" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">GDScript exports </a></p>
<p>As for the function below, you have to connect signal to appear.</p>
<p>if body.name == “Player” is that I check that if the Body comes in and the name is Player (name of the character scene that you and I created), it will move to the Level assigned to the above variable.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36513 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-48-24.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 34" width="348" height="115" srcset="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-48-24.png 348w, https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-48-24-300x99.png 300w" sizes="auto, (max-width: 348px) 100vw, 348px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 38"/></p>
<p>You click on Area2D</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36518 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-50-53.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 35" width="281" height="253" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 39"/></p>
<p>Through the Node tab, click 2 and click on the enter body (here I use the body entered because the Player is a KinematicBody2D, so I will use the signal to determine when a body enters Area2D)</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36515 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-49-01.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 36" width="588" height="509" srcset="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-49-01.png 588w, https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-49-01-300x260.png 300w" sizes="auto, (max-width: 588px) 100vw, 588px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 40"/></p>
<p>The table that appears, select Area2D and then click Connect.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36516 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-49-11.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 37" width="448" height="126" srcset="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-49-11.png 448w, https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-49-11-300x84.png 300w" sizes="auto, (max-width: 448px) 100vw, 448px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 41"/> <img decoding="async" loading="lazy" class="size-full wp-image-36517 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-49-19.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 38" width="314" height="79" srcset="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-49-19.png 314w, https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-49-19-300x75.png 300w" sizes="auto, (max-width: 314px) 100vw, 314px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 42"/></p>
<p>You can know that the signal has been connected successfully by looking at the two symbols in the two pictures above.</p>
<h3 id="ftoc-level-moi" class="ftwp-heading">New Level</h3>
<p>After you&#8217;re done, create yourself a new level similar to how you create a Scene Map.<img decoding="async" loading="lazy" class="size-full wp-image-36527 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-57-21.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 39" width="288" height="80" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 43"/></p>
</p>
<p>After creating a new 2D node, rename it to map2.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36528 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-57-35.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 40" width="368" height="289" srcset="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-57-35.png 368w, https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-57-35-300x236.png 300w" sizes="auto, (max-width: 368px) 100vw, 368px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 44"/></p>
<p>And instead of redoing the tilemap you can go to the first map to copy it.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36529 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-57-46.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 41" width="353" height="233" srcset="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-57-46.png 353w, https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-57-46-300x198.png 300w" sizes="auto, (max-width: 353px) 100vw, 353px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 45"/></p>
<p>Go to map 2 and paste it out.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36530 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-57-59.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 42" width="370" height="211" srcset="https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-57-59.png 370w, https://anonyviet.com/wp-content/uploads/2021/11/12-11-2021-11-57-59-300x171.png 300w" sizes="auto, (max-width: 370px) 100vw, 370px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 46"/></p>
<p>After pasting, we get the same tilemap as the first Map and you just need to adjust it<img decoding="async" loading="lazy" class="size-full wp-image-36531 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-00-03.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 43" width="340" height="213" srcset="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-00-03.png 340w, https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-00-03-300x188.png 300w" sizes="auto, (max-width: 340px) 100vw, 340px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 47"/></p>
<p>My Map 2 after editing.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36543 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-08-18.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 44" width="311" height="165" srcset="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-08-18.png 311w, https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-08-18-300x159.png 300w" sizes="auto, (max-width: 311px) 100vw, 311px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 48"/></p>
<p>Add Player and Background like Map 1, copy it and you&#8217;re done.</p>
<h3 id="ftoc-instance-khu-vuc-dich-chuyen" class="ftwp-heading">Instance teleportation area</h3>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36532 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-01-21.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 45" width="517" height="212" srcset="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-01-21.png 517w, https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-01-21-300x123.png 300w" sizes="auto, (max-width: 517px) 100vw, 517px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 49"/></p>
<p>You Instance node has just moved to Map1 <img decoding="async" loading="lazy" class="size-full wp-image-36533 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-01-33.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 46" width="435" height="400" srcset="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-01-33.png 435w, https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-01-33-300x276.png 300w" sizes="auto, (max-width: 435px) 100vw, 435px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 50"/></p>
<p>Right-click and select editable children to edit it.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36534 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-01-45.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 47" width="303" height="96" srcset="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-01-45.png 303w, https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-01-45-300x95.png 300w" sizes="auto, (max-width: 303px) 100vw, 303px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 51"/></p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36535 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-01-55.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 48" width="279" height="213" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 52"/></p>
</p>
<p>Select CollisionShape2D and select its shape.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36536 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-02-10.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 49" width="329" height="272" srcset="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-02-10.png 329w, https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-02-10-300x248.png 300w" sizes="auto, (max-width: 329px) 100vw, 329px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 53"/></p>
</p>
<p>After selecting the shape, it will appear like this.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36538 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-02-44.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 50" width="547" height="338" srcset="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-02-44.png 547w, https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-02-44-300x185.png 300w" sizes="auto, (max-width: 547px) 100vw, 547px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 54"/></p>
<p>And you drag it to the place where we need to change the level by clicking on the Area and clicking the move icon on the toolbar, but don&#8217;t drag the CollisionShape2D away.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36539 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-03-27.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 51" width="618" height="211" srcset="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-03-27.png 618w, https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-03-27-300x102.png 300w" sizes="auto, (max-width: 618px) 100vw, 618px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 55"/></p>
<p>I have moved to the position I want and I edited the CollisionShape2D so that it is reasonable.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36540 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-06-44.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 52" width="272" height="149" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 56"/></p>
<p>You won&#8217;t be able to move yet because you haven&#8217;t told it which scene you want to move through, so in KhuVucDichChuyen click on the folder icon.<img decoding="async" loading="lazy" class="size-full wp-image-36541 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-07-32.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 53" width="496" height="208" srcset="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-07-32.png 496w, https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-07-32-300x126.png 300w" sizes="auto, (max-width: 496px) 100vw, 496px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 57"/> <img decoding="async" loading="lazy" class="size-full wp-image-36542 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-07-41.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 54" width="343" height="164" srcset="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-07-41.png 343w, https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-07-41-300x143.png 300w" sizes="auto, (max-width: 343px) 100vw, 343px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 58"/><br /><img decoding="async" loading="lazy" class="size-full wp-image-36544 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-08-41.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 55" width="469" height="492" srcset="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-08-41.png 469w, https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-08-41-286x300.png 286w" sizes="auto, (max-width: 469px) 100vw, 469px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 59"/></p>
<p>Find and select Map2 then click Open.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-36545 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-10-21.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 56" width="276" height="118" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 60"/></p>
<p>Once done, Map2 has been added to the LevelKeTiep variable<img decoding="async" loading="lazy" class="size-full wp-image-36546 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-11-11.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 57" width="383" height="301" srcset="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-11-11.png 383w, https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-11-11-300x236.png 300w" sizes="auto, (max-width: 383px) 100vw, 383px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 61"/></p>
<p><img alt="[Tạo 2D Platformer Game với Godot] Part 9: Moving between levels" title="[Tạo 2D Platformer Game với Godot] Part 9: Moving between levels" post-id="4505" fifu-featured="1" decoding="async" loading="lazy" class="size-full wp-image-36547 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-15-46.png" alt="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 58" width="533" height="321" srcset="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-15-46.png 533w, https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-15-46-300x181.png 300w" sizes="auto, (max-width: 533px) 100vw, 533px" title="[Tạo 2D Platformer Game với Godot]  Part 9: Moving between levels 62"/></p>
<p>Above, when I enter, I will be transferred to Map2.</p>
<p>Here, you can apply many ways to make the most of it, such as:</p>
<ul>
<li>Set camera limit in front of the moving area</li>
<li>Add Sprite in Scene KhuVucDiChuyen for easy identification.</li>
</ul>
<h2 id="ftoc-tong-ket" class="ftwp-heading">summary</h2>
<p>In this section, I have shown you how to move between levels together and depending on your creativity and understanding, you can design many other things.</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;36508&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (100 votes)    </p>
</p></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/tao-2d-platformer-game-voi-godot-part-9-moving-between-levels/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2021/11/13-11-2021-12-15-46.png" medium="image"></media:content>
            	</item>
		<item>
		<title>[Tạo 2D Platformer Game với Godot] Part 25: Creating Menus When Levels Are Out</title>
		<link>https://en.anonyviet.com/tao-2d-platformer-game-voi-godot-part-25-creating-menus-when-levels-are-out/</link>
					<comments>https://en.anonyviet.com/tao-2d-platformer-game-voi-godot-part-25-creating-menus-when-levels-are-out/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Thu, 26 Jan 2023 14:29:40 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[creating]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Godot]]></category>
		<category><![CDATA[Levels]]></category>
		<category><![CDATA[Menus]]></category>
		<category><![CDATA[Part]]></category>
		<category><![CDATA[Platformer]]></category>
		<category><![CDATA[tạo]]></category>
		<category><![CDATA[với]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=4129</guid>

					<description><![CDATA[In this part, I will show you how to create a menu when you finish playing a level and it will be able to move to the next level, play again and return to the Level Map menu. Join the channel Telegram of the AnonyViet 👉 Link 👈 Copy Scene Then instead of having to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div id="ftwp-postcontent">
<p>In this part, I will show you how to create a menu when you finish playing a level and it will be able to move to the next level, play again and return to the Level Map menu.</p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> of the <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<h3 id="ftoc-copy-scene" class="ftwp-heading">Copy Scene</h3>
<p>Then instead of having to recreate it from scratch, you can duplicate a new scene from the scene pause menu.</p>
<p><img decoding="async" class="aligncenter wp-image-37366 size-medium" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-35-56-300x157.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Creating Menus When Levels Are Out" width="300" height="157" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-35-56-300x157.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-35-56.png 379w" sizes="(max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 19 is over"/></p>
<p>You find the pause menu in the filesystem right click and click duplicate</p>
<p style="text-align: center;"><img decoding="async" loading="lazy" class="size-medium wp-image-37367 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-36-15-300x132.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 16 is over" width="300" height="132" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-36-15-300x132.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-36-15.png 312w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 20 is over"/></p>
<p style="text-align: center;"><img decoding="async" loading="lazy" class="size-medium wp-image-37368 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-36-50-300x125.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 17 is over" width="300" height="125" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-36-50-300x125.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-36-50.png 306w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 21 is over"/></p>
</p>
<p>I will rename it EndLevelMenu<br /><img decoding="async" loading="lazy" class="size-medium wp-image-37370 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-38-38-295x300.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 18 is over" width="295" height="300" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-38-38-295x300.png 295w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-38-38-75x75.png 75w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-38-38.png 329w" sizes="auto, (max-width: 295px) 100vw, 295px" title="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 22 is over"/></p>
</p>
<p>Then you delete the other nodes and leave them as shown, I changed the name NutTepTuc to LevelKeTiep</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-37376 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-47-15.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 19 is over" width="282" height="247" title="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 23 is over"/></p>
</p>
<p>Edit text in TieuDe<br /><img decoding="async" loading="lazy" class="size-medium wp-image-37371 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-38-58-300x78.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 20 is over" width="300" height="78" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-38-58-300x78.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-38-58.png 360w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 24 is over"/></p>
<p>You will clear the old script by pressing the button with the paper that has an x<img decoding="async" loading="lazy" class="size-medium wp-image-37372 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-39-41-300x65.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 21 is over" width="300" height="65" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-39-41-300x65.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-39-41-350x76.png 350w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-39-41.png 352w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 25 is over"/> <img decoding="async" loading="lazy" class="size-medium wp-image-37373 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-39-50-300x267.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 22 is over" width="300" height="267" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-39-50-300x267.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-39-50.png 361w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 26 is over"/></p>
<p>Then create a new one.<img decoding="async" loading="lazy" class="size-medium wp-image-37374 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-40-15-157x300.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 23 is over" width="157" height="300" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-40-15-157x300.png 157w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-40-15.png 292w" sizes="auto, (max-width: 157px) 100vw, 157px" title="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 27 is over"/></p>
<p>Then 3 buttons, you disconnect because it is connecting to the old script.</p>
<p><img decoding="async" loading="lazy" class="size-medium wp-image-37375 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-46-34-300x223.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 24 is over" width="300" height="223" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-46-34-300x223.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-46-34.png 337w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 28 is over"/></p>
<p>Then reconnect 3 new ones.</p>
<p><img decoding="async" loading="lazy" class="size-medium wp-image-37377 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-52-50-295x300.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 25 is over" width="295" height="300" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-52-50-295x300.png 295w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-52-50-75x75.png 75w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-52-50.png 322w" sizes="auto, (max-width: 295px) 100vw, 295px" title="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 29 is over"/></p>
<p>Then Instance EndLevelMenu to Map.</p>
<p>Then you remember to hide the EndLevelMenu that belongs to the Control Node type.</p>
<h3 id="ftoc-script" class="ftwp-heading">Script</h3>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">extends CanvasLayer&#13;
&#13;
&#13;
&#13;
onready var level = get_parent().get_node("KhuVucDiChuyen")&#13;
&#13;
func _on_NutLevelKeTiep_pressed():&#13;
    get_tree().paused = false&#13;
    get_tree().change_scene(level.LevelKeTiep)&#13;
    pass # Replace with function body.&#13;
&#13;
func _on_NutChoiLai_pressed():&#13;
    get_tree().paused = false&#13;
    get_tree().reload_current_scene()&#13;
    print("choi lai")&#13;
    pass # Replace with function body.&#13;
&#13;
&#13;
func _on_NutVeMenu_pressed():&#13;
    get_tree().paused = false&#13;
    get_tree().change_scene("res://Scences/Map/LevelMap.tscn")&#13;
    pass # Replace with function body.&#13;
</pre>
<p>Here is the code of the EndLevelMenu script.</p>
<p>2 signals of the replay button and the menu will remain the same.</p>
<p>For LevelKeTiep to save time instead of having to manually set it up to see which level it moves to the next level, I&#8217;ll take it.  At the KhuVucDi Chuyen node, I have created a variable called LevelKeTiep and it carries the data of the next scene, so I will call that variable instead of doing it manually.</p>
<p><img decoding="async" loading="lazy" class="size-medium wp-image-37378 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-57-26-280x300.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 26 is over" width="280" height="300" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-57-26-280x300.png 280w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-10-57-26.png 314w" sizes="auto, (max-width: 280px) 100vw, 280px" title="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 30 is over"/></p>
<p><code class="EnlighterJSRAW" data-enlighter-language="generic">onready var level = get_parent().get_node("KhuVucDiChuyen")</code>: is that I declare it and assign it with the parent node of the EndLevelMenu (as shown in the picture) and from that parent node I can access the KhuVucDi Chuyen node to get the data of the LevelKeTiep variable.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">extends Area2D&#13;
&#13;
&#13;
export (String,FILE) var LevelKeTiep&#13;
onready var endlevelmenu = get_parent().get_node("EndLevelMenu")&#13;
&#13;
func _on_KhuVucDiChuyen_body_entered(body):&#13;
    if body.name == "Player":&#13;
#		get_tree().change_scene(LevelKeTiep)&#13;
        endlevelmenu.get_node("EndLevelMenu").show()&#13;
        get_tree().paused = true&#13;
</pre>
<p>In the script of KhuVucDIChuyen, I changed it a little bit.</p>
<p>Here, instead of moving to the next level as usual, I will show it the EndLevelMenu and then stop the tree like in the pausemenu.</p>
<p>If you wonder why I get_node() 2 EndLevelMenu, then look at the picture below.<img decoding="async" loading="lazy" class="size-medium wp-image-37380 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-07-38-300x61.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 27 is over" width="300" height="61" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-07-38-300x61.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-07-38.png 329w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 31 is over"/></p>
<p>I call 2 EndLevelMenu because I have 2 nodes :).</p>
<p><img alt="[Tạo 2D Platformer Game với Godot] Part 25: Creating Menus When Levels Are Out" title="[Tạo 2D Platformer Game với Godot] Part 25: Creating Menus When Levels Are Out" post-id="4129" fifu-featured="1" decoding="async" loading="lazy" class="size-full wp-image-37381 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-13-02.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 28 is over" width="218" height="220" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-13-02.png 218w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-13-02-150x150.png 150w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-13-02-75x75.png 75w" sizes="auto, (max-width: 218px) 100vw, 218px" title="[Tạo 2D Platformer Game với Godot]  Part 25: Create a Menu when Level 32 is over"/></p>
<p>And here are my results</p>
<h2 id="ftoc-tong-ket" class="ftwp-heading">Summary</h2>
<p>In the next part, I will show you how to calculate the score after collecting the coins and when you go out of the LevelMap you will get the number of stars corresponding to the number of points.</p>
</p>
</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;37363&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (100 votes)    </p>
</p></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/tao-2d-platformer-game-voi-godot-part-25-creating-menus-when-levels-are-out/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-13-02.png" medium="image"></media:content>
            	</item>
		<item>
		<title>[Tạo 2D Platformer Game với Godot] Part 27: Unlocking Levels</title>
		<link>https://en.anonyviet.com/tao-2d-platformer-game-voi-godot-part-27-unlocking-levels/</link>
					<comments>https://en.anonyviet.com/tao-2d-platformer-game-voi-godot-part-27-unlocking-levels/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Thu, 26 Jan 2023 11:59:00 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Godot]]></category>
		<category><![CDATA[Levels]]></category>
		<category><![CDATA[Part]]></category>
		<category><![CDATA[Platformer]]></category>
		<category><![CDATA[tạo]]></category>
		<category><![CDATA[Unlocking]]></category>
		<category><![CDATA[với]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=4011</guid>

					<description><![CDATA[In this section, I will show you how to unlock the next level after completing the previous level. Join the channel Telegram of the AnonyViet 👉 Link 👈 It&#8217;s not that you like to click on any level to play that level. Unlock levels Algorithm For this part, I will have the following algorithm: + [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div id="ftwp-postcontent">
<p>In this section, I will show you how to unlock the next level after completing the previous level.</p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> of the <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<p>It&#8217;s not that you like to click on any level to play that level.</p>
<h2 id="ftoc-unlock-level" class="ftwp-heading">Unlock levels</h2>
<h3 id="ftoc-thuat-toan" class="ftwp-heading">Algorithm</h3>
<p>For this part, I will have the following algorithm:</p>
<p>+ I will add a variable in PlayerData to store the data of which map has been unlocked, with the structure as below:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">var Unlocked_map = {&#13;
    "Map1": false,&#13;
    "Map2":false,&#13;
    "Map3":false,&#13;
}</pre>
<p>+ Then in KhuVucDiChuyen after the Player has gone there ie won the game, then I will set the Map I am playing in the Unlocked_map variable to true</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">func _on_KhuVucDiChuyen_body_entered(body):&#13;
        PlayerData.Unlocked_map[get_parent().name] = true&#13;
</pre>
<p>+ Then, in the Level scene, I will check if I click on that Level and that Level if it is Map1, it will play Map1 because this is the first map I need to play.</p>
<p>+ Then, if it&#8217;s not Map1, that means you&#8217;ve clicked on Level 2 or higher and then I check if the previous Map that you clicked on has been completed, I will switch to playing that Map.</p>
<p>For example: If I haven&#8217;t played Map1, then Unlocked_map[“Map1”] is = false, I click on Level 2 and then Level2 checks if Unlocked_map[“Map1”] is = false then you have not completed it and can not play level2 and vice versa.</p>
<h3 id="ftoc-playerdata" class="ftwp-heading">PlayerData</h3>
</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">extends Node&#13;
&#13;
&#13;
var diemso = {&#13;
    "Map1": 0,&#13;
    "Map2":0,&#13;
    "Map3": 0,&#13;
}&#13;
var Unlocked_map = {&#13;
    "Map1": false,&#13;
    "Map2":false,&#13;
    "Map3":false,&#13;
}&#13;
&#13;
&#13;
</pre>
<p>I added a dictionary containing the data of unlocked maps.</p>
<h3 id="ftoc-khuvucdichuyen" class="ftwp-heading">AreaVucDiTrans</h3>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">extends Area2D&#13;
&#13;
&#13;
export (String,FILE) var LevelKeTiep&#13;
onready var endlevelmenu = get_parent().get_node("EndLevelMenu")&#13;
&#13;
func _on_KhuVucDiChuyen_body_entered(body):&#13;
    if body.name == "Player":&#13;
        endlevelmenu.get_node("EndLevelMenu").show()	&#13;
        get_tree().paused = true&#13;
        PlayerData.Unlocked_map[get_parent().name] = true&#13;
</pre>
<p>Moving area, I put 1 more line at the end.</p>
<p>And if you notice in the previous section, I have a few lines of code to add scores, but to add scores to PlayerData, it has to press 1 of 2 buttons.  So, what if the player just went in and the menu won the game out?  Definitely have to start over again.</p>
<p>+ So I will put a small exercise here is to transfer the line of code to add scores to PlayerData in EndLevelMap through KhuVucDiChuyen.</p>
<h3 id="ftoc-level-scene" class="ftwp-heading">Level Scene</h3>
<p>At the Scene level, I just added the code to the Hinhtron_pressed() function:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">func _on_HinhTron_pressed():&#13;
    var level_truocdo = int(Level) - 1&#13;
    if MapName != "Map1":&#13;
        if PlayerData.Unlocked_map["Map"+ str(level_truocdo)] == true :&#13;
            get_tree().change_scene(Scene)&#13;
    else: &#13;
        get_tree().change_scene(Scene)&#13;
</pre>
<p>I create one more variable level_truocdo and I add int() at Level because the Level variable is being declared as String if you don&#8217;t add int, it will be String &#8211; Integer and cause an error.</p>
<h3 id="ftoc-ket-qua" class="ftwp-heading">Result</h3>
<p><img alt="[Tạo 2D Platformer Game với Godot] Part 27: Unlocking Levels" title="[Tạo 2D Platformer Game với Godot] Part 27: Unlocking Levels" post-id="4011" fifu-featured="1" decoding="async" class="aligncenter wp-image-37406 size-full" src="https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-17-23.png" alt="[Tạo 2D Platformer Game với Godot]  Part 27: Unlocking Levels" width="287" height="208" srcset="https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-17-23.png 287w, https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-17-23-120x86.png 120w" sizes="(max-width: 287px) 100vw, 287px" title="[Tạo 2D Platformer Game với Godot]  Part 27: Unlock level 6"/></p>
<p>Now if you run the game and click on the level you will see that it doesn&#8217;t go to the level 2 scene anymore, but has to complete the level 1.</p>
<p>Because of this, I don&#8217;t know what kind of picture I should get for you to see, so please read it @@.</p>
<h2 id="ftoc-tong-ket" class="ftwp-heading">Summary</h2>
<p>In this section, I have shown you how to be able to add the level unlock feature.  In the next part, the sound will be added.</p>
</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;37422&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (100 votes)    </p>
</p></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/tao-2d-platformer-game-voi-godot-part-27-unlocking-levels/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-17-23.png" medium="image"></media:content>
            	</item>
	</channel>
</rss>
