<?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>jumping &#8211; AnonyViet &#8211; English Version</title>
	<atom:link href="https://en.anonyviet.com/tag/jumping/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>Sat, 27 Apr 2024 09:43:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>

<image>
	<url>https://en.anonyviet.com/wp-content/uploads/2023/01/cropped-ico-logo-75x75-1.png</url>
	<title>jumping &#8211; AnonyViet &#8211; English Version</title>
	<link>https://en.anonyviet.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Instructions for fixing table jumping errors in Word</title>
		<link>https://en.anonyviet.com/instructions-for-fixing-table-jumping-errors-in-word/</link>
					<comments>https://en.anonyviet.com/instructions-for-fixing-table-jumping-errors-in-word/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Sat, 27 Apr 2024 09:43:51 +0000</pubDate>
				<category><![CDATA[Office]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[fixing]]></category>
		<category><![CDATA[Instructions]]></category>
		<category><![CDATA[jumping]]></category>
		<category><![CDATA[Table]]></category>
		<category><![CDATA[word]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=15443</guid>

					<description><![CDATA[How to fix page jumping table error in Word is one of the necessary skills for those who regularly work with documents on computers. So what is the cause of this error and how to fix it? Let&#39;s find out the answer through the following article! Join the channel Telegram belong to AnonyViet 👉 Link [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div id="ftwp-postcontent">
<p><strong>How to fix page jumping table error in Word</strong> is one of the necessary skills for those who regularly work with documents on computers.  So what is the cause of this error and how to fix it?  Let&#39;s find out the answer through the following article!</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> belong to <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%2Fanonyvietoffical" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2 id="ftoc-loi-bang-bi-nhay-trang-trong-word-la-gi" class="ftwp-heading"><strong>What is the table jumping page error in Word?</strong></h2>
<p>Error in page jumping table <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Ftu-dong-chuyen-van-ban-vao-bang-trong-word%2F" class="local-link" rel="noopener">Word</a> is an error that occurs when you insert a table into the document, but see it automatically jump to the new page, even though the old page still has a lot of space.  The cause of this error may be because you copied the table from somewhere else and pasted it into the document, or because you have set the table rows to break across pages.</p>
<figure id="attachment_48885" aria-describedby="caption-attachment-48885" style="width: 800px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-48885 size-full" src="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-4.jpg" alt="How to fix page jumping table error in Word" width="800" height="430" srcset="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-4.jpg 800w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-4-300x161.jpg 300w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-4-768x413.jpg 768w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-4-750x403.jpg 750w" sizes="auto, (max-width: 800px) 100vw, 800px"><figcaption id="caption-attachment-48885" class="wp-caption-text">Page jumping table error in Word</figcaption></figure>
<h2 id="ftoc-cach-sua-loi-bang-bi-nhay-trang-trong-word" class="ftwp-heading"><strong>How to fix page jumping table error in Word</strong></h2>
<p>To fix this error, you can follow these steps:</p>
<p><strong>Step 1:</strong> Open the Word file with the page jumping table, then right-click on the table and select “Table Properties”.</p>
<figure id="attachment_48882" aria-describedby="caption-attachment-48882" style="width: 800px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-48882 size-full" src="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-1.jpg" alt="How to fix page jumping table error in Word" width="800" height="450" srcset="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-1.jpg 800w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-1-300x169.jpg 300w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-1-768x432.jpg 768w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-1-750x422.jpg 750w" sizes="auto, (max-width: 800px) 100vw, 800px"><figcaption id="caption-attachment-48882" class="wp-caption-text">Right click on the table and select “Table Properties”.</figcaption></figure>
<p><strong>Step 2:</strong> Click the Row tab in the window that appears.</p>
<figure id="attachment_48883" aria-describedby="caption-attachment-48883" style="width: 800px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-48883 size-full" src="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-2.jpg" alt="How to fix page jumping table error in Word" width="800" height="450" srcset="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-2.jpg 800w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-2-300x169.jpg 300w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-2-768x432.jpg 768w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-2-750x422.jpg 750w" sizes="auto, (max-width: 800px) 100vw, 800px"><figcaption id="caption-attachment-48883" class="wp-caption-text">Click the Row tab</figcaption></figure>
<p><strong>Step 3:</strong> Uncheck the box &#8220;Allow row to break across pages&#8221;, then click OK to complete.</p>
<figure id="attachment_48884" aria-describedby="caption-attachment-48884" style="width: 800px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-48884 size-full" src="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-3.jpg" alt="How to fix page jumping table error in Word" width="800" height="450" srcset="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-3.jpg 800w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-3-300x169.jpg 300w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-3-768x432.jpg 768w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-3-750x422.jpg 750w" sizes="auto, (max-width: 800px) 100vw, 800px"><figcaption id="caption-attachment-48884" class="wp-caption-text">Uncheck the box &#8220;Allow row to break across pages&#8221;, then click OK</figcaption></figure>
<p>After completing the above steps, you will see that your table no longer jumps pages.  You can change the position of the table in the text as you wish without worrying about affecting the structure of the document.</p>
<h2 id="ftoc-loi-ket" class="ftwp-heading"><strong>Epilogue</strong></h2>
<p>Through this article, you already know <strong>How to fix page jumping table error in Word</strong> easily and quickly.  If you do not correct this error promptly, it will make your document lose its professionalism and neatness.  Wishing you a successful application!</p>
</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload='{"align":"right","id":"48880","slug":"default","valign":"bottom","ignore":"","reference":"auto","class":"","count":"0","legendonly":"","readonly":"","score":"0","starsonly":"","best":"5","gap":"5","greet":"\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post","legend":"B\u00e0i vi\u1ebft \u0111\u1ea1t: 0\/5 - (0 b\u00ecnh ch\u1ecdn)","size":"24","title":"H\u01b0\u1edbng d\u1eabn s\u1eeda l\u1ed7i b\u1ea3ng (Table) b\u1ecb nh\u1ea3y trang trong Word","width":"0","_legend":"B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})","font_factor":"1.25"}'>
<p> <span class="kksr-muted">Rate this post</span></p>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/instructions-for-fixing-table-jumping-errors-in-word/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2024/03/cach-kich-hoat-gemini-developer-mode.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>How to fix page jumping table error in Word</title>
		<link>https://en.anonyviet.com/how-to-fix-page-jumping-table-error-in-word/</link>
					<comments>https://en.anonyviet.com/how-to-fix-page-jumping-table-error-in-word/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Tue, 24 Oct 2023 22:49:58 +0000</pubDate>
				<category><![CDATA[Office]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[jumping]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[Table]]></category>
		<category><![CDATA[word]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=13554</guid>

					<description><![CDATA[How to fix page jumping table error in Word is one of the necessary skills for those who regularly work with documents on computers. So what is the cause of this error and how to fix it? Let&#8217;s find out the answer through the following article! Join the channel Telegram belong to AnonyViet 👉 Link [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div id="ftwp-postcontent">
<p><strong>How to fix page jumping table error in Word</strong> is one of the necessary skills for those who regularly work with documents on computers.  So what is the cause of this error and how to fix it?  Let&#8217;s find out the answer through the following article!</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> belong to <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%2Fanonyvietoffical" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2 id="ftoc-loi-bang-bi-nhay-trang-trong-word-la-gi" class="ftwp-heading"><strong>What is the table jumping page error in Word?</strong></h2>
<p>Error in page jumping table <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Ftu-dong-chuyen-van-ban-vao-bang-trong-word%2F" class="local-link" rel="noopener">Word</a> is an error that occurs when you insert a table into the document, but see it automatically jump to the new page, even though the old page still has a lot of space.  The cause of this error may be because you copied the table from somewhere else and pasted it into the document, or because you have set the table rows to break across pages.</p>
<figure id="attachment_48885" aria-describedby="caption-attachment-48885" style="width: 800px" class="wp-caption aligncenter"><img decoding="async" fetchpriority="high" class="wp-image-48885 size-full" src="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-4.jpg" alt="How to fix page jumping table error in Word" width="800" height="430" srcset="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-4.jpg 800w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-4-300x161.jpg 300w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-4-768x413.jpg 768w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-4-750x403.jpg 750w" sizes="(max-width: 800px) 100vw, 800px" title="Instructions for fixing page skipping errors in Word 9"><figcaption id="caption-attachment-48885" class="wp-caption-text">Page jumping table error in Word</figcaption></figure>
<h2 id="ftoc-cach-sua-loi-bang-bi-nhay-trang-trong-word" class="ftwp-heading"><strong>How to fix page jumping table error in Word</strong></h2>
<p>To fix this error, you can follow these steps:</p>
<p><strong>Step 1:</strong> Open the Word file with the page jumping table, then right-click on the table and select “Table Properties”.</p>
<figure id="attachment_48882" aria-describedby="caption-attachment-48882" style="width: 800px" class="wp-caption aligncenter"><img decoding="async" class="wp-image-48882 size-full" src="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-1.jpg" alt="How to fix page jumping table error in Word" width="800" height="450" srcset="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-1.jpg 800w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-1-300x169.jpg 300w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-1-768x432.jpg 768w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-1-750x422.jpg 750w" sizes="(max-width: 800px) 100vw, 800px" title="Instructions to fix the Table error jumping pages in Word 10"><figcaption id="caption-attachment-48882" class="wp-caption-text">Right click on the table and select “Table Properties”.</figcaption></figure>
<p><strong>Step 2:</strong> Click the Row tab in the window that appears.</p>
<figure id="attachment_48883" aria-describedby="caption-attachment-48883" style="width: 800px" class="wp-caption aligncenter"><img decoding="async" class="wp-image-48883 size-full" src="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-2.jpg" alt="How to fix page jumping table error in Word" width="800" height="450" srcset="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-2.jpg 800w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-2-300x169.jpg 300w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-2-768x432.jpg 768w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-2-750x422.jpg 750w" sizes="(max-width: 800px) 100vw, 800px" title="Instructions for fixing page skipping errors in Word 11"><figcaption id="caption-attachment-48883" class="wp-caption-text">Click the Row tab</figcaption></figure>
<p><strong>Step 3:</strong> Uncheck the box &#8220;Allow row to break across pages&#8221;, then click OK to complete.</p>
<figure id="attachment_48884" aria-describedby="caption-attachment-48884" style="width: 800px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="wp-image-48884 size-full" src="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-3.jpg" alt="How to fix page jumping table error in Word" width="800" height="450" srcset="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-3.jpg 800w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-3-300x169.jpg 300w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-3-768x432.jpg 768w, https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word-3-750x422.jpg 750w" sizes="auto, (max-width: 800px) 100vw, 800px" title="Instructions for fixing page skipping errors in Word 12"><figcaption id="caption-attachment-48884" class="wp-caption-text">Uncheck the box &#8220;Allow row to break across pages&#8221;, then click OK</figcaption></figure>
<p>After completing the above steps, you will see that your table no longer jumps pages.  You can change the position of the table in the text as you wish without worrying about affecting the structure of the document.</p>
<h2 id="ftoc-loi-ket" class="ftwp-heading"><strong>Epilogue</strong></h2>
<p>Through this article, you already know <strong>How to fix page jumping table error in Word</strong> easily and quickly.  If you do not correct this error promptly, it will make your document lose its professionalism and neatness.  Wishing you a successful application!</p>
</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload='{"align":"right","id":"48880","slug":"default","valign":"bottom","ignore":"","reference":"auto","class":"","count":"0","legendonly":"","readonly":"","score":"0","starsonly":"","best":"5","gap":"5","greet":"\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post","legend":"B\u00e0i vi\u1ebft \u0111\u1ea1t: 0\/5 - (0 b\u00ecnh ch\u1ecdn)","size":"24","title":"H\u01b0\u1edbng d\u1eabn s\u1eeda l\u1ed7i b\u1ea3ng (Table) b\u1ecb nh\u1ea3y trang trong Word","width":"0","_legend":"B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})","font_factor":"1.25"}'>
<p>
            <span class="kksr-muted">Rate this post</span>
    </p>
</p></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/how-to-fix-page-jumping-table-error-in-word/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2023/07/cach-sua-loi-bang-bi-nhay-trang-trong-word.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>[Lập Trình Game] Lesson 2: Gravity, moving surfaces and jumping</title>
		<link>https://en.anonyviet.com/lap-trinh-game-lesson-2-gravity-moving-surfaces-and-jumping/</link>
					<comments>https://en.anonyviet.com/lap-trinh-game-lesson-2-gravity-moving-surfaces-and-jumping/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Thu, 02 Feb 2023 18:34:39 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Gravity]]></category>
		<category><![CDATA[jumping]]></category>
		<category><![CDATA[lập]]></category>
		<category><![CDATA[Lesson]]></category>
		<category><![CDATA[moving]]></category>
		<category><![CDATA[surfaces]]></category>
		<category><![CDATA[trình]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=8463</guid>

					<description><![CDATA[Next with the series of game programming with godot today I will guide you to the next lesson that is Gravity, Moving Surface and Jumping. Join the channel Telegram belong to AnonyViet 👉 Link 👈 Well before you do, if you want to reopen the sence you&#8217;re working on now, look under the FileSystem section [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div id="ftwp-postcontent">
<p><strong>Next with the series of game programming with godot today I will guide you to the next lesson that is Gravity, Moving Surface and Jumping.</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> belong to <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>Well before you do, if you want to reopen the sence you&#8217;re working on now, look under the FileSystem section and double click on the sence you saved before and yours is saved here. <strong>World.tscn</strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fworld.tscn_.jpg" rel="noopener" class="local-link"><img decoding="async" class="aligncenter size-full wp-image-17724" src="https://anonyviet.com/wp-content/uploads/2020/02/world.tscn_.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 34" width="327" height="318" srcset="https://anonyviet.com/wp-content/uploads/2020/02/world.tscn_.jpg 327w, https://anonyviet.com/wp-content/uploads/2020/02/world.tscn_-300x292.jpg 300w" sizes="(max-width: 327px) 100vw, 327px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surface and jumping 36"/></a></p>
<p><strong>Moving Surface:</strong> The moving surface is the part that we let our character move on it can be said to be like the road surface for us humans to walk on.</p>
<p>To create a surface, you do as I do and this is just the basics of the basics, if you want to create a moving surface like other games, it&#8217;s called <strong>tilemap</strong> and <strong>tileset</strong> I will guide you in the following article:</p>
<p>Create Node <strong>StaticBody2D</strong> under the authority of World</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fcreate-new-node-1.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17725" src="https://anonyviet.com/wp-content/uploads/2020/02/create-new-node-1.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surface and jumping 35" width="517" height="386" srcset="https://anonyviet.com/wp-content/uploads/2020/02/create-new-node-1.jpg 517w, https://anonyviet.com/wp-content/uploads/2020/02/create-new-node-1-300x224.jpg 300w" sizes="auto, (max-width: 517px) 100vw, 517px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 37"/></a></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2FStaticBody2D.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17726" src="https://anonyviet.com/wp-content/uploads/2020/02/StaticBody2D.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surface and jumping 36" width="246" height="205" title="[Lập Trình Game]  Lesson 2: Gravity, moving surface and jumping 38"/></a></p>
<p>LIVE <strong>StaticBody</strong> I will change my name back to <strong>floor</strong> (double click to change the name) and I changed the name too <strong>KinematicBody</strong> Fort <strong>Player</strong> Please.</p>
<p>And also in <strong>Node Player</strong> i will create <strong>2 Nodes </strong>To be <strong>Sprite</strong>: the photo for <strong>floor</strong> and <strong>Collsion</strong></p>
<p><strong>Collsion</strong> It is very difficult to explain here, so I will briefly explain it for you to understand.  VD:</p>
<p>When you create a sprite without <strong>collsion</strong> then it&#8217;s just an image, a painted image.  If you create <strong>1 sprite + collection</strong> then it means it&#8217;s like if you press a bag of balls against the wall with your hand, it will collapse, that&#8217;s when there is no <strong>collsion</strong> and when there is collsion it is like inside the ball bag there is a brick then when you press the ball bag there is a brick you cannot squeeze it because the brick it is hard.  Generally speaking<strong> sprite is the skin</strong> still<strong> collsion is bone</strong> in that skin.</p>
<p>Or you can understand <strong>collection is the frame</strong> to prevent the inner part for the sprite to work</p>
<p>Here <strong>StaticBody2D</strong> used for physical movement if you want to build a trap, bridge, something stationary or moving as an obstacle, use <strong>StaticBody2D</strong>.</p>
<p>Then you do the same<a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Flap-trinh-game-bai-1-tao-di-chuyen-cho-nhan-vat%2F" rel="noopener noreferrer" class="local-link"><strong>  Lesson 1</strong></a>  with Node player like this:</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2FNode-player.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17727" src="https://anonyviet.com/wp-content/uploads/2020/02/Node-player.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 37" width="733" height="341" srcset="https://anonyviet.com/wp-content/uploads/2020/02/Node-player.jpg 733w, https://anonyviet.com/wp-content/uploads/2020/02/Node-player-300x140.jpg 300w" sizes="auto, (max-width: 733px) 100vw, 733px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 39"/></a></p>
<p>I will not give specific instructions, but you have to remember each post to go up.</p>
<p>On the floor, click on the sprite to notice the right part below the CanvasItem, then click on it<strong> Visiable > select Modulate</strong> and change the color to any color.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fmau.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17728" src="https://anonyviet.com/wp-content/uploads/2020/02/mau.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surface and jumping 38" width="585" height="299" srcset="https://anonyviet.com/wp-content/uploads/2020/02/mau.jpg 585w, https://anonyviet.com/wp-content/uploads/2020/02/mau-300x153.jpg 300w" sizes="auto, (max-width: 585px) 100vw, 585px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surface and 40 . jump"/></a></p>
<p>Here I change to <strong>black</strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fmau-den.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17729" src="https://anonyviet.com/wp-content/uploads/2020/02/mau-den.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 39" width="346" height="186" srcset="https://anonyviet.com/wp-content/uploads/2020/02/mau-den.jpg 346w, https://anonyviet.com/wp-content/uploads/2020/02/mau-den-300x161.jpg 300w" sizes="auto, (max-width: 346px) 100vw, 346px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 41"/></a></p>
<p>And as the photo above you can see that <strong>sprite changed to black</strong>n but what <strong>collsion</strong> it&#8217;s on top again <strong>sprite</strong> then you change positions <strong>collsion</strong> go up <strong>sprite</strong> or click<strong> the eye on the right collsion </strong>to hide it and when hidden you don&#8217;t need to worry because it just hides and doesn&#8217;t do anything.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fan.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17730" src="https://anonyviet.com/wp-content/uploads/2020/02/an.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surface and 40 . jump" width="426" height="237" srcset="https://anonyviet.com/wp-content/uploads/2020/02/an.jpg 426w, https://anonyviet.com/wp-content/uploads/2020/02/an-300x167.jpg 300w" sizes="auto, (max-width: 426px) 100vw, 426px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 42"/></a> <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fan-mau.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17731" src="https://anonyviet.com/wp-content/uploads/2020/02/an-mau.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 41" width="332" height="189" srcset="https://anonyviet.com/wp-content/uploads/2020/02/an-mau.jpg 332w, https://anonyviet.com/wp-content/uploads/2020/02/an-mau-300x171.jpg 300w" sizes="auto, (max-width: 332px) 100vw, 332px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 43"/></a></p>
<p>And you lock it up like <strong>Node Player</strong>:</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fkhoa-node.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17732" src="https://anonyviet.com/wp-content/uploads/2020/02/khoa-node.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 42" width="241" height="175" srcset="https://anonyviet.com/wp-content/uploads/2020/02/khoa-node.jpg 241w, https://anonyviet.com/wp-content/uploads/2020/02/khoa-node-120x86.jpg 120w" sizes="auto, (max-width: 241px) 100vw, 241px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 44"/></a></p>
<p>Well at the end of the post I will leave the zoom buttons with the keyboard for those of you who use a laptop without a mouse or a damaged mouse scroll button like me.</p>
<p>And choose <strong>floor</strong> You guys notice for me the 2 parts I&#8217;ve circled 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%2F02%2Fchon-khoa.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17733" src="https://anonyviet.com/wp-content/uploads/2020/02/chon-khoa.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 43" width="446" height="184" srcset="https://anonyviet.com/wp-content/uploads/2020/02/chon-khoa.jpg 446w, https://anonyviet.com/wp-content/uploads/2020/02/chon-khoa-300x124.jpg 300w" sizes="auto, (max-width: 446px) 100vw, 446px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surface and jumping 45"/></a></p>
<p>The side <strong>dark white fruit</strong> is that it displays the grid (squares like pixels).</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fluoi.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17734" src="https://anonyviet.com/wp-content/uploads/2020/02/luoi.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 44" width="322" height="229" srcset="https://anonyviet.com/wp-content/uploads/2020/02/luoi.jpg 322w, https://anonyviet.com/wp-content/uploads/2020/02/luoi-300x213.jpg 300w, https://anonyviet.com/wp-content/uploads/2020/02/luoi-120x86.jpg 120w" sizes="auto, (max-width: 322px) 100vw, 322px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 46"/></a></p>
<p>This grid is a bit small here, so I&#8217;ll zoom in</p>
<p>To zoom in, press the 3 dots next to it:<a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fdau-3-cham.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17735" src="https://anonyviet.com/wp-content/uploads/2020/02/dau-3-cham.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surface and jumping 45" width="283" height="237" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 47"/></a></p>
<p>Choose the last one <strong>Configure Snaps. </strong>Change <strong>Grid Step</strong> Fort <strong>32-32</strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Ftang-luoi.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17736" src="https://anonyviet.com/wp-content/uploads/2020/02/tang-luoi.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 46" width="286" height="294" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 48"/></a></p>
<p>And it looks like the picture:</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Ftang-luoi-to.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17737" src="https://anonyviet.com/wp-content/uploads/2020/02/tang-luoi-to.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 47" width="387" height="253" srcset="https://anonyviet.com/wp-content/uploads/2020/02/tang-luoi-to.jpg 387w, https://anonyviet.com/wp-content/uploads/2020/02/tang-luoi-to-300x196.jpg 300w" sizes="auto, (max-width: 387px) 100vw, 387px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 49"/></a></p>
<p>You can move the floor but you can see that it is not in the correct box so Godot gave us one more function that is <strong>move in pixels.</strong></p>
<p>On the one next to the one<strong> turn on pixels</strong> you click on floor and then turn it on:</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fchuyen-px.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17738" src="https://anonyviet.com/wp-content/uploads/2020/02/chuyen-px.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 48" width="166" height="77" title="[Lập Trình Game]  Lesson 2: Gravity, moving surface and 50 . jump"/></a></p>
<p>Then our floor will move in pixels</p>
<p>And you put it down to make the floor move</p>
<p>Below the picture, if you pay close attention, you will see a blue umbrella, that umbrella is our screen, remember to put the floor inside this box.</p>
<p>Here I create more 1 <strong>the Node name</strong> <strong>is wall</strong> and there contains floor and <strong>floor I changed to 01</strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fwall.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17739" src="https://anonyviet.com/wp-content/uploads/2020/02/wall.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 49" width="321" height="256" srcset="https://anonyviet.com/wp-content/uploads/2020/02/wall.jpg 321w, https://anonyviet.com/wp-content/uploads/2020/02/wall-300x239.jpg 300w" sizes="auto, (max-width: 321px) 100vw, 321px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 51"/></a></p>
<p>You set the location for <strong>floor</strong> then click on the <strong>01</strong> press combination <strong>Ctrl + EASY</strong> it will be duplicated and in the place of floor 01, you can pull it out if you don&#8217;t understand, look at the picture:</p>
<p>Doubled</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fnhan-doi.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17740" src="https://anonyviet.com/wp-content/uploads/2020/02/nhan-doi.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surface and 50 . jump" width="495" height="323" srcset="https://anonyviet.com/wp-content/uploads/2020/02/nhan-doi.jpg 495w, https://anonyviet.com/wp-content/uploads/2020/02/nhan-doi-300x196.jpg 300w" sizes="auto, (max-width: 495px) 100vw, 495px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 52"/></a></p>
<p>Now pull out</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fkeo-ra.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17741" src="https://anonyviet.com/wp-content/uploads/2020/02/keo-ra.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 51" width="498" height="267" srcset="https://anonyviet.com/wp-content/uploads/2020/02/keo-ra.jpg 498w, https://anonyviet.com/wp-content/uploads/2020/02/keo-ra-300x161.jpg 300w" sizes="auto, (max-width: 498px) 100vw, 498px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 53"/></a></p>
<p>It will come out 2</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2F2-cai.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17742" src="https://anonyviet.com/wp-content/uploads/2020/02/2-cai.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 52" width="319" height="180" srcset="https://anonyviet.com/wp-content/uploads/2020/02/2-cai.jpg 319w, https://anonyviet.com/wp-content/uploads/2020/02/2-cai-300x169.jpg 300w" sizes="auto, (max-width: 319px) 100vw, 319px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 54"/></a></p>
<p>So with 2 you can do it continuously to create a longer moving floor</p>
<p>But before creating the floor, you need to check if the collsion is equal or not to check if you turn on the collsion of 01 and 02.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fnhan-doi-lon.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17743" src="https://anonyviet.com/wp-content/uploads/2020/02/nhan-doi-lon.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 53" width="375" height="210" srcset="https://anonyviet.com/wp-content/uploads/2020/02/nhan-doi-lon.jpg 375w, https://anonyviet.com/wp-content/uploads/2020/02/nhan-doi-lon-300x168.jpg 300w" sizes="auto, (max-width: 375px) 100vw, 375px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surface and jumping 55"/></a></p>
<p>Like mine, it&#8217;s not very tight but the player still moves well.  If yours is skewed, adjust it to be flat.</p>
<p>Now create multiple ones,</p>
<p>I have created it:</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Ftao-ra-nhieu-cai.jpg" rel="noopener" class="local-link"><img alt="[Lập Trình Game] Lesson 2: Gravity, moving surfaces and jumping" title="[Lập Trình Game] Lesson 2: Gravity, moving surfaces and jumping" post-id="8463" fifu-featured="1" decoding="async" loading="lazy" class="aligncenter size-full wp-image-17744" src="https://anonyviet.com/wp-content/uploads/2020/02/tao-ra-nhieu-cai.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 54" width="497" height="234" srcset="https://anonyviet.com/wp-content/uploads/2020/02/tao-ra-nhieu-cai.jpg 497w, https://anonyviet.com/wp-content/uploads/2020/02/tao-ra-nhieu-cai-300x141.jpg 300w" sizes="auto, (max-width: 497px) 100vw, 497px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 56"/></a>Run the program and you will see something like this:</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fchay-chuong-trinh.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17745" src="https://anonyviet.com/wp-content/uploads/2020/02/chay-chuong-trinh.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surface and jumping 55" width="476" height="291" srcset="https://anonyviet.com/wp-content/uploads/2020/02/chay-chuong-trinh.jpg 476w, https://anonyviet.com/wp-content/uploads/2020/02/chay-chuong-trinh-300x183.jpg 300w" sizes="auto, (max-width: 476px) 100vw, 476px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 57"/></a></p>
<p>Does it look pretty bad?  But don&#8217;t worry you only learn the basics to do it and this is just a tutorial, but the first lesson will guide you to create 1 player and a complete tilemap and background, enemy too. .</p>
<p>You can move it down and it will be blocked by the floor</p>
<p>And that&#8217;s it, you have created the Moving Surface, followed by Gravity.</p>
<h2 id="ftoc-trong-luc" class="ftwp-heading"><strong>Gravitation:</strong></h2>
<p>When it comes to gravity, who doesn&#8217;t know 😀 the thing that helps us move easily.</p>
<p>To create gravity, you go to the player&#8217;s script.</p>
<p>Declare variable:</p>
<p>Declare 1 more gravity variable set it equal to 20</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fkhai-bien.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17746" src="https://anonyviet.com/wp-content/uploads/2020/02/khai-bien.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 56" width="310" height="126" srcset="https://anonyviet.com/wp-content/uploads/2020/02/khai-bien.jpg 310w, https://anonyviet.com/wp-content/uploads/2020/02/khai-bien-300x122.jpg 300w" sizes="auto, (max-width: 310px) 100vw, 310px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 58"/></a>In physics code for me as follows</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fphysics-code.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17747" src="https://anonyviet.com/wp-content/uploads/2020/02/physics-code.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 57" width="378" height="144" srcset="https://anonyviet.com/wp-content/uploads/2020/02/physics-code.jpg 378w, https://anonyviet.com/wp-content/uploads/2020/02/physics-code-300x114.jpg 300w" sizes="auto, (max-width: 378px) 100vw, 378px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 59"/></a></p>
<p><strong>Chuyendong</strong> is what helps us move along the x, y coordinate axes: <strong>Y</strong> is down-up, <strong>X</strong> is right-left.</p>
<p>here <strong>chuyendong.y</strong> that is, use the variable to call the y-axis because when we declare <code>chuyendong = Vector2()</code> mean <strong>change</strong> allowed to use x, y axes and here we call y-axis moving down by transition|  chuyendong.y += tocdo means chuyendong.y = chuyendong + inluc</p>
<p>and it means when <strong>change</strong> y + axis with inluc is 20 then it will move down with 20 times gravity.</p>
<p>And run the game:</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fchay-game-2.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17748" src="https://anonyviet.com/wp-content/uploads/2020/02/chay-game-2.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 58" width="585" height="360" srcset="https://anonyviet.com/wp-content/uploads/2020/02/chay-game-2.jpg 585w, https://anonyviet.com/wp-content/uploads/2020/02/chay-game-2-300x185.jpg 300w" sizes="auto, (max-width: 585px) 100vw, 585px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surface and 60 . jump"/></a></p>
<p>We will see it drop and its Floor Collsion is an obstacle for our player to prevent the player from falling.</p>
<p>If your migration is like mine:</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fchuyen-dong.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17749" src="https://anonyviet.com/wp-content/uploads/2020/02/chuyen-dong.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 59" width="436" height="334" srcset="https://anonyviet.com/wp-content/uploads/2020/02/chuyen-dong.jpg 436w, https://anonyviet.com/wp-content/uploads/2020/02/chuyen-dong-300x230.jpg 300w" sizes="auto, (max-width: 436px) 100vw, 436px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 61"/></a></p>
<p>Then you won&#8217;t be able to move up when you press the up arrow</p>
<p>And next is dancing.</p>
<h2 id="ftoc-nhay" class="ftwp-heading"><strong>Dance</strong></h2>
<p>To Code the dance part, you will code like me.</p>
<p>Delete section <strong>if input up</strong> and <strong>if input down</strong> Go</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fnhay-1.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17750" src="https://anonyviet.com/wp-content/uploads/2020/02/nhay-1.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surface and 60 . jump" width="412" height="147" srcset="https://anonyviet.com/wp-content/uploads/2020/02/nhay-1.jpg 412w, https://anonyviet.com/wp-content/uploads/2020/02/nhay-1-300x107.jpg 300w" sizes="auto, (max-width: 412px) 100vw, 412px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 62"/></a></p>
<p>And change</p>
<p><code>if input ui_left thành &gt; elif input.is_action ui_left</code></p>
<p>And the code adds an else part:</p>
<p><code>else:</code></p>
<p>The x-axis motion is 0||  = 0 rather than += (I will write it like this for you to understand and code it and also improve your coding ability)</p>
<p>After the code you press F6 to run the game will see it can move right to left and after stopping moving will stand still.</p>
<p><strong>Next comes the jumping part.</strong></p>
<p>Declare yourself a variable as:</p>
<p><strong>Nhaycao</strong> and assign it with <strong>-500</strong></p>
<p>Why assign it with<strong> -500</strong> simply because when you create the gravity variable, our player will fall along the y-axis right?  So here we assign -500 so that it will move upwards against gravity when jumping to a certain height because inluc is always set to 20, so after jumping it will force your player down.</p>
<p>You declare yourself 1 more variable <code>UP = Vector2(0, -1)</code></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fnhay-2.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17751" src="https://anonyviet.com/wp-content/uploads/2020/02/nhay-2.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 61" width="273" height="140" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 63"/></a></p>
<p>Variable <strong>UP</strong> This is a variable that allows you to jump to 0, -1 ||  0 is the x-axis, -1 is the y-axis</p>
<p>Next, give me the code for the part like the picture:</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fnhay-3.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17752" src="https://anonyviet.com/wp-content/uploads/2020/02/nhay-3.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 62" width="427" height="71" srcset="https://anonyviet.com/wp-content/uploads/2020/02/nhay-3.jpg 427w, https://anonyviet.com/wp-content/uploads/2020/02/nhay-3-300x50.jpg 300w" sizes="auto, (max-width: 427px) 100vw, 427px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 64"/></a></p>
<p><code>if is_on_floor</code>  which means when you are on the floor (the floor we created) and only when on the floor it can do it.</p>
<p><code>if input ui_up</code>  Well, if you read the previous posts, you already know</p>
<p><code> chuyendong.y += nhaycao</code>  To be: <strong>change</strong> call y-axis and assign it with variable <strong>haycao</strong> when you press the up arrow key And When assigning it jumps why?  Then I explained in the declaration of the variable nhaycao</p>
<p>Ah in the <strong>move_and_slide()</strong> more for me <strong>UP</strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fnhay-4.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17753" src="https://anonyviet.com/wp-content/uploads/2020/02/nhay-4.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 63" width="363" height="31" srcset="https://anonyviet.com/wp-content/uploads/2020/02/nhay-4.jpg 363w, https://anonyviet.com/wp-content/uploads/2020/02/nhay-4-300x26.jpg 300w, https://anonyviet.com/wp-content/uploads/2020/02/nhay-4-360x31.jpg 360w, https://anonyviet.com/wp-content/uploads/2020/02/nhay-4-350x31.jpg 350w" sizes="auto, (max-width: 363px) 100vw, 363px" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 65"/></a></p>
<h2 id="ftoc-luu-y" class="ftwp-heading"><strong>Note:</strong></h2>
<p>Some notes when coding:</p>
<p>In the if statement you can notice the character >|  The blur to the right of the command is what sorts the commands</p>
<p>That is, the if statement that you enter the line to code without >|  then it will not execute eg this is not done</p>
<p><em>>|  if</em></p>
<p><em>>|Chuyendong = 0</em></p>
<p>Then it failed to execute and reported an error</p>
<p>And if like this:</p>
<p><em>>|  if</em></p>
<p><em>>|  >|  chuyendong = 2</em></p>
<p>Then it will work</p>
<p>How to move the sence and zoom keys for anyone who has a broken mouse wheel or uses a laptop:</p>
<ul>
<li><strong>Ctrl + – (the – sign):</strong> zoom out</li>
<li><strong>Ctrl + + (the + sign there):</strong> zoom in</li>
</ul>
<p>Middle click to move around or right click</p>
<p>Here you will see 3 white ones</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F02%2Fnhay-5.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-17754" src="https://anonyviet.com/wp-content/uploads/2020/02/nhay-5.jpg" alt="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 64" width="146" height="71" title="[Lập Trình Game]  Lesson 2: Gravity, moving surfaces and jumping 66"/></a></p>
<ul>
<li>1st one (4 those arrows): move Sprite</li>
<li>2nd one: Rotate the Sprite or press Ctrl to rotate</li>
<li>3rd one: Zoom in or out of the Sprite</li>
</ul>
<p>That&#8217;s it, the next lesson will be About Tilemaps and Tilesets, and then the character&#8217;s movement will be.</p>
<p style="text-align: right;"><strong>DeathGM!</strong></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;17723&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-2-gravity-moving-surfaces-and-jumping/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2020/02/tao-ra-nhieu-cai.jpg" medium="image"></media:content>
            	</item>
	</channel>
</rss>
