<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-62922453392314506</id><updated>2026-05-16T17:22:32.603+07:00</updated><title type='text'>Muay Thai Flash Game Making</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://flashgame-making.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://flashgame-making.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Chuanasa</name><uri>http://www.blogger.com/profile/15988975148479029365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-62922453392314506.post-5097903071443465692</id><published>2011-09-30T11:28:00.001+07:00</published><updated>2011-09-30T11:28:19.516+07:00</updated><title type='text'>Testing your character movement (Part 4)</title><content type='html'>September 30, 2011&lt;br /&gt;
____________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
How to make the main character move?&lt;br /&gt;
&lt;br /&gt;
If you take a look at Figure 10.1, you will see that you have a movie clip of you main character in scene 1. Left click at it once and open the actions script(by pressing F9 or choose Window --&amp;gt; Actions).&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisTTAeEK2lapp0j017PxbG-b0du5dIpsam1Jqwqr6lQp3gfwC_zOtb2QKVo2m83xSrYzKgEKf1XCinwcj3TdVGoVSaBOf0Q4zikZ0G8bygUYr_MnNqKgaEwGyQlpKDt450apFg1EOJZg/s1600/Clipboard01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisTTAeEK2lapp0j017PxbG-b0du5dIpsam1Jqwqr6lQp3gfwC_zOtb2QKVo2m83xSrYzKgEKf1XCinwcj3TdVGoVSaBOf0Q4zikZ0G8bygUYr_MnNqKgaEwGyQlpKDt450apFg1EOJZg/s1600/Clipboard01.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Figure 10.1&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9sSB1QzN5t_c2pZkeq7BFF33pgVJcsRamFAkOMs6Zd1PXG86K7vNwIHkofydiak4J9Ig19EJLaCx9dlj87h2RzQRC34GLFROi-85s4-FeiwVzwtaNTrPvrGw5PuBjZwDEjWLTaYEEQQ/s1600/Clipboard01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
Put the code as show below and I will explain next.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;onClipEvent (enterFrame) {&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;this._x = /:move_x;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;this._y = /:move_y;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Key.isDown(Key.RIGHT)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this._xscale = 100;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /:face = &quot;right&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /:status = &quot;walk&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /:move_x = /:move_x+10;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (Key.isDown(Key.LEFT)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this._xscale = -100;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /:face = &quot;left&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /:status = &quot;walk&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /:move_x = /:move_x-10;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
You can use the script Assist as shown in Figure 10.2. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhMdbkV0vcFU8uQJi_ZLBQgFVof3jIaqcdpw4mnLpD2YA4PUo-aMyxCZ-l3tP5fWvsog47SXy0yri5xsfsff65q-u4r1QDJeokueVA7FckFG1-L6QH5uIBfYbvPLoKaPwY2koB66SmtQ/s1600/Clipboard03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;297&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhMdbkV0vcFU8uQJi_ZLBQgFVof3jIaqcdpw4mnLpD2YA4PUo-aMyxCZ-l3tP5fWvsog47SXy0yri5xsfsff65q-u4r1QDJeokueVA7FckFG1-L6QH5uIBfYbvPLoKaPwY2koB66SmtQ/s400/Clipboard03.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSN451WqIq1be1IpVZGzdvG8ly-Nt5ButvzNB3PuEWIiSEADZhSPmR1ATl_qu5eqCLtKGvc1HjNVp4qtHFaxP4jfIvs4UBzC5M2ZMlGzPEj9YsO5msFm51w0Ga7Ap_Q9-EBSTxwIsMmQ/s1600/Clipboard03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
Figure 10.2 &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;onClipEvent (enterFrame) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This will perform actions when a particular movie clip event occurs. As you can see in the parenthesis &quot;(enterFrame)&quot;, the &quot;enterFrame&quot; in the parenthesis is called &quot;event&quot;. Whenever the timeline enters this frame, the code will be activated. There are many more events such as &quot;Load&#39;, &quot;Unload&quot;, &quot;Mouse down&quot;, &quot;Mouse up&quot;, ect. which I will not talk about them in details here.&lt;br /&gt;
_____________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;
this._x = /:move_x;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;this._y = /:move_y;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; These two lines are the position properties of your main character movie clip.&lt;br /&gt;
&lt;br /&gt;
this._x means the value of the x position.&lt;br /&gt;
this._y means the value of the y position.&lt;br /&gt;
&lt;br /&gt;
I set tthe first one (this._x) to be equal to my variable &quot;/:move_x&quot; which I declared this value at the first frame of the scene. Same thing for &quot;this._y&quot;.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s just say that at the first frame, I set /:move_x = 200 and /:move_y = 100.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6kpI-HJnfYr9jWfNbmKnY6qMRli8tMs89_wCEc9ITgoXJYJum_jw8DLBNmSxFjJTuB7ouCr5Y3btVIxsmAd9w5SX7das7IMwGfkEkhQD3m01DwDcwip_I0LLd4Xiv2fk9p_9zXoo0tg/s1600/Clipboard04.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;288&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6kpI-HJnfYr9jWfNbmKnY6qMRli8tMs89_wCEc9ITgoXJYJum_jw8DLBNmSxFjJTuB7ouCr5Y3btVIxsmAd9w5SX7das7IMwGfkEkhQD3m01DwDcwip_I0LLd4Xiv2fk9p_9zXoo0tg/s400/Clipboard04.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Figure 10.3&lt;/div&gt;
&lt;br /&gt;
Then when the game runs. The position of the main character will be at x = 200, y = 100.&lt;br /&gt;
&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;if (Key.isDown(Key.RIGHT)) {&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; This command will detect what you do with the keyboard. If you press the right arrow key down, this code will be active.&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt; this._xscale = 100;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; This line means the scale of you x direction is 100 % (the original x width scale).&lt;br /&gt;
&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;/:face = &quot;right&quot;;&lt;br /&gt;/:status = &quot;walk&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; These two lines are nothing but to set the variables(that you make it up) for the states of the main character that will be used for other actions. Like it said, /:face = &quot;right&quot; is just to make the value of /:face to be &quot;right&quot;. And /:status = &quot;walk&quot;, intuitively, is the value of /:status saying that now it&#39;s on the &quot;walk&quot; state. &lt;br /&gt;
&lt;br /&gt;
____________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;/:move_x = /:move_x+10; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; The value of /:move_x is increasing by 10. This makes the main character move to the right by 10 pixels.&lt;br /&gt;
&lt;br /&gt;
_____________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;if (Key.isDown(Key.LEFT)) {&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; If you press the left arrow key down on your keyboard, this code will be active.&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt; this._xscale = -100;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; This line means the scale of you x direction is 100 % (the original x width scale) but the minus sign makes it flip vertically, i.e. the character will be flipped to the other side.&lt;br /&gt;
&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;/:face = &quot;left&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Like it said, /:face = &quot;left&quot; is just to make the value of /:face to be &quot;left&quot;. &lt;br /&gt;
____________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;/:move_x = /:move_x - 10; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; The value of /:move_x is decreasing by 10. This makes the main character move to the left by 10 pixels.&lt;br /&gt;
&lt;br /&gt;
_____________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
Yeah, now you can test your character movement (left and right only). I hope you are getting some idea how to control it. Good luck ;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flashgame-making.blogspot.com/feeds/5097903071443465692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/testing-your-character-movement-part-4.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/5097903071443465692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/5097903071443465692'/><link rel='alternate' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/testing-your-character-movement-part-4.html' title='Testing your character movement (Part 4)'/><author><name>Chuanasa</name><uri>http://www.blogger.com/profile/15988975148479029365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisTTAeEK2lapp0j017PxbG-b0du5dIpsam1Jqwqr6lQp3gfwC_zOtb2QKVo2m83xSrYzKgEKf1XCinwcj3TdVGoVSaBOf0Q4zikZ0G8bygUYr_MnNqKgaEwGyQlpKDt450apFg1EOJZg/s72-c/Clipboard01.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-62922453392314506.post-4960573376417610807</id><published>2011-09-14T20:22:00.001+07:00</published><updated>2011-09-15T17:00:19.212+07:00</updated><title type='text'>Testing  your character movement (Part 3)</title><content type='html'>September 14, 2011&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
OK. Continue with the topic. In part 2, I talked about the action script for standing. This part, I will talk about walking action script. As you can see below,Figure 9.1, The action script is on the &quot;command&quot; layer at frame 10.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8-Kl7l9IKiby6lt6wloElz3VwbvO70vouioyw6MfE3wyc0cXY3FEgsUuyeVXqDDZ5ZW1Ba0xNrvLLwcLUpKuUBVNlGbc2RyOzxs53ddQX9yeWbTn_9bPd6nVG1wRjF7-HnyFOFg3L7g/s1600/Clipboard01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8-Kl7l9IKiby6lt6wloElz3VwbvO70vouioyw6MfE3wyc0cXY3FEgsUuyeVXqDDZ5ZW1Ba0xNrvLLwcLUpKuUBVNlGbc2RyOzxs53ddQX9yeWbTn_9bPd6nVG1wRjF7-HnyFOFg3L7g/s320/Clipboard01.jpg&quot; width=&quot;263&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 9.1&lt;/div&gt;&lt;br /&gt;
The script is as the following.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Line&amp;nbsp; 1:&lt;/span&gt; ../:duck = &quot;on&quot;;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line&amp;nbsp; 2: &lt;/span&gt;../:block = &quot;on&quot;;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line&amp;nbsp; 3: &lt;/span&gt;../:kick_01 = &quot;on&quot;;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line&amp;nbsp; 4: &lt;/span&gt;../:punch_01 = &quot;on&quot;;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line&amp;nbsp; 5: &lt;/span&gt;if (../:walking == &quot;on&quot;) {&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line&amp;nbsp; 6: &lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; play();&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line&amp;nbsp; 7: &lt;/span&gt;} else if (../:walking == &quot;off&quot; or ../:status == &quot;stand&quot;) {&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line&amp;nbsp; 8: &lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(1);&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line&amp;nbsp; 9: &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line10: &lt;/span&gt;if (../:status == &quot;death&quot;) {&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line11:&amp;nbsp; &lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;death&quot;);&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line12:&amp;nbsp; &lt;/span&gt;} else if (../:status == &quot;hurt_01&quot;) {&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line13:&amp;nbsp; &lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;hurt_01&quot;);&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line14:&amp;nbsp; &lt;/span&gt;} else if (../:status == &quot;hurt_02&quot;) {&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line15:&amp;nbsp; &lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;hurt_02&quot;);&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line16:&amp;nbsp; &lt;/span&gt;} else if (../:status == &quot;punch_01&quot;) {&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line17:&amp;nbsp; &lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;punch_01&quot;);&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line18:&amp;nbsp; &lt;/span&gt;} else if (../:status == &quot;kick_01&quot;) {&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line19:&amp;nbsp; &lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;kick_01&quot;);&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line20:&amp;nbsp; &lt;/span&gt;} else if (../:status == &quot;duck&quot;) {&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line21:&amp;nbsp; &lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;duck&quot;);&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line22:&amp;nbsp; &lt;/span&gt;} else if (../:status == &quot;block&quot;) {&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line23:&amp;nbsp; &lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;block&quot;);&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Line24:&amp;nbsp; &lt;/span&gt;}&lt;/div&gt;(See Figure 9.2)&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG3JGsPv12yH-bQ0wzRVATaQHRbNmC3TTCR9wibnxWPFKaI0be7XtVeoHYooLf_92aFRvg7Q3BmQxlVP9D8FhcRF6orgZTrX5UU2c-uuHsjw04B_wY5xpRMsBir1fr9g-BLorYgxx29g/s1600/Clipboard02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG3JGsPv12yH-bQ0wzRVATaQHRbNmC3TTCR9wibnxWPFKaI0be7XtVeoHYooLf_92aFRvg7Q3BmQxlVP9D8FhcRF6orgZTrX5UU2c-uuHsjw04B_wY5xpRMsBir1fr9g-BLorYgxx29g/s400/Clipboard02.jpg&quot; width=&quot;286&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 9.2&lt;/div&gt;&lt;br /&gt;
Again, I will explain most of the script here.&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;../:duck = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
This value is to indicate the permission for my main character to duck  from this state(&quot;walking&quot;). &quot;On&quot; means he can duck from this state.&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;../:block = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;../:kick_01 = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;../:punch_01 = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
Well, these 3 lines are the same as the first line. The values are for the permission of each movement  I set for. &quot;on&quot; means it is ok to make that move from this &quot;stand&quot;  state, i.e., he can block, kick_01, and punch_01 from walking state.&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;if (../:walking == &quot;on&quot;) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; play();&lt;br /&gt;
} else if (../:walking == &quot;off&quot; or ../:status == &quot;stand&quot;) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(1);&lt;br /&gt;
}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &lt;/span&gt;This means if the value of parameter &quot;walking&quot; is &quot;on&quot;, then just keep playing on the timeline. On the other hand, if the parameter &quot;walking&quot; is &quot;off&quot; or the parameter &quot;status&quot; is set to be &quot;stand&quot;, just go back and play at frame 1(which is the the frame label &quot;stand&quot;).&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;if (../:status == &quot;death&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;death&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;hurt_01&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;hurt_01&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;hurt_02&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;hurt_02&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;punch_01&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;punch_01&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;kick_01&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;kick_01&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;duck&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;duck&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;block&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;block&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
These lines just show that &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;fi the value of &quot;status&quot; equals what it indicates, go to the frame label correspondingly.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
____________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
Now, I want to show you that this action script will be used in frame 11 - 13 as well(see Figure 9.3).&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggjGtxJERm6F4OncXVlH91_uc_zztDPchGT80Ja-6UFk7QeYpyG_BBPW-t3OW4UOS_9wPHCsiYOEjv10j8pqaYjWJkwDw6rueKTDg31N-1AN9er3S5F-m4gsE1k8WdyYoJ4zgcX4dGuw/s1600/Clipboard03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggjGtxJERm6F4OncXVlH91_uc_zztDPchGT80Ja-6UFk7QeYpyG_BBPW-t3OW4UOS_9wPHCsiYOEjv10j8pqaYjWJkwDw6rueKTDg31N-1AN9er3S5F-m4gsE1k8WdyYoJ4zgcX4dGuw/s320/Clipboard03.jpg&quot; width=&quot;268&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 9.3&lt;/div&gt;&lt;br /&gt;
You can right click at the action script frame you want to copy and then choose &quot;Copy Frames&quot; or you can press Ctrl+Alt+C. Then you paste them by right clicking the frame you want to paste and choose &quot;Paste Frames&quot; or you can press Ctrl+Alt+v.&lt;br /&gt;
&lt;br /&gt;
The last frame on this state(walk) that has an action script on frame 14 will have a little bit different action script as seen below.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;../:duck = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;../:block = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;../:kick_01 = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;../:punch_01 = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;if (../:walking == &quot;on&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;walk&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:walking == &quot;off&quot; or ../:status == &quot;stand&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;if (../:status == &quot;death&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;death&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;hurt_01&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;hurt_01&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;hurt_02&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;hurt_02&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;punch_01&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;punch_01&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;kick_01&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;kick_01&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;duck&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;duck&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;block&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;block&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
(See Figure 9.4)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1D45A85faBWJ6_bCf6wV6acRCSgW5AgXur7setqfQAz6vVLIc347T0dtz7nLWPBzBfd3WZinBS1ELcQD3dho1Lvv66ruOnsVBAO-5W_11WmCTcEHPi10n812DYOFAMZ8vmKkFAVawHg/s1600/Clipboard04.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1D45A85faBWJ6_bCf6wV6acRCSgW5AgXur7setqfQAz6vVLIc347T0dtz7nLWPBzBfd3WZinBS1ELcQD3dho1Lvv66ruOnsVBAO-5W_11WmCTcEHPi10n812DYOFAMZ8vmKkFAVawHg/s400/Clipboard04.jpg&quot; width=&quot;296&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 9.4&lt;/div&gt;&lt;br /&gt;
The only different is at line 5.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;if (../:walking == &quot;on&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;walk&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This means that if the parameter &quot;walking&quot; is &quot;on&quot;, then go back and play at frame label &quot;walk&quot;. This is how we loop the walk movement.&lt;br /&gt;
&lt;br /&gt;
That&#39;s it for this part. I think you get the idea for the rest of the movement. On the next part, I will explain how to make your main character controllable ;)</content><link rel='replies' type='application/atom+xml' href='http://flashgame-making.blogspot.com/feeds/4960573376417610807/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/testing-your-character-movement-part-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/4960573376417610807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/4960573376417610807'/><link rel='alternate' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/testing-your-character-movement-part-3.html' title='Testing  your character movement (Part 3)'/><author><name>Chuanasa</name><uri>http://www.blogger.com/profile/15988975148479029365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8-Kl7l9IKiby6lt6wloElz3VwbvO70vouioyw6MfE3wyc0cXY3FEgsUuyeVXqDDZ5ZW1Ba0xNrvLLwcLUpKuUBVNlGbc2RyOzxs53ddQX9yeWbTn_9bPd6nVG1wRjF7-HnyFOFg3L7g/s72-c/Clipboard01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-62922453392314506.post-2843083537836531451</id><published>2011-09-13T15:27:00.006+07:00</published><updated>2011-09-14T19:47:02.234+07:00</updated><title type='text'>Testing  your character movement (Part 2)</title><content type='html'>September 13, 2011&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
Let&#39;s take a look at Figure 8.1. The action script from &quot;command&quot; layer at frame 15 is as the following;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;if (/:breath == &quot;off&quot;) {&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: black;&quot;&gt;// This mean&lt;/span&gt;s that if the value of breath = off&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;over&quot;);&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Then go to and play at frame label &quot;over&quot;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (/:breath == &quot;on&quot;) {&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // On the other hand, if the value breath = on&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;gameon&quot;);&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Go to and play at frame label &quot;gameon&quot;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihnmc3tJWqcG9V9v6RNGf9gMJhM1Rw6xdZOH9BA4v0KNZ2M6PCQMJyDdZfnMddlBOP0qy7c9a1S_KNCZRWyAQsCK5Ns-NBYvpdRFdXW-D2AIVyLrnxw9MZANPmQX47U6RY-jIX-M5kCg/s1600/Clipboard01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihnmc3tJWqcG9V9v6RNGf9gMJhM1Rw6xdZOH9BA4v0KNZ2M6PCQMJyDdZfnMddlBOP0qy7c9a1S_KNCZRWyAQsCK5Ns-NBYvpdRFdXW-D2AIVyLrnxw9MZANPmQX47U6RY-jIX-M5kCg/s640/Clipboard01.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO-K369QEarL-R2SDqGajrH48hqryMQqYWR3r1tcjyhi_ikqpsjX5oY4-rU7XQhld6g3tQFajCPN7e-FE5PaLVeu_Hw9oIw_UrmQzBV7qtFL0fhTNcLonv2IPe-rqLv0Ye7SPkEKMwlw/s1600/Clipboard01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 8.1&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;That is how we loop the game. The game will be playing from frame 5, 6, 7,... to frame 15 and then back to frame 5, 6, 7, 8,... again and again until something happens(that means when the value of breath = off).&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;At frame 20, in &quot;command&quot; layer, there is an action script that says...&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;gotoAndPlay(&quot;over&quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: black;&quot;&gt;// &lt;/span&gt;&lt;/span&gt;Go to and play at frame label &quot;over&quot;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5PrT38qZ0a3HDSgl4tRVGjdhj-jkAkagEZb2bHGgl3yeyzwtpb7fjFmJd1yrsNZDnm4fVW6Zp5ehpFRBK-0kuTz6qhxojd8giwa3eX2UnrtrinzdzQmPkr7fkuGZcOu8Widrwo2gKHg/s1600/Clipboard02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;264&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5PrT38qZ0a3HDSgl4tRVGjdhj-jkAkagEZb2bHGgl3yeyzwtpb7fjFmJd1yrsNZDnm4fVW6Zp5ehpFRBK-0kuTz6qhxojd8giwa3eX2UnrtrinzdzQmPkr7fkuGZcOu8Widrwo2gKHg/s640/Clipboard02.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 8.2&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;As we can see in Figure 8.2, this is how you loop when game is over.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;OK, now that we have set up the game system for testing the movement of this character, let see how we are going to do next.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;If I double click this character(this character is a movie clip), I will be inside as in figure 8.3. Look at the top layer that says &quot;label&quot;. On the time line there are frame names such as &quot;stand&quot;, &quot;walk&quot;, &quot;block&quot;, &quot;duck&quot;, &quot;punch_01&quot;,...ect. Those are the movement the character will perform when we tell it to. &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwWG2dtbti4LBmWFqxlBuDzdcn8GAkjLUdY9FojWXBBDsPLsNbaspwmNyIr-Injj_1P3Jx6-XtGdPV2gtJy5mNZN12LsdnmQfPzY2gQ1t78zSaFvULd_4tmzSWTwIggHG7k_vQ1HniPg/s1600/Clipboard03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;408&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwWG2dtbti4LBmWFqxlBuDzdcn8GAkjLUdY9FojWXBBDsPLsNbaspwmNyIr-Injj_1P3Jx6-XtGdPV2gtJy5mNZN12LsdnmQfPzY2gQ1t78zSaFvULd_4tmzSWTwIggHG7k_vQ1HniPg/s640/Clipboard03.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_zeKPaTH4eSAsPlIRZphl_YdjI3_GAEel_kd1txDRUZBDOd66XWYXTL_TsB27OFFd9hJy7jEK_3S3zuSZWNKItj3TuJCmELP7rz0JqueFEIjP4jjXf1nUiPU_LXK4-CXXDyU-HeSLjg/s1600/Clipboard04.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 8.3&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;At the bottom is a layer called &quot;animation&quot;. This layer contains all graphics for the movement of the red pants dude. Above this &quot;animation&quot; layer, there is a layer called &quot;command&quot;. This layer is very important. For each movement, the action script in this layer will be different. For example, let&#39;s take a look at &quot;stand&quot; frame label. The action script at frame 1 of layer &quot;command&quot; is as the following;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: red; text-align: left;&quot;&gt;Line&amp;nbsp; 1 ../:man_invincible = &quot;off&quot;;&lt;/div&gt;&lt;div style=&quot;color: red; text-align: left;&quot;&gt;&lt;/div&gt;&lt;span style=&quot;color: red;&quot;&gt;Line&amp;nbsp; 2 ../:man_noturningback = &quot;off&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Line&amp;nbsp; 3../:man_hurt = &quot;off&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line&amp;nbsp; 4../:warp = &quot;off&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line&amp;nbsp; 5../:walking = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line&amp;nbsp; 6../:duck = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line&amp;nbsp; 7../:block = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line&amp;nbsp; 8../:kick_01 = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line&amp;nbsp; 9../:kick_02 = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line10../:kick_03 = &quot;off&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line11 ../:kick_04 = &quot;off&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line12 ../:punch_01 = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line13 ../:punch_02 = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line14 ../:punch_03 = &quot;off&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line15 ../:punch_04 = &quot;off&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line16 ../:movement = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line17 ../:punch_link_03 = &quot;off&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line18 ../:kick_link_03 = &quot;off&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line19 ../:kick_link_04 = &quot;off&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line20 if (../:status == &quot;death&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line21 &amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;death&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line22 } else if (../:status == &quot;walk&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line23 &amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;walk&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line24 } else if (../:status == &quot;hurt_01&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line25 &amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;hurt_01&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line26 } else if (../:status == &quot;hurt_02&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line27 &amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;hurt_02&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line28 } else if (../:status == &quot;punch_01&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line29 &amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;punch_01&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line30 } else if (../:status == &quot;kick_01&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line31 &amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;kick_01&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line32 } else if (../:status == &quot;duck&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line33 &amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;duck&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line34 } else if (../:status == &quot;block&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line35 &amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;block&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line36 } else if (../:status == &quot;stand&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line37 &amp;nbsp;&amp;nbsp;&amp;nbsp; play();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line38 }&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;(See Figure 8.4)&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6g5haW7Md9qJaXfRSrL6dC-JpW5Z1Qg-Bl2VyZqmx34cBhcDk9prH1wm7McmufguhSAXkOCmKh2jUIpVREYUGbFmjrkupAIpB1KkiengOeImiUJR4z6DiZMkB3tESWfsyoeg8GLf3DQ/s1600/Clipboard05.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6g5haW7Md9qJaXfRSrL6dC-JpW5Z1Qg-Bl2VyZqmx34cBhcDk9prH1wm7McmufguhSAXkOCmKh2jUIpVREYUGbFmjrkupAIpB1KkiengOeImiUJR4z6DiZMkB3tESWfsyoeg8GLf3DQ/s640/Clipboard05.jpg&quot; width=&quot;598&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 8.4&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;I will explain it line by line just to let you see the idea of each parameter used.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Line 1:&lt;/span&gt; ../:man_invincible = &quot;off&quot;;&lt;/span&gt;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
There is going to be a time that your character is untouchable, during special move, during rolling on the floor, during lying down on the floor, during death(?),... etc. So I use this value to declare invincibility of the main character. When setting it off, the main character can be hit and hurt. When setting it on, he is untouchable.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Line 2:&lt;/span&gt; ../:man_noturningback = &quot;off&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;This value is very cool! I used it to make my character face to the direction he&#39;s supposed to face. Basically, the main character facing the way he is moving. When the main character executes combos(chain of attack movements), he will keep going the way he is facing which doesn&#39;t make sense. Then I have the &quot;../:man_noturningback&quot; value set, the main character can turn back and face at the enemy to attack automatically. This value is set to make the main character smarter. :)&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Line 3:&lt;/span&gt; ../:man_hurt = &quot;off&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;This value is to show that the main character is being hurt or not. Basically, if he is hurt(../:man_hurt = &quot;on&quot;), I will set the condition to prohibit him to move. &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Line 4:&lt;/span&gt; ../:warp = &quot;off&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;There is a frame label I call &quot;warp&quot; somewhere on the timeline. This &quot;warp&quot; movement is the rolling movement of my main character. I set this value to be &quot;off&quot; just to prevent him to do the rolling move at this state. Meaning, I don&#39;t allow him to roll when he is standing. (He can roll when he is ducking.)&lt;/div&gt;&lt;div style=&quot;color: red; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Line 5:&lt;/span&gt; ../:walking = &quot;on&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;This value is to indicate the permission for my main character to walk from this state(&quot;stand&quot;). &quot;On&quot; means he can walk from this state.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Line 6 - 19:&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;The same as line 5. Those values are for the permission of each movement I set for. You can see that some of them are &quot;on&quot; but some are &quot;off&quot;. The ones that say &quot;on&quot; mean it is ok to make that move from this &quot;stand&quot; state. On the other hand, &quot;off&quot; means not allow.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Line 20:&lt;/span&gt; if (../:status == &quot;death&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Line 21:&lt;/span&gt; &amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;death&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;There is a value called status that I set just to show what status of main character is. These two lines show that if the status = &quot;death&quot;, go to and play &quot;death&quot; frame label.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Line 22 - 37:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;They are the same as line 20 and 21. If the value of &quot;status&quot; equals what it indicates, go to the frame label correspondingly.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Easy isn&#39;t it? Let&#39;s take a look at frame 2 at the &quot;command&quot; layer as seen in Figure 8.5.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQbYtRnkKH0X0D-nlUe51XNhbuYT1OO72uyGJM_5uzhU-EC-3HGZpRKkj3OPCcEFRm14vE-0hrm3-iSnNs10N6uGjXFv8xmk8HMTSK2wmLL2b1R3d8l6cDhjiZTKGznc16TlvnRmwIHg/s1600/Clipboard06.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQbYtRnkKH0X0D-nlUe51XNhbuYT1OO72uyGJM_5uzhU-EC-3HGZpRKkj3OPCcEFRm14vE-0hrm3-iSnNs10N6uGjXFv8xmk8HMTSK2wmLL2b1R3d8l6cDhjiZTKGznc16TlvnRmwIHg/s640/Clipboard06.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 8.5&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;The action script you see in the figure is as the following;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;../:walking = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;../:duck = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;../:block = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;../:kick_01 = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;../:punch_01 = &quot;on&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;if (../:status == &quot;death&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;death&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;walk&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;walk&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;hurt_01&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;hurt_01&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;hurt_02&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(&quot;hurt_02&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;} else if (../:status == &quot;stand&quot;) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndPlay(1);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Basically they look the same as in frame 1. I think you get the hang of it on how to set the parameters for the beginning of how to test your character.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flashgame-making.blogspot.com/feeds/2843083537836531451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/testing-your-character-movement-part-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/2843083537836531451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/2843083537836531451'/><link rel='alternate' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/testing-your-character-movement-part-2.html' title='Testing  your character movement (Part 2)'/><author><name>Chuanasa</name><uri>http://www.blogger.com/profile/15988975148479029365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihnmc3tJWqcG9V9v6RNGf9gMJhM1Rw6xdZOH9BA4v0KNZ2M6PCQMJyDdZfnMddlBOP0qy7c9a1S_KNCZRWyAQsCK5Ns-NBYvpdRFdXW-D2AIVyLrnxw9MZANPmQX47U6RY-jIX-M5kCg/s72-c/Clipboard01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-62922453392314506.post-8864605393572255366</id><published>2011-09-08T20:19:00.005+07:00</published><updated>2011-09-13T12:46:02.933+07:00</updated><title type='text'>Testing  your character movement (Part 1)</title><content type='html'>September 8, 2011&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
Here comes the part you are to control your character. After you have done creating your main character movement, the layout on the main time line would look like in Figure 7.1.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwLmZEF4yMoJbMwq0MLHtiqPF_C7YVbuxO1x1eqU8T6GCJHGvqXbDszNMPuyYcgEfg0oFyFUiDYmxTnwx5pjz5sG3_c8T7CfRQdbtfFFi75B6GTb3ams4oNbkKIpiVxDhHdtCz6tD3TQ/s1600/Clipboard01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwLmZEF4yMoJbMwq0MLHtiqPF_C7YVbuxO1x1eqU8T6GCJHGvqXbDszNMPuyYcgEfg0oFyFUiDYmxTnwx5pjz5sG3_c8T7CfRQdbtfFFi75B6GTb3ams4oNbkKIpiVxDhHdtCz6tD3TQ/s400/Clipboard01.jpg&quot; width=&quot;386&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 7.1&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;In this part, I don&#39;t put my preloader in there since it is not needed now. If we take a look at frame 1, we can see that there is an action script written in layer &quot;Man&quot;. The action script at this frame will be the initial state of your parameters.(see Figure 7.2)&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKUPRVi2UShw47Az7fayRyRLv-K3Nx4FwidDcupvY2Pw0Dyh23q8OEeD3b9tkR0v2wF9_GK6yhSmWsnmxKWQKksJCamlRJnjEXvZYjcwDTfBJMF-5qI53qJ8KySt7uMmIWpudi5719QQ/s1600/Clipboard02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKUPRVi2UShw47Az7fayRyRLv-K3Nx4FwidDcupvY2Pw0Dyh23q8OEeD3b9tkR0v2wF9_GK6yhSmWsnmxKWQKksJCamlRJnjEXvZYjcwDTfBJMF-5qI53qJ8KySt7uMmIWpudi5719QQ/s640/Clipboard02.jpg&quot; width=&quot;537&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 7.2&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Don&#39;t worry about those parameters shown in the Figure, I will just guide you the needed parameters we are to use next.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK0CaeD23IGrQ_-pdoN_ltS1KDn2YPz94e3IARi5f7giKqjM_M86Qyc6XXGPcSFAkHQ_nn8-Le1JksCHL7iXe-QeiKO5rezaEWbVWbKeX_8w1uh7XCsQGW9RZZjPaPyYApsjtCkxPKVA/s1600/Clipboard03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;96&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK0CaeD23IGrQ_-pdoN_ltS1KDn2YPz94e3IARi5f7giKqjM_M86Qyc6XXGPcSFAkHQ_nn8-Le1JksCHL7iXe-QeiKO5rezaEWbVWbKeX_8w1uh7XCsQGW9RZZjPaPyYApsjtCkxPKVA/s400/Clipboard03.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 7.3&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;In Figure 7.3, you can see that I put frame labels &quot;gameon&quot; and &quot;over&quot; on frame 5 and 16, respectively, on layer &quot;command&quot;. At &quot;gameon&quot; frame label, we will start game at this frame until frame 15(you can see the action script at frame 15 which I will explain later) and it will loop back to frame &quot;gameon&quot; over and over. We won&#39;t actually need frame label &quot;over&quot; right now but I will explain it here anyway. Later on, you will have your character life bar which refers to your character life. When it reaches zero, your character die. Yeah, the game will have to jump to &quot;over&quot; frame name and will be playing until frame 20(you can see the action script at frame 20) and it will loop back to frame &quot;over&quot; again and again.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flashgame-making.blogspot.com/feeds/8864605393572255366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/testing-your-character-movement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/8864605393572255366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/8864605393572255366'/><link rel='alternate' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/testing-your-character-movement.html' title='Testing  your character movement (Part 1)'/><author><name>Chuanasa</name><uri>http://www.blogger.com/profile/15988975148479029365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwLmZEF4yMoJbMwq0MLHtiqPF_C7YVbuxO1x1eqU8T6GCJHGvqXbDszNMPuyYcgEfg0oFyFUiDYmxTnwx5pjz5sG3_c8T7CfRQdbtfFFi75B6GTb3ams4oNbkKIpiVxDhHdtCz6tD3TQ/s72-c/Clipboard01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-62922453392314506.post-3913509175212135703</id><published>2011-09-07T17:51:00.002+07:00</published><updated>2011-09-13T12:35:02.530+07:00</updated><title type='text'>Characters (Part 3)</title><content type='html'>September 7, 2011&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
I made my main character in Muay Thai 2 by drawing a picture and using F8 to convert it to a movie clip.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYhxC5HPNYPBnISj62b6nhO-4EtAH3xBX6gR6sEl298ArSzBkB5kcnA9uZmmWzFKnJtu_vGpNbspJy64HuCqFJ8RqyvXv1dqeiLtu3sLV8sXAymqHKLACEOzq1qCK6jZc-FahZlCF2Ag/s1600/Clipboard02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;311&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYhxC5HPNYPBnISj62b6nhO-4EtAH3xBX6gR6sEl298ArSzBkB5kcnA9uZmmWzFKnJtu_vGpNbspJy64HuCqFJ8RqyvXv1dqeiLtu3sLV8sXAymqHKLACEOzq1qCK6jZc-FahZlCF2Ag/s400/Clipboard02.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2e5diUfqGnmDy1XfdpmEioGfzOm4wQPsq72qTvA1TnM31rjPXk-exVbnEqQYmH-65ph8tlmYN6q3lz6GObFB7s1ZB-OtFUUHugjqvjgxZhFFiip-_9IgU2lb-n2J5wmDRldbmIoVXTg/s1600/Clipboard01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt; &lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 6.1&lt;/div&gt;&lt;br /&gt;
You don&#39;t have to paint it. Just keep drawing the outline. This way will keep your Flash file small and it won&#39;t take long time when you test your Flash game. I named my main character as &quot;man&quot; as you see in Figure 6.1.&lt;br /&gt;
&lt;br /&gt;
Now we have to get inside this Movie clip by double clicking it.&lt;br /&gt;
&lt;br /&gt;
You can see in Figure 6.2 below how I laid out the actions and labels of my main character.&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-R-kM5vUYsbM6c7QuCQndZOuzGDJ7K_RLhO6ygA1n1aH0ptTJNqARQ6VD0_uMEaKKxu7pUadwWM5JclN1vpdHMXq6O6Rb0aRLCTQ6kwvv0Zn3zH2PPAz7Ikf0e5vgU-hS_68QrkxFdg/s1600/Clipboard03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;176&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-R-kM5vUYsbM6c7QuCQndZOuzGDJ7K_RLhO6ygA1n1aH0ptTJNqARQ6VD0_uMEaKKxu7pUadwWM5JclN1vpdHMXq6O6Rb0aRLCTQ6kwvv0Zn3zH2PPAz7Ikf0e5vgU-hS_68QrkxFdg/s400/Clipboard03.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;Figure 6.2&lt;/div&gt;&lt;br /&gt;
In the layer &quot;label&quot;, I put frame label names corresponding to my main character actions in layer &quot;animation&quot;. For example, in frame label &quot;stand&quot;, I have 4 graphics and each graphic takes 2 frames duration. Take a look at &quot;walk&quot; frame label. I also have 4 graphics and each of them takes up only one frame duration.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS_aOMeZFLafGI56PgB0Ue97Surl3JLkuNuPREhcYJmLHGUjPJ4a4msltBEQhX-eoE8aTqLGb9OYSNL7LPlHTSkBgq2KzOZl7O-vAJ99vPLZNAD7JC_Hvj7NsTlV0E1oV6XnIZzgRw5Q/s1600/Clipboard05.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS_aOMeZFLafGI56PgB0Ue97Surl3JLkuNuPREhcYJmLHGUjPJ4a4msltBEQhX-eoE8aTqLGb9OYSNL7LPlHTSkBgq2KzOZl7O-vAJ99vPLZNAD7JC_Hvj7NsTlV0E1oV6XnIZzgRw5Q/s400/Clipboard05.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;Figure 6.3&lt;/div&gt;&lt;br /&gt;
There will be more than 2 layers later on but right now I am going to focus on how to construct your character first.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYvEi3dSR6Ad4MZeisaY3s8wnItMA6BxyColqT_e1FJjiCm_UURMBP16MF_4ZVb_y12wkYk_5agTLgzNxTiTMKPiy6IfW9wii5gDd2Y_ESF7cpJYLm-LvMRE0r3XY_QPjF11Uc9G7gJg/s1600/OutlineManStanding.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYvEi3dSR6Ad4MZeisaY3s8wnItMA6BxyColqT_e1FJjiCm_UURMBP16MF_4ZVb_y12wkYk_5agTLgzNxTiTMKPiy6IfW9wii5gDd2Y_ESF7cpJYLm-LvMRE0r3XY_QPjF11Uc9G7gJg/s1600/OutlineManStanding.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;I will talk about other layers(especially &quot;coding and action script&quot;) in other topics which is not hard.&lt;br /&gt;
&lt;br /&gt;
Now, I hope you get a picture how to create your character roughly. You could fill in colors for your character just to see how it will look like. For me? I filled colors in when I was sure that the game worked since along the way, you will have to always test your movie and it takes time to compile if you have a colorful flash file. So, just keep it in mind then that to paint it last ;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidOjzOXSQEqULyATBupUNNt1LpYHcixzLisaiqJIOUsjsubGDNdpIyIL3wubMSUf7Se49NXY1jfFiB4DSK-tSY6dLb1b2l22mIkAExmL6LxUOMZ8siFOC3igOU6fvtMU9iP0o8fNieCA/s1600/Clipboard06.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;89&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidOjzOXSQEqULyATBupUNNt1LpYHcixzLisaiqJIOUsjsubGDNdpIyIL3wubMSUf7Se49NXY1jfFiB4DSK-tSY6dLb1b2l22mIkAExmL6LxUOMZ8siFOC3igOU6fvtMU9iP0o8fNieCA/s400/Clipboard06.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;Figure 6.4: The special move from Muay Thai 2&lt;/div&gt;&lt;br /&gt;
Some moves do not require many graphics as you think. Take a look at the animation above, Figure 6.4, the special move. It looks like you have to draw a lot of pictures but if you look more closely at graphic 3 to 6, they are just the same picture. You can reuse some pictures for other actions of your character as well ;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(Note: I like this background color, a bit green and yellow. Since this color was hardly used for my character, it is a good way for checking which part your don&#39;t paint yet. If you use white as background, you might miss painting some white spot on your character.)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://flashgame-making.blogspot.com/feeds/3913509175212135703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/characters-part-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/3913509175212135703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/3913509175212135703'/><link rel='alternate' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/characters-part-3.html' title='Characters (Part 3)'/><author><name>Chuanasa</name><uri>http://www.blogger.com/profile/15988975148479029365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYhxC5HPNYPBnISj62b6nhO-4EtAH3xBX6gR6sEl298ArSzBkB5kcnA9uZmmWzFKnJtu_vGpNbspJy64HuCqFJ8RqyvXv1dqeiLtu3sLV8sXAymqHKLACEOzq1qCK6jZc-FahZlCF2Ag/s72-c/Clipboard02.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-62922453392314506.post-1421983032622944435</id><published>2011-09-05T19:55:00.002+07:00</published><updated>2011-09-13T12:35:55.996+07:00</updated><title type='text'>Characters (Part 2)</title><content type='html'>September 5, 2011&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
When you design a character in fighting game type, you need to know what action your character would perform. Make a list of moves you want him/her to do. For example, my Muay Thai 1, the main guy(red pants), I listed his moves below.&lt;br /&gt;
&lt;br /&gt;
- Standing&lt;br /&gt;
- Walking&lt;br /&gt;
- Guarding&lt;br /&gt;
- Crouching&lt;br /&gt;
- Rolling foreward&lt;br /&gt;
- Rolling backward&lt;br /&gt;
- Punching step 1&lt;br /&gt;
- Punching step 2&lt;br /&gt;
- Punching step 3&lt;br /&gt;
- Punching step 4&lt;br /&gt;
- Kicking step 1&lt;br /&gt;
- Kicking step 2&lt;br /&gt;
- Kicking step 3&lt;br /&gt;
- Kicking step 4 &lt;br /&gt;
- Special move 1&lt;br /&gt;
- Special move 2&lt;br /&gt;
- Getting hit 1&lt;br /&gt;
- Getting hit2&lt;br /&gt;
- Getting juggling&lt;br /&gt;
- Getting up &lt;br /&gt;
- Dying&lt;br /&gt;
&lt;br /&gt;
Gee! That&#39;s a lot, huh? Well, you could do more or less than my list :) Anyway, after you got your list, just draw them out frame by frame. Here are some of my character movements.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLEgXItFVORsWXfZ-e74qQeh55pUR0vAOnpPhUib8iXJSTnUatkuOKNifv6k5hiU6_O5ebLs24c1MskB9-5Sx2hgtRQ3EfMrzqVPFa9kFcFJ9QF2l-MG3juryhz4geXmsXsUstyPy4dw/s1600/Clipboard01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLEgXItFVORsWXfZ-e74qQeh55pUR0vAOnpPhUib8iXJSTnUatkuOKNifv6k5hiU6_O5ebLs24c1MskB9-5Sx2hgtRQ3EfMrzqVPFa9kFcFJ9QF2l-MG3juryhz4geXmsXsUstyPy4dw/s200/Clipboard01.jpg&quot; width=&quot;113&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;Figure 5.1: Guarding&lt;/div&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKsJs8mIigEnVWG2-TZLjAMvmntqUpI9Z9NOqnmtCUzpEtUOJkPTBUNT13qriNaXD1eTrYfGRxgGQWHQs0qkiF1buNCRIcH7XTJje4jygKMQKrwuxCsGOfcKqW4z8i45zBV40yAZutCg/s1600/Clipboard02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKsJs8mIigEnVWG2-TZLjAMvmntqUpI9Z9NOqnmtCUzpEtUOJkPTBUNT13qriNaXD1eTrYfGRxgGQWHQs0qkiF1buNCRIcH7XTJje4jygKMQKrwuxCsGOfcKqW4z8i45zBV40yAZutCg/s1600/Clipboard02.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 5.2: Crouching (crappy)&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsXq6Vzl5twlY1zE8mozQ7CFAYKm2qETD3cQnHNR2VbmAIMSl1Ocwghf9IcqD1fwZPI4H8oDlvRIQ4oMXX2iDsbkoBRl1FCeeruuCZOplE8S793s2vtmsi7kruagRmfblZHzWsoqTE_g/s1600/Clipboard03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsXq6Vzl5twlY1zE8mozQ7CFAYKm2qETD3cQnHNR2VbmAIMSl1Ocwghf9IcqD1fwZPI4H8oDlvRIQ4oMXX2iDsbkoBRl1FCeeruuCZOplE8S793s2vtmsi7kruagRmfblZHzWsoqTE_g/s1600/Clipboard03.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;Figure 5.3: Punching step 1(still crappy &amp;gt;_&amp;lt;&#39;&#39;)&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiID-HEkkuaehOF34kNe9RSQHw7BIHk-Zr_DUZKB2K42Kp-sUV5ueL2bzu-C4WZHNOzwfOwDAI2jsqwDs78c3896-rv-Zssn_SiRnikXLHeTugL8D75KVPP7lI2aLtt3zfqPvc2uAjPUg/s1600/Clipboard04.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;80&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiID-HEkkuaehOF34kNe9RSQHw7BIHk-Zr_DUZKB2K42Kp-sUV5ueL2bzu-C4WZHNOzwfOwDAI2jsqwDs78c3896-rv-Zssn_SiRnikXLHeTugL8D75KVPP7lI2aLtt3zfqPvc2uAjPUg/s400/Clipboard04.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 5.4: Punching step 2&lt;/div&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
Let&#39;s take a look at Figure 5.4. When you make the frame by frame animation in Macromedia Flash, you might want to turn on the &quot;Onion Skin&quot; or &quot;Onion Skin Outlines&quot; as seen below.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPuOp40VmF5GKR9NkCbGy8ZWSDvRpwtLWf1kC80Sz1SiVg6RrwVWdHbFnn5XmpOnmyXEKQjM2RfsCEwVbsMBARVAlv-ikI2c-dvH5e3srWeAPMAUFSWzxim8uxizEg1umWRFfSHlEiTQ/s1600/Clipboard05.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPuOp40VmF5GKR9NkCbGy8ZWSDvRpwtLWf1kC80Sz1SiVg6RrwVWdHbFnn5XmpOnmyXEKQjM2RfsCEwVbsMBARVAlv-ikI2c-dvH5e3srWeAPMAUFSWzxim8uxizEg1umWRFfSHlEiTQ/s400/Clipboard05.jpg&quot; width=&quot;336&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 5.5&lt;/div&gt;&lt;br /&gt;
When you click at the &quot;Onion Skin&quot;, it will show the markers which you can adjust the width of it by dragging the bracket at the right or left side of the bracket.(see Figure 5.6)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8UJurV2t1nLbJ3gHdtt6_IVpO4yTBCQPWU__K64vZW84Ao7SNmNAuCwO777UTfhsJ2ZKsKhsLA7vuqd3YXmb-mLU3XoqxUW8NH8f_9pqyyZ2JstTc2cTYHZ2iAVrb9yjM5GoBOCG1Tw/s1600/Clipboard06.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8UJurV2t1nLbJ3gHdtt6_IVpO4yTBCQPWU__K64vZW84Ao7SNmNAuCwO777UTfhsJ2ZKsKhsLA7vuqd3YXmb-mLU3XoqxUW8NH8f_9pqyyZ2JstTc2cTYHZ2iAVrb9yjM5GoBOCG1Tw/s320/Clipboard06.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 5.6&lt;/div&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;
You can see that it will show the faded image you drew around the onion markers. Then you can animate frame by frame better. For the &quot;Onion Skin Outlines&quot;, it will be just the outline of the graphic(s) in the boundary of the onion markers as show below.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjybKAE83DxYMWfUnLVTb3iig_I86FouTRzy_MCooN7QXs49BcfImnVTBZ2q7rHwdwNXQdNvx_AICm4_3bikLxEfh0k5XD50YpBZxjFoiP2yURNLHDBfSiAcvzdjzD3fyqwQr7Lgwb_JQ/s1600/Clipboard07.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjybKAE83DxYMWfUnLVTb3iig_I86FouTRzy_MCooN7QXs49BcfImnVTBZ2q7rHwdwNXQdNvx_AICm4_3bikLxEfh0k5XD50YpBZxjFoiP2yURNLHDBfSiAcvzdjzD3fyqwQr7Lgwb_JQ/s320/Clipboard07.jpg&quot; width=&quot;276&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 5.7&lt;/div&gt;&lt;br /&gt;
Try it! You can do it. Good luck ;)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://flashgame-making.blogspot.com/feeds/1421983032622944435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/characters-part-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/1421983032622944435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/1421983032622944435'/><link rel='alternate' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/characters-part-2.html' title='Characters (Part 2)'/><author><name>Chuanasa</name><uri>http://www.blogger.com/profile/15988975148479029365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLEgXItFVORsWXfZ-e74qQeh55pUR0vAOnpPhUib8iXJSTnUatkuOKNifv6k5hiU6_O5ebLs24c1MskB9-5Sx2hgtRQ3EfMrzqVPFa9kFcFJ9QF2l-MG3juryhz4geXmsXsUstyPy4dw/s72-c/Clipboard01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-62922453392314506.post-5723505099260039559</id><published>2011-09-02T13:14:00.005+07:00</published><updated>2011-09-02T16:20:35.041+07:00</updated><title type='text'>Characters (Part 1)</title><content type='html'>September 2, 2011&lt;br /&gt;
______________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
This is a 2-Dimensional game(2D game). So, most of characters in this game I drew them myself. If you are not good at drawing and painting. You probably look for free sprites from anywhere you can get from the internet. If you draw something in Flash, the graphic will be vector. If you use sprites from somewhere else, the graphic will be bitmap.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh85FQd43OSiG9Y2SvXZKJTt8MmPxa9HJmLOBGzi4juUkanCHqcjsDl8Yj2UHU2fhsKISzNxg32mj9sSZOFnGXsTrHyxgGemrHNqSw79xTAUONdAGDSaFmUIfTxD6KFhJ0k59YMaVeW6g/s1600/Clipboard22.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh85FQd43OSiG9Y2SvXZKJTt8MmPxa9HJmLOBGzi4juUkanCHqcjsDl8Yj2UHU2fhsKISzNxg32mj9sSZOFnGXsTrHyxgGemrHNqSw79xTAUONdAGDSaFmUIfTxD6KFhJ0k59YMaVeW6g/s1600/Clipboard22.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 4.1 Drawn in Flash&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;left&quot;&gt;Vector graphics comprise mathematical representations of lines, fills, colors, and gradients, whereas bitmap graphics are a pixel-by-pixel representation of the color, and optionally, alpha channel information in a visual element.&lt;br /&gt;
&lt;br /&gt;
The greatest advantage that vectors have over bitmaps is that they can be scaled (both up and down) and translated without losing any fidelity. After all, you&#39;re only performing basic addition, multiplication and matrix operations on mathematical formulae. Flash is regularly spoken of as a &quot;vector animation tool&quot; although it can (and does) handle bitmaps really well too.&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
Bitmaps, on the other hand, also have several advantages over vectors. Vectors, especially complex ones, can be both larger in filesize (and thus bandwidth requirements) and slower in performance than the same visual element rendered as a bitmap.&lt;br /&gt;
&lt;br /&gt;
Anyway I prefer drawing my character in Flash. Here are all my characters for Muay Thai 1.(see Figure 4.2)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguuDGv36tn722wO7FedbTRb3KyzxSap9SsS3kH1weBGaVI9WyoplTmkY0sOynTDuRINJ59etWJXDCtlSatJjrVdEX0eCFEP5ePQybocZ89iAcwxghAwXd7-BJYpSFmSKU7xQu-Uiwdpg/s1600/Clipboard21.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;261&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguuDGv36tn722wO7FedbTRb3KyzxSap9SsS3kH1weBGaVI9WyoplTmkY0sOynTDuRINJ59etWJXDCtlSatJjrVdEX0eCFEP5ePQybocZ89iAcwxghAwXd7-BJYpSFmSKU7xQu-Uiwdpg/s320/Clipboard21.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 4.2: Characters from Muay Thai 1&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;Some of these characters don’t have names. My main guy is with the red pants. His name is “Goh”. Hahahah,&amp;nbsp; you should know the guys from Street Fighter. They look pretty crappy. I did not put a lot of time drawing them back then. Figure 4.3 shows all my characters from Muay Thai 2.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga9ySIIX0CncHkjUnpim06U1y9_-siOlpHXEaFuayxCoz0dCj4frf76HEK5NWYf0O5XVXKN1CIsK8enjzJjP-Jff3SkouHmLvTEdTUc90mZgZKE4s-eSbwWxndzaX4WTYW8JnvF42Ppw/s1600/Clipboard23.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga9ySIIX0CncHkjUnpim06U1y9_-siOlpHXEaFuayxCoz0dCj4frf76HEK5NWYf0O5XVXKN1CIsK8enjzJjP-Jff3SkouHmLvTEdTUc90mZgZKE4s-eSbwWxndzaX4WTYW8JnvF42Ppw/s400/Clipboard23.jpg&quot; width=&quot;306&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 4.3: Characters from Muay Thai 2&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;Let’s talk about how to design your main character. First thing to think about is the basic movement which could be standing, walking, crouching, guarding, etc. Then we will go to attack movement, i.e. punches, kicks, special moves, etc.&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;-Standing-&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;left&quot;&gt;If you just put only one graphic for a standing pose for your character, he would be really bored(if he could feel anything). In Muay Thai 1, I did put only one graphic because I am too lazy :p And yes, my red pants guy told me he doesn’t like it.(see Figure 4.4).&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0YEd5i6RgBQPqX9AvONoLiecvVk0aYmNz5DolN6qupimnf8SvmzmfRGOju-kkpWfABwXfbXxzeNQPfc5wNyZPVMoF1hLCV5osrBW1EWkU5IHPxKZd87IG0Rk_fj1-CvjAQqw2K8e74w/s1600/Clipboard24.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0YEd5i6RgBQPqX9AvONoLiecvVk0aYmNz5DolN6qupimnf8SvmzmfRGOju-kkpWfABwXfbXxzeNQPfc5wNyZPVMoF1hLCV5osrBW1EWkU5IHPxKZd87IG0Rk_fj1-CvjAQqw2K8e74w/s200/Clipboard24.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 4.4&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;So, in Muay Thai 2 I do loop to my main character as seen in Figure 4.5 below. This makes my character more interesting even though he is just standing ;)&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8OOlutb8fL6npob_IaobgcxBkA7TiaZuwTr6CX5laLq8t2RZDSQqKhqjSlpxGy4f_TRseNPhcDjHWuiyFx6KA72ni6tHhTYo1Pue-Ok9NeQ8fBezuSjTMg63yyYrlnNP3POxJ_gXG5g/s1600/Clipboard25.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;95&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8OOlutb8fL6npob_IaobgcxBkA7TiaZuwTr6CX5laLq8t2RZDSQqKhqjSlpxGy4f_TRseNPhcDjHWuiyFx6KA72ni6tHhTYo1Pue-Ok9NeQ8fBezuSjTMg63yyYrlnNP3POxJ_gXG5g/s200/Clipboard25.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEPscl2HFXS0FPQ_sARp4b-Irnoyf-u2wOY6SfursDD0Ms58UhievKGeU_GWhb8g0Emyid02nNga6SuCt4jC3f5-6ZP7EpIxETjMMT5EYNyzASASq-1PwXu1-YhzuawR1DsTCBXLSHpA/s1600/ManaMuayThai2.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEPscl2HFXS0FPQ_sARp4b-Irnoyf-u2wOY6SfursDD0Ms58UhievKGeU_GWhb8g0Emyid02nNga6SuCt4jC3f5-6ZP7EpIxETjMMT5EYNyzASASq-1PwXu1-YhzuawR1DsTCBXLSHpA/s1600/ManaMuayThai2.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 4.5&lt;/div&gt;&lt;br /&gt;
I drew only 3 pictures to run standing loop. As you can see above, the 2nd picture and the 4th picture are the same picture.&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
___________________________________________________________________ &lt;br /&gt;
&lt;br /&gt;
-Walking-&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;br /&gt;
The same thing goes for walking here. As we can see from Figure 4.6 below, there are 4 states of walking animation(I drew all 4 states). &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCBX0wB4b-YWdhf0YEo0lugvYoZZ8ZI_gRAQWgsmMddI-7f-Kg_UgpovKME7dMY1ttxa0wIyfPnMjidKJpjCKvHjRc0xMOTjP7lIblXPA5pchY3129IWHmXTE7PKav_dzPX2s413OuCA/s1600/Clipboard26.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;100&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCBX0wB4b-YWdhf0YEo0lugvYoZZ8ZI_gRAQWgsmMddI-7f-Kg_UgpovKME7dMY1ttxa0wIyfPnMjidKJpjCKvHjRc0xMOTjP7lIblXPA5pchY3129IWHmXTE7PKav_dzPX2s413OuCA/s200/Clipboard26.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgemtWQwz22heeXzy2pe6jtLPGTVD6fpzrYrZnENENiIZfni7RWcYLbYpYP4xk81o-tzhTMPiti-Yg7BWGbZL75j30_-OpnQKoShRgWr7BbpJL_kAFpeuC7SOg5QEF_Oxu-5eCiTAZwLQ/s1600/GohWalking.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiD2eekt6EjElHhdAVuEY-9wKkLBmI8FnnrYU2nvfZkfsR26OaKXH8NefMQdI3Q-OhClL3ejG6K1a6rcR3OWEqS1dLKKYPhAhSq5p1CnNcgQV94eYDsw60whwpVzP3iwIuJ0o_a_UpXQg/s1600/GohWalking.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiD2eekt6EjElHhdAVuEY-9wKkLBmI8FnnrYU2nvfZkfsR26OaKXH8NefMQdI3Q-OhClL3ejG6K1a6rcR3OWEqS1dLKKYPhAhSq5p1CnNcgQV94eYDsw60whwpVzP3iwIuJ0o_a_UpXQg/s1600/GohWalking.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 4.6: from Muay Thai 1&lt;/div&gt;&lt;br /&gt;
Let&#39;s take a look at walking animation from Muay Thai 2 in Figure 4.7.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiqxmItz7I0UhyphenhyphenvVZ_-FscJ5V5fOQZJyl379kl1lJ_Ye5NYIQ8fOTSu5iQfuUhFw94U8WWbUAyJ_eCOsKWKcWA85l2IpcY2yaVGda2CKmutRZmoueweeGl6GkycKgPVD_bm2Sra_X4xg/s1600/Clipboard27.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;93&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiqxmItz7I0UhyphenhyphenvVZ_-FscJ5V5fOQZJyl379kl1lJ_Ye5NYIQ8fOTSu5iQfuUhFw94U8WWbUAyJ_eCOsKWKcWA85l2IpcY2yaVGda2CKmutRZmoueweeGl6GkycKgPVD_bm2Sra_X4xg/s200/Clipboard27.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjthyw3AC1bsExVCnxDpEUIr8Md0MOj5jlguD4k2D3TmyFV7C2WF-_Xkc3hLl141OREzos6Wsi14HFj5GYGemx1sxZ9peB4o1jdEMfsBh0XsI-Eg2A_VU_NP5C3vTXSWuzgFxqOYv8MYA/s1600/ManaWalking.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&amp;nbsp;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjthyw3AC1bsExVCnxDpEUIr8Md0MOj5jlguD4k2D3TmyFV7C2WF-_Xkc3hLl141OREzos6Wsi14HFj5GYGemx1sxZ9peB4o1jdEMfsBh0XsI-Eg2A_VU_NP5C3vTXSWuzgFxqOYv8MYA/s1600/ManaWalking.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Figure 4.7: from Muay Thai 2&lt;/div&gt;&lt;br /&gt;
Only 4 pictures would be just fine to animate walking motion.&lt;br /&gt;
&lt;br /&gt;
___________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&amp;nbsp; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flashgame-making.blogspot.com/feeds/5723505099260039559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/characters.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/5723505099260039559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/5723505099260039559'/><link rel='alternate' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/characters.html' title='Characters (Part 1)'/><author><name>Chuanasa</name><uri>http://www.blogger.com/profile/15988975148479029365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh85FQd43OSiG9Y2SvXZKJTt8MmPxa9HJmLOBGzi4juUkanCHqcjsDl8Yj2UHU2fhsKISzNxg32mj9sSZOFnGXsTrHyxgGemrHNqSw79xTAUONdAGDSaFmUIfTxD6KFhJ0k59YMaVeW6g/s72-c/Clipboard22.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-62922453392314506.post-8442948043837819628</id><published>2011-09-01T15:11:00.005+07:00</published><updated>2011-09-13T12:43:13.703+07:00</updated><title type='text'>Parameters</title><content type='html'>&lt;div align=&quot;left&quot;&gt;September 1, 2011&lt;br /&gt;
________________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
Games that show scores, number of lives left, items you collect, status, stats, etc... all of these games need parameters to be set up.&lt;br /&gt;
&lt;br /&gt;
In Flash, it&#39;s very important to set parameters that you are using in your game at the beginning. As we can see in Figure 3.1, I just set my parameters in the second frame.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp-zfPop3s3eC2LpQQ-w091DSHG5ya19l9uEyefkclRy0l06jMm_f_JQAY_UDa_cmwccyDl6t8baKgPxCi4fzFl8D7g1SsCoFTlyd_Ev23EolfKyV5eLxXh-5SbFjRXZjf2lYpFneuDw/s1600-h/Clipboard01%25255B4%25255D.jpg&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Clipboard01&quot; border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPyKXgKphjRFJcXk290RlBhebu7ItA7NOVnL3kTIARMYeoMsZts4hwO5n1KF_Imqij6hm2VBoBT86PNffMIb7HvsSXYXYthCBvN7lhGi2lLvGVQTSANYLg9trBe5wlTHyN1Ip6ibud5A/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;Clipboard01&quot; width=&quot;595&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Figure 3.1&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp; &lt;/div&gt;As you can see there are a lot of parameters in Actions panel. At the beginning of my game making, I don’t have this many parameters. It was just added up along the way when I keep making my game until it is done. For example, if you look at the Actions panel, line 1, you will see…&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;set_enemy = 3;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
“set_enemy” is a parameter that I made it up.&lt;br /&gt;
“3” is what I set up for number of enemy in the game.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
Another example we can look at is at line 24 and 25.&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;bg_x = 275;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;bg_y = 190;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
“bg_x” is a parameter that I will use for one of my backgrounds in x position.&lt;br /&gt;
“bg_y” is a parameter that I will use for one of my backgrounds in y position.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
OK. That’s the basic to set&amp;nbsp; your parameters at the beginning of the game. Now, let’s take a look at how we use it when we make a game. Figure 3.2 shows the background that I used in Stage 1 for Muay Thai 1. If I click at my background to select it, you can see the script on the Actions panel as the following.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line 1:&amp;nbsp; onClipEvent (enterFrame) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line 2:&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._x = /:bg_x;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line 3:&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._y = /:bg_y;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line 4:&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (/:bg_x &amp;lt;= -275) {&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line 5:&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /:bg_x = 825;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line 6:&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (/:bg_x &amp;gt; 825) {&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line 7:&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /:bg_x = -265;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line 8:&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Line 9:&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;left&quot;&gt;(My background is a movie clip behavior. There are 3 types of behavior in Flash, movie clip, button, and graphic)&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNsIQk7Ou_Ofcu8hPVA9DOJbZuyvSjtiJ0MgUYTRqE_zql4z9-H5gm2E9cKJsqHkszjazwZd8clZdlWOBTL4E0FdjwH7CtMsHtgxRannPtR1V0WmykfZbcW-STTG_S-_-SzLR_S5R5wg/s1600/Clipboard02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNsIQk7Ou_Ofcu8hPVA9DOJbZuyvSjtiJ0MgUYTRqE_zql4z9-H5gm2E9cKJsqHkszjazwZd8clZdlWOBTL4E0FdjwH7CtMsHtgxRannPtR1V0WmykfZbcW-STTG_S-_-SzLR_S5R5wg/s640/Clipboard02.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIIJ2bMxl5idTuVRuLp_g5NXFKvEDo6LUyYxq-wCYSk829xUYEl9jwHErINuXJh_vAiPFoGYr-tsatTayHAjFUmto86Kp1-PBO9jThQjl77oDz-djoscyMILiFfMX8nNIHor63E9JG0w/s1600-h/Clipboard02%25255B3%25255D.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;Figure 3.2&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;Let’s see what is going on on the script line by line.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
Line 1, the “enterFrame” tells you that when the game runs through here, this script activates.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
Line 2, “this._x” is the x position of my background (since I am selecting my background, I can use “this._x” where “this” refers to the thing that I select). I set it to the parameter of “bg_x”. Remember this “bg_x” we talked earlier above? (bg_x = 275; in Figure 3.2) &lt;br /&gt;
Do you see that I use “/:bg_x” instead of “bg_x” alone? It’s because whenever you refer to a parameter that you set value at the beginning, you have to put “ /: ” before the name of the parameter. Or you can use _root.bg_x instead.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
Line 3, the same thing but for y position of my background.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
Line 4 – 9 are just trying to make the background in boundary since this background will move according to the movement of the main character which I will talk about it later.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
OK. I will show you how to refer your parameters. Look at Figure 3.3, you can see that I set x = 2, y =3, and z = 4 in the first frame at Scene 1.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimPngAEYSHoC9CqGV1zOw0-FwzUcZexZryWGW8THyUKDiO4igBcGrF2LmSp4Wnx4yjbMlFIav7Bff15MNeUiXthmeSBBXAF-CkskwGjolLDsLWh_iLet3nREMsrUABzA6tU6BuhkXKdA/s1600-h/Clipboard06%25255B3%25255D.jpg&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimPngAEYSHoC9CqGV1zOw0-FwzUcZexZryWGW8THyUKDiO4igBcGrF2LmSp4Wnx4yjbMlFIav7Bff15MNeUiXthmeSBBXAF-CkskwGjolLDsLWh_iLet3nREMsrUABzA6tU6BuhkXKdA/s1600-h/Clipboard06%25255B3%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard06&quot; border=&quot;0&quot; height=&quot;410&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjTIH0qjb8VPnOentJgT-m7fWsU5qqKgqBnf2P1jbD_zP2xl93-i6r785t4euTlnXdbwyGdcCfoHX1cTomygQn6XuXauQCeUGXUAjLf4b6FtGFxw_0wD-6IUgt8oW30GSMlgHJU77eHQ/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;Clipboard06&quot; width=&quot;433&quot; /&gt;  &lt;/a&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;Figure 3.3: I create a blue circle using “Oval Tool” and then I press F8, &lt;/div&gt;&lt;div align=&quot;center&quot;&gt;name it as circle 1st level(movie clip type)&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;left&quot;&gt;If I say,&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;m = x; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;n = y;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;p = z;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
Here, I will get&amp;nbsp;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;left&quot;&gt;m = 2&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;n = 3&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;p = 4&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
The blue circle is my movie clip named “circle 1st level”. Double clicking&amp;nbsp; this blue circle will bring us inside its movie clip as seen in Figure 3.4.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqOuwdw0y6gH0gLqkJSJNKWxYN7QGua4QeIfDDOkcbpdsIfdyYBbUO0rN6EfBjJ0INwbqQCf379GMrJ59ajx2XICtuH4avmtYJhZA87SMFe9pWyPEZbKGkUxNJgl8K8OUb3a4gALj6bA/s1600-h/Clipboard07%25255B3%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard07&quot; border=&quot;0&quot; height=&quot;357&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR_3_TvODuHyhTQTpihSLU_PmR-9dETpj78E0QnLIFys3HqYWmS97nmFfqw3CQ_KaxeZ-Qiz98oRDQoHHNWy1uKTjUcSGtw9zTg14JL3EEltB-6FmEKj62VzErQMH6JcOoXh87_ZnrGA/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;Clipboard07&quot; width=&quot;451&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 3.4&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;In here, I set x = 20, y = 30, and z = 40 at the beginning of frame 1.&lt;br /&gt;
If I say&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;m = x;&lt;/div&gt;&lt;div style=&quot;color: red;&quot;&gt;n = y;&lt;/div&gt;&lt;div style=&quot;color: red;&quot;&gt;p = z;&lt;/div&gt;&lt;br /&gt;
I will get&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
m = 20&lt;br /&gt;
n = 30&lt;br /&gt;
p = 40&lt;br /&gt;
&lt;br /&gt;
But if I say&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;m = ../:x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;n = ../:y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;p = ../:z;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I will also get&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
m = 2&lt;br /&gt;
n = 3&lt;br /&gt;
p = 4&lt;br /&gt;
&lt;br /&gt;
One more time, if I say&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;m = /:x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;n = /:y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;p = /:z;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
I will also get&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
m = 2&lt;br /&gt;
n = 3&lt;br /&gt;
p = 4&lt;br /&gt;
&lt;br /&gt;
Now I select my blue circle again and press F8 to name it as “circle 2nd level”(movie clip type). Then I double click on this blue circle to get inside it again as seen in Figure 3.5.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwrxjii5jDPbI1_VCpC73vkT0skos_NmEnU8loBhyphenhyphenqS_zJNqcrlIzbOUxEMJM-VZJfqNG1DGfsK9-1mnv_Qp1Xwj2320vxK6AvPhmYkc0ZiIk51I4qrWm4wvQqxUzuTMA6UhsPOhGhlA/s1600-h/Clipboard08%25255B4%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard08&quot; border=&quot;0&quot; height=&quot;349&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFUetImmUxfrIdeOCqCsCAxhy92kyqcsOsTiG0DEpglC3mg_ZNhTrpukcvZkgvxqmznx-fsrYhqCOJL7YEQP9x-XGNaDBx4b29deJCBTCt5LerPhz_XXdxpS9kajfKuvpHJM0ICktNuA/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;Clipboard08&quot; width=&quot;474&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 3.5 &lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;In here, I set parameters x = 200, y = 300, and z = 400 at the first frame as seen in the Figure. &lt;br /&gt;
If I say&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;m = x;&lt;/div&gt;&lt;div style=&quot;color: red;&quot;&gt;n = y;&lt;/div&gt;&lt;div style=&quot;color: red;&quot;&gt;p = z;&lt;/div&gt;&lt;br /&gt;
I will get&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
m = 200&lt;br /&gt;
n = 300&lt;br /&gt;
p = 400&lt;br /&gt;
&lt;br /&gt;
But if I say&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;m = ../:x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;n = ../:y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;p = ../:z;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I will also get&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
m = 20&lt;br /&gt;
n = 30&lt;br /&gt;
p = 40&lt;br /&gt;
&lt;br /&gt;
One more time, if I say&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;m = ../../:x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;n = ../../:y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;p = ../../:z;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
I will&amp;nbsp; get&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
m = 2&lt;br /&gt;
n = 3&lt;br /&gt;
p = 4&lt;br /&gt;
&lt;br /&gt;
And here, if I say this&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;m = /:x;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;n = /:y;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;p = /:z;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
I will also get&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
m = 2&lt;br /&gt;
n = 3&lt;br /&gt;
p = 4&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
For those of you who want to really see how to check for m, n, and p I was talking about, you can do as the followings.&lt;br /&gt;
First go deep inside your blue circle at “Circle 2nd level”.(see Figure 3.6)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim5jRRHEF99BFF-jxS2DZpyDrA-GYqrEML2mn9-3GqJ7TIm-3y0De6CxotJlf8qurKsG45TCWLEVhbB2QD9arMfcsXbfN1wLXB179IIOLgi-ILa1bOwC6RLbC2G3MSichoR71Blc967Q/s1600-h/Clipboard20%25255B4%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard20&quot; border=&quot;0&quot; height=&quot;380&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5y0kO0WQoiuNdD2P-ta-Jh3zSwPg_Mzg1ncuLS1OLUyBzuvXKG-KlO8-UxMsF72wZ98DQmZhrY9Y0ORglKtRkbJzhxhq8aWOE7PEOdMtZJVB4qnczt8eFuBKOYArXPBdO6o8LTaTVmQ/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;Clipboard20&quot; width=&quot;416&quot; /&gt;&lt;/a&gt; Figure 3.6&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;Use the Text tool as shown in Figure 3.7 below.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoZIqDQkz4_xGN85hBm9AQ8eucZ1_uv10heCd8FUkFfP0PJgpcqTYSxKKEKTJSdhSTg77PAxhu3_OL37DZgtldzqKI42uYl80l4gsR9CEvP8JElRoSngEFWlwASUVDcpKab0oF-M4TwQ/s1600-h/Clipboard09%25255B7%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard09&quot; border=&quot;0&quot; height=&quot;327&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGOQ0na-m9_1UuG1h3tBkrlpgyPuTJrEA4-GxOVnZ6Wfi3XxXxxoHLX8U00WJgo8w-99b-cdavIUkYnEFly-M9R4SLPrHg_cb_NpEmpNTw4n3_7ygd3jrtrlYpYJtFOM29DZ7yzeUH2g/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;Clipboard09&quot; width=&quot;419&quot; /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 3.7&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;Place your text like so. But hold on! Before you put any word in the text box, look at the properties tab down below(or press Ctrl + F3).(see Figure 3.8)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpuN7GU9tGc4M11-hjj6fJqLjYgv9F_bTldL9UYKiZ_eFlCQGQjR-dqUqg_d0cAHqbxZQBvklkA8dzAFVvXLKnGRcmbx7e1P3trYfhFhj7B-WS2vWWGjKzYhnGT2xpEnUAbKv2niL0Bg/s1600-h/Clipboard10%25255B3%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard10&quot; border=&quot;0&quot; height=&quot;431&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOqVzJn7U4Oy_r_NPAcAAS3aLTh4ekXp_kxjuziVIRTdEkexNeMsG_Xkb11ZyKlaVp02m_sZSBfZQ4tN7BUWy4dCz-PI-MnyKO9Ug4VepvgACdv-G2tu4aiCa6pox5Yp7Fm6bTPxCfog/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;Clipboard10&quot; width=&quot;294&quot; /&gt;&lt;/a&gt; Figure 3.8&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;You will see a dropdown menu for text type. Change it to “Static Text” as in Figure 3.9.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO4y7rPKK7VpNMswCTiTKtIm2G2wb6IP-FNl4BaRd1NMOWKmsPpoRKV5a-nQsF9arysHBIJcCa1DE33m8PSFN04yyQ0bIhkokBLoAC4AO73w1XgyH2hXyefhluRoinlIamSV2JlNsO0A/s1600-h/Clipboard11%25255B3%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard11&quot; border=&quot;0&quot; height=&quot;177&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8xbEqokvzvkIeK2NEB74ig4oJpbmNEzxUVVN0tBrwAELlIuZdHZdDsDvvYYURIEgC5RATBoElKKN4H66lfnjCq3J1Go-NloVQKXTIPshZvArPItZ7HCN7bNT1jrxQbkZ96Y3KQnSv7w/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;Clipboard11&quot; width=&quot;286&quot; /&gt;&lt;/a&gt; Figure 3.9&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;Now, type in your text&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
m = &lt;br /&gt;
n = &lt;br /&gt;
p =&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
(see Figure 3.10)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCTdmTCkNVI9lZ0CRdA6sHsN02cQoZAg2KM8tbmADXjeLUHAa-OCwzRN5XB04o2BKn8TG_Kc48kD5OPjwvgokzUYixt1k-B7VzKmrfSAPhVxDFrME3VzI8SovqlgJzvu-_CN82HMe5Zw/s1600-h/Clipboard12%25255B11%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard12&quot; border=&quot;0&quot; height=&quot;304&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM4JnGNxKIJDegvcfzapp4fezEGScGSUWJdVLg1VnbG8PCBq6aegKikMc12C85UPKXhCOpDXPFR8jCGyg5UNBWfuhCsC05wj1YncOy3egKkznJGav4Wvf29w6GOlSOH9eCQFpRg08K-A/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;Clipboard12&quot; width=&quot;331&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 3.10&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/div&gt;Next you will put the other kind of text called “Dynamic Text” next to m, n, and z. Use the Text tool again and place it as in Figure 3.11.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuHjSde3aVbztt955oD-M7qUtruYRMyrxKCEjVc8jsX-NhIfQclTPxFf33HUUc4T4SbeznjO84IflAH3ym0_0C-LFwcbUTrHGHR684T6Gkxr64XmHEwF-0Ah69xd4Qf1uBSmHxmSK5Wg/s1600-h/Clipboard13%25255B13%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard13&quot; border=&quot;0&quot; height=&quot;347&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaKRlQqtu2WJ12s7WH8sNGlBI6dZHhFHoflf8qkG3hFLPQgpKt4U4qwLiWGQfBM55w8Md3MknXQTxqyNjPV3z_lOGrL5inDZY8UHGvNpxIqCbUmuE6df1hfqRozjDdj2uYj4IoU3pv0g/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;Clipboard13&quot; width=&quot;355&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 3.11&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;Change the text type to “Dynamic Text” as shown in Figure 3.12 below.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU82bxzclJ3b0KRd3OVrB3Cb92vhyphenhyphenhxyTB-urV1J8zpPOjYPXXUvTm9glh_82I5UxTFzqfIWpkvDmZPrnrR-3GsTxi5phPUmMcsH7yXy7iCSvRtvsqxMJF1HjKOm0JEKLMLaYESFttcw/s1600-h/Clipboard14%25255B3%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard14&quot; border=&quot;0&quot; height=&quot;130&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE6X3ayQ_FXw0yFv3ufRpBM8sqSef0ltLSaj_B0WcftxSfee_Y-DAGAQmkb-Ny3q5En2F7eR66ziVYXuKJKOucVcsNFNNPEQKq2mDVZQXB9pKI_8KOc19abaYiM_iTxtlyW_97e-n73A/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;Clipboard14&quot; width=&quot;318&quot; /&gt;&lt;/a&gt;Figure 3.12&amp;nbsp;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;Type “00” in your text box(Note: you can actually type anything in there, try it!) as seen in Figure 3.13.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh933nsp4KNUMQeRlK7eT5ozQ87CIV7rRlGo24kwhxGSLC3yg_XilPN5p5K-7r3sb_QqAieE0kAgfTkLhZusmIFu4z-y0dojRYgCrwRuxuYQsYEe0v5AvsVmtuMu0m9OPAFaj_OFCpJJg/s1600-h/Clipboard15%25255B8%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard15&quot; border=&quot;0&quot; height=&quot;301&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDrx0Ft-TL3eT_zHiYoAm5Imzeyd0JUca5rg1RiuFGNvdKPRL8y_bfhe4CYMO4c3jQbeKS1nwFH2JOoWByp-4kjRQ09OEKuBZXBnF4Z2-Hn4zzf-BTY-TlYxh8h2oWAzpIkPgbERXnMA/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;Clipboard15&quot; width=&quot;418&quot; /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 3.13&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;If you look inside the properties tab, you can see the box labeled “Var:”. This is where you put your parameter in. For this case, you can put “x” in there as in Figure 3.14.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGbylsBukpnnQT5j2_N8SKwJGrWV3YXQSiXS66JwFeFFSeseXt0oAl7AdYUn-GMpIe4VNhpwtfnauejbh90bMPPeCXIxGraQsNhPLC93xgSnAnkcLlqtGCQzlOpiq71k3IFZQO3g-DBA/s1600-h/Clipboard16%25255B7%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard16&quot; border=&quot;0&quot; height=&quot;314&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLz6jeskgbuC8phbAfB9PJBteeJ7rJ8O7g6FVttuSBi6-IaIjKZuALAjs9iau4rJHRPPd4hPnN0z_0k-rvuzjOopc0N8uGesD7wJ2n7yeKm8aw6v-s2VIeydVD4Q7QgFni6zY3FUaflw/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;Clipboard16&quot; width=&quot;409&quot; /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 3.14&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;Do the same thing to n, and p. (see Figure 3.15)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiquWGTPzAn2rnGbS14-aCX3fEOo_IN0YbRKtulanOPa6uCs3R-LB-79E-yiGzxAOgG8UGI_pO7lYBnlc6mN9yLh1b-49NOqeP2_4AOLKcy-KAX79tHhOvUKoO3GpFl3pdtV3snEHPTPg/s1600-h/Clipboard17%25255B8%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard17&quot; border=&quot;0&quot; height=&quot;316&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht_Ghuw7l_UrVcOAnyutgjz1BmC5GxlemdKA3LKsTTWzHJcUrLBg1QT5zyeGVXBFe66xCmbJ5pg9npxyiqO88o3ZYGa8pLQJFkm5RkzRR-4-4UvMUort9r9PnINa2NGLPIlqb4wbaVIg/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;Clipboard17&quot; width=&quot;420&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 3.15&amp;nbsp;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;And put Var: as y, and z, repectively for n and p. Now test your file by pressing Ctrl + Enter or go to Control –&amp;gt; Test Movie (see Figure 3.16)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT0vQ8kz3iTUxvbftRE-LR3qvqiAf_wlImnol2IC_EiiXh-m920tmtnksDVWG0o7sh0B3IAvNak2jCgJIZ2oddOpAx1wm_VH_w6d4TV0hg7XZ17Wg3CQI2blKl5NYnhQ2JbDLOlFWAxw/s1600-h/Clipboard18%25255B4%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard18&quot; border=&quot;0&quot; height=&quot;211&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_HTWC06kLrL7PnrchqItujSXEsK5-gGcFgARRONeKw5cjPoyLtmbzAkX5BC8uPUBAM6RSoljzHRA4Juif5QqHvoEYlaxxlKyDaFNU10NBquc-JElp34dTJPii-r6eIxeFHzSR6LqlFw/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;Clipboard18&quot; width=&quot;442&quot; /&gt;&lt;/a&gt; Figure 3.16&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;You will see your movie showing up as in Figure 3.17.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV7cLacc6mCBCNoC1hrXWOB2xO-xkK5mNWJMtUgsU3mq6smwsKvesQEZK9koc04kj0z59fLHTHGuOPd6rJXmj-nVv_-uFUkx7xMnMHzxTlvLErfIG9TTzB3-tNSuz0EhQpcOl1bvN0_w/s1600-h/Clipboard19%25255B7%25255D.jpg&quot;&gt;&lt;img alt=&quot;Clipboard19&quot; border=&quot;0&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPxZQP7QK-Iirtr526JNdT8nu-Z5dDfpsMs0a46gG068h1M7oeiGfCjUR8CwHgVnH1K19ifzfSX7TMUKdBsrVE7ddTDJWVRBLkBbd5DO1NdjUUoUEL-DND1YEYzb-jXvMGu13_u8FTCA/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;Clipboard19&quot; width=&quot;396&quot; /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 3.17&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;This is how you check values of your parameters. Keep it in mind that you have to put a parameter in “Var:” box to see the value you are checking for. In this case you can put&lt;br /&gt;
&lt;br /&gt;
x or /:x or../:x or ../../:x&lt;br /&gt;
&lt;br /&gt;
in the “Var:” box for m and see what will happen.&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
(Note: You can set all parameter to be global(set parameters at scene 1) and use _global.x or _root.x to refer to the global parameters.) &lt;br /&gt;
&lt;br /&gt;
Try it and see it on your own. I hope you get some idea about setting parameters.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://flashgame-making.blogspot.com/feeds/8442948043837819628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/parameters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/8442948043837819628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/8442948043837819628'/><link rel='alternate' type='text/html' href='http://flashgame-making.blogspot.com/2011/09/parameters.html' title='Parameters'/><author><name>Chuanasa</name><uri>http://www.blogger.com/profile/15988975148479029365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPyKXgKphjRFJcXk290RlBhebu7ItA7NOVnL3kTIARMYeoMsZts4hwO5n1KF_Imqij6hm2VBoBT86PNffMIb7HvsSXYXYthCBvN7lhGi2lLvGVQTSANYLg9trBe5wlTHyN1Ip6ibud5A/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-62922453392314506.post-6604761289036496594</id><published>2011-08-31T10:24:00.013+07:00</published><updated>2011-09-07T14:20:42.576+07:00</updated><title type='text'>Preloader</title><content type='html'>August 31, 2011&lt;br /&gt;
______________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
The preloader is needed for making a game only if you want people to play your game on the internet. What it does? It will actually be like…&quot;Hey, wait here to load your game first before you play it&quot;. What if you don’t have a preloader? Then you will load and play the game at the same time making a non-smooth game playing(lag in the game).&lt;br /&gt;
The preloader can actually be created after you finish making your whole game. If you just want to make a game to play by yourself in your computer, you don’t need a preloader at all.&lt;br /&gt;
&lt;br /&gt;
Anyways, let&#39;s see how to make one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot; style=&quot;width: 400px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzkH4Dld8ERF4hF0wcO5sqmmgYn1oJgBiNxEkpZnU2gdxDGbEjb0VxLs6RyuSk0aH1GXlNOR1TbB2Sp6213npOG-zn4xUaVqPdcpU3zI0mxiyA7yd9igwBa_X3t52EHAwPOD_uhfDPyw/s1600-h/Preloader01%25255B2%25255D.jpg&quot;&gt;&lt;img alt=&quot;Preloader01&quot; border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIjL7jCEm8n2Gsp3QBDDm7e4X88qtlSUrEkdjXSZICOHEV2TAh47VDE7KiQFq9DcweOAGAVFYbeOAyLA1gboD0z-BGNhVtWb2yEw9E2cPL_BxWwAUJz4VFjxpv1nHDwxrEZZktsq4Scg/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;Preloader01&quot; width=&quot;194&quot; /&gt;&lt;/a&gt; &lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiflLqHWbhebSz2YHBkdr33ZGOgsg6NdqrLELJtWtLZsGM9r_5DMkTmMa1mZq4JTrg0YawOz4A3K9WqD16HZBXYfSaNYQ0PBfaoJg1kXwlxvZ2LI5OYqwLHIihS_DgQ7nkff70JALJzFA/s1600-h/Preloader02%25255B4%25255D.jpg&quot;&gt;&lt;img alt=&quot;Preloader02&quot; border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimvnPuiZJAuCU01LVYz1rxG90p8raHnTM4ukOfunt-OdZSHb0vP59gX_rPC_DM5l7MNxmCU3ibo4BnBwX1RCR14n7evUqO7XgUP3q4AwCOZttPjs4hBX0lqR-5r0vL3B0EdXrAn54SvA/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;Preloader02&quot; width=&quot;174&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 2.1&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;First, open a new file. At the first frame, draw a bar as shown below.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-07_n6jNPAepnbEuj3i_2FEYmNml7TnBrqjPA6kLKvek4jp4Dku2hwzskeBF_qNhyphenhyphenqCnzO24_r_gmKdNXMI-9BDV6Uo3_TQWGQLdg5wbKqOLxmVnaY_ueTPq11tnOFKr5ccoys3bgew/s1600-h/step01%25255B4%25255D.jpg&quot;&gt;&lt;img alt=&quot;step01&quot; border=&quot;0&quot; height=&quot;443&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrAGgCEeNTaMxp-TejHKv-DTMUeVw7GoL2nQpbkZkgdpVMuHhyphenhyphenYlQhc1o8d1kBqx1VYgX9FZ-m7IGgGVg2Gxn7miNu5rwApq0uPF4ANXJ6C1zLv7UVPMGDHoSGBBGKK6hvqr3RtpLW7A/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step01&quot; width=&quot;460&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;Figure 2.2&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;left&quot;&gt;Select the bar and press F8 or choose Modify –&amp;gt; Convert to Symbol.&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPi3asaRlkpwCAkOXWBJ2SA2qA60sUi_DiLep9iASHgSivG490wEKBNEE45Nn7Pzd7aCerWrF4h6QRnBRLhhTthQooM23HlWCBlamgrQsqi_3sGR7wPCdMD9CbdCKxLneJ2Suw1BC75A/s1600-h/step03%25255B1%25255D.jpg&quot;&gt;&lt;img alt=&quot;step03&quot; border=&quot;0&quot; height=&quot;268&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDiQpU6M9gtYJoy3FweDjIO0fxlc3Ns1zMb_aGwZmFcqH7cot47pYQCHYpzsXV19egoCu7JQss-keocRFYeqlzDecpAFC6q9tH6L7ls6mbC6zEOsS4-DHHYVvoeOarhcXMFBnfGN1L7Q/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step03&quot; width=&quot;362&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;step02&quot; border=&quot;0&quot; height=&quot;396&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF6cG-joYoD8QxC8H05A1d-1UH34qci_ePy3eE3GEt2reu8ud4zxiIjiJGPflQyd33YyzmuxzoeVcWKDLBaz9YJRl08ftNKlsBjZG5tNemIYi6Rra0vuLjWXN9NuAp5yhlYg0oL0Dmog/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step02&quot; width=&quot;489&quot; /&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;Figure 2.3: Select the Type to be Movie clip&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;Put any name you like(for this case we can say “Loader”). Select the Type to be Movie clip.&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br /&gt;
Then, double click it(the bar you just created). Now you are inside your bar time line.&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpvejyZPtDOjQu5QuT7Dmm6cOEVW6Dy4vHrOmIOOgkh0zbVo8-14cNAWen3lXE1HDOXjT3iuqgfJfNRPOp2Ps_ccfQSG40ay2oGxRXbjXxl011XNNa5tsKVZrgHDsRcxYvrCFe_1GedQ/s1600-h/step047.jpg&quot;&gt;&lt;img alt=&quot;step04&quot; border=&quot;0&quot; height=&quot;473&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYTd7WMaPAgIEMZq4h9WEvQQxtCATIenS4hCcKW94x9o7-95yxkfEFk3yM_pbhks0bUU8zjrbYK3iPWOicB3xWZTxPK917F0iNnj7ERBkV6hiwyWXafD-YiQ9lY2AVA7ObUJIc09fr_w/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step04&quot; width=&quot;503&quot; /&gt;&lt;/a&gt; Figure 2.4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/div&gt;Add 4 more layers. Now there are 5 layers as shown in Figure 2.5.&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTEmR-Y9Hw26MQX77lDlLT2BFbcTMRaRBctRBn2VAp87DSUbu4H3Fd-4lX0h4Sn2bpLMKQ_316-R17p4q6riTvIwM_BKRy_GWLn2t1lUE986NKG2cC1LB6Pz4A5TJQPF6EbDmgNHdbCg/s1600-h/step05%25255B5%25255D.jpg&quot;&gt;&lt;img alt=&quot;step05&quot; border=&quot;0&quot; height=&quot;484&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgNcJsfmMze8AZQ0-z55t0osZbnFdo2PkGRt_lZJy7NF_YdZHYTDsOFxzkMyvydcwG88BqUzh9glA4gH1qDrp2QihvxHvuM3uRqtPqV-iIBrbHOaMoSjbrspJpgUWO8_-RLs9LIbX4gw/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;step05&quot; width=&quot;519&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 2.5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/div&gt;Change the names of each layer as following;&lt;br /&gt;
Layer 1 –&amp;gt; LoadBar_BAR&lt;br /&gt;
Layer 2 –&amp;gt; LoadBar_FRAME&lt;br /&gt;
Layer 3 –&amp;gt; LOADING_TEXT&lt;br /&gt;
Layer 4 –&amp;gt; Animation&lt;br /&gt;
Layer 5 –&amp;gt; CheckLoad&lt;br /&gt;
(see Figure 2.6)&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsCs_pgyaleC74a-88_4tPg0bqPuWu1obeXyU0-ilf2VIaDPm5gv5fbmfjJHw4TdsTMJlJJQ4iKAJZOp0M0QMtM_1czvd_nKulZR6k3hWI9KJZHW9XhA_HTa7eHfgJ_7yv-UD9INSgRQ/s1600-h/step06%25255B8%25255D.jpg&quot;&gt;&lt;img alt=&quot;step06&quot; border=&quot;0&quot; height=&quot;264&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQNtCkMPAkdfPvfmRT1fnbB4egADSz_wCMSJMGfhJYvnv12vEFLLvoWQ65fzV2unHpE9N_q65OgOXhV_Kp2OcC__OgY3wtMhI8-QGaDhp1aix9WJEYg_aLF9oU6peYCFCaZlAP6Z_yXA/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;step06&quot; width=&quot;445&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 2.6&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;OK. We will go through layer by layer. Let’s see the first layer, LoadBar_Bar. Click at your white bar and press F8.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
Name it as “LoadBar”. Make sure you set the Type to be “Movie clip”. (See Figure 2.7)&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEin4ZAuQuNKb7bERsIYNkY15LDI3PsCktIdmXaeX62dlcAUbiJk2sRgak5Lq1ioc6MiUefKnCAHU91YxpXQi3jAq-HEbrXgrlHrEK6JVO6t4NaX1ainT-_X7UW9kPeL7aiFvmBSf8R9VA/s1600-h/step07%25255B4%25255D.jpg&quot;&gt;&lt;img alt=&quot;step07&quot; border=&quot;0&quot; height=&quot;429&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtlpdNPgVBiIyI32_bs5QQ05QIH2pjUDLRnbX4XTjTR3otBFVza7cDz2wZDrD41tmQP51hLMMd-MYNK6oTnTEvec0Zlj1mE0mJw92ksQEfvIf4FxkuAoZ3-F838wNUp9Gaw02dy2TWRA/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step07&quot; width=&quot;492&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 2.7&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/div&gt;Press OK.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
Next step, you have to set this bar an instance name. Click to select your bar again(if you haven’t selected it). Now, look at the properties tab(if you cannot see your properties tab, just press Ctrl and F3 together or go to Window –&amp;gt; Properties –&amp;gt; Properties as seen in Figure 2.8).&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtaStb3G3fyaAni2VrLKMuCPRhlFb6o3Bja86kMdhk-1_aVF62n0cybgBOL9Ne-IXgEWMPBXq263CeZpVvpczCvR0uMBJjaMmJN00enB7qL1a1ymIol2F2n0oUrHjvqOjcbcXWwUbJwA/s1600-h/step09%25255B3%25255D.jpg&quot;&gt;&lt;img alt=&quot;step09&quot; border=&quot;0&quot; height=&quot;296&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4vX1Uo-LGovtSqSvVmHCgd_Uc-bANSsb-qnci5mwQMyLlzeXlEHpGSi8UjxukKLuxSu_a1cUzSObO8w13HBILvrCC9tD5sxPBdeXY4TgT7-5ShUELq3ecuL3Op-n2XU60LUDPauJlqA/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step09&quot; width=&quot;557&quot; /&gt;&lt;/a&gt; Figure 2.8&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;Now that your properties tab pops up, you can put an instance name in there. Let say “bar”.(see Figure 2.9)&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidL6C8RoDrIpvnY8pI5qLfjmbl1g5gCmlziYUCypN3_xRG5zVFKQDRBj1PuAPay0IXHmozKu6WnvpQ4EsXotfdpM20Ba9Qirr_n1BN9P_71AtvJwrqQPgnZ7Mo0TDqOio1jn3mZtIgsA/s1600-h/step08%25255B7%25255D.jpg&quot;&gt;&lt;img alt=&quot;step08&quot; border=&quot;0&quot; height=&quot;463&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC_vQGdIfLK_99qX2t8QOw_ibve1ALZxHRhSQAiUmkY-Z94ctZtd-XaALpv5XrVk-E-8zAa0fhHoczY8weBJzQSaqTlfwzy2kABSajWZKe3ef2MKA5r0b6cP8-cmnSTTk-4wH02YAseA/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step08&quot; width=&quot;551&quot; /&gt;&lt;/a&gt; Figure 2.9&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;If your bar is being selected, you can see a small circle in the middle of it(Figure 2.10). That is the center point of the bar. We need to make this center point to be on the left of the bar so that when our game is loading, the bar is extending from left to right.&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiblb17-5k3_TpW5oj39jFA_9EMHIGjwOLJ7NJkUtpsH8dv-p-HFeEdyAL3kH7wlZpLAec_nnv9Yqbe4FXTQSbu2xs1ZWfpjcvUXRyW_VGmKrKReeQXkPCf125YHzpDCZKpjwOTWNjKFQ/s1600-h/step10%25255B5%25255D.jpg&quot;&gt;&lt;img alt=&quot;step10&quot; border=&quot;0&quot; height=&quot;283&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoq7WXXyIeJWGPb40agg0EO4tBjQ1rvh9LA6YwZh2jn-AlKEjVs2nbc2qDMkR322em2n16S7La_LEWMCI04px4OPGl-EYehmXsxGjJrkCpeSb5OLCk7rY6TmL9RSFwV7Ea5XCoXFiyJQ/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step10&quot; width=&quot;354&quot; /&gt;&lt;/a&gt; Figure 2.10&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;To move this center point, you need to use the “Free Transform Tool” or you can press Q for shortcut(see Figure2.11).&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo3bIhTTTMHm7EaLZn3kRiIrMlunoUmRtyppO3H7sipB9X3QUkDSKfDwNEEr9r1iyXLgtYO0oIde7rhK9JeHR59ksQt96rmjPO6PXxYIbnafHc8Me7A_NxB7fqL88V0mar83LDaC8PTA/s1600-h/step11%25255B3%25255D.jpg&quot;&gt;&lt;img alt=&quot;step11&quot; border=&quot;0&quot; height=&quot;317&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqp2KT9gcU5muFj0VzwFrDdOGgGgXe6b0D13qcXJT80s9MHb3UJvEFNEOb_ndYRl22fI4LurNQpxV11uZDlJsigVRFe1i42UBI0jPfO5CfRpy2nofK1qiN_hKVh2GMJSw92yrtzLvAEw/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step11&quot; width=&quot;176&quot; /&gt;&lt;/a&gt; Figure 2.11&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;Then just click at the small circle in the middle of the white bar and hold it. Drag it to the left side of the bar as seen in Figure 2.12.&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaBql1VgkKYqxvCd5pHrG6XUErz8Yjvgz-oB2dLNN46kJ75HUePZQlkEjoY8oUOB579E3rZLOF5xBOk3gwtFxRPakk8hIexVnOx-5jC1boQC-I_7Zh8SyxKrqJjhW3IFD2GqEO4DSdXw/s1600-h/step12%25255B3%25255D.jpg&quot;&gt;&lt;img alt=&quot;step12&quot; border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrKOoYh7tUeltk0dGmecuxLNzuwIlQuVVnfXcn6K9qd4nVkIz1fdnLTtvUFxUgj37Gi8WAe_1lwmdDZLrqEU-hWWdiUQJe5uxwuzZO-92sERQ-OQyBTKobsrQYFgCcu5f-tZ1Qgy-kXg/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step12&quot; width=&quot;303&quot; /&gt;&lt;/a&gt; Figure 2.12&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;We are done with this layer now.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
Next we will go for the “LoadBar_FRAME” layer. We need to draw a frame for our bar but first make our bar in “LoadBar_BAR” layer to be seen as an outline. How to do it? Just click the outline icon as seen in Figure 2.13 below.&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ5kvUDCvYR6TFtRBEOLSJ3GtdFGAIGCxXDwopiVUuniBGcWMxBj2eoisOyUUB4BB470oj19-bPYqClaopB0J_l8-HLyB6_QuNBvxxqZDiKipYJYEThMz2UbKLI4Cd71Zp4gMle940wg/s1600-h/step13%25255B4%25255D.jpg&quot;&gt;&lt;img alt=&quot;step13&quot; border=&quot;0&quot; height=&quot;476&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyr28-2TMwjaqTSVPVwGvUcxO2qm1AMOcrpZkW2UmG9ocLqpGtuMwJDoUhVJv0ySvsGPzOLfp0qfNeT-C0xfVZGO327d37dHipxxZFRpGeyeBGdUVMt3M1kp4pY00rLr6O2BmSUpdwpg/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step13&quot; width=&quot;458&quot; /&gt;&lt;/a&gt;Figure 2.13&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;Then select “LoadBar_FRAME” layer and draw a rectangle to fit your outline bar. (see Figure 2.14)&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6BsyfXgdUWA2iP5qhHElSE7O3lZM0xnvYAqOcxN_zCMhtsBdOrhV6ErGXTOzLSIfeZqZYHtRxOv_hb8Kymsnitf24Zge2ChY9dEq3BM-SpmpjsKZik7-LYeKslkBG3J52Gjati0Kmyg/s1600-h/step14%25255B2%25255D.jpg&quot;&gt;&lt;img alt=&quot;step14&quot; border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj488HnNtA1CB1Qg0kyvRvI4p8TAmCoYcjGt2Elab52utW7tGqpSdkruH5rLtJN1b6v3sqaMC5feh80pvHrJvyd-_Wcf7f6DJGBgH-cidVM373yShxuVeDQvftOyrtlStH4kOjxPJeIGw/?imgmax=800&quot; style=&quot;border-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step14&quot; width=&quot;244&quot; /&gt;&lt;/a&gt;Figure 2.14&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;Before you draw this rectangle, make sure that you set the properties of the rectangle tool right as in Figure 2.15.&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8VnHZ4igDHJhGuXnUdcS3evR5NwtmpvmyUaI5NuIWa3FhiaqXUGN9zTOvlzlhNzK4eeP5ZsjqtbjBJNOzl7eO94Ww_iMr9l-pobsN7OvGGGJw0D5gAOfGXJLl7Zr3YtBpGgJbakiXpQ/s1600-h/step15%25255B7%25255D.jpg&quot;&gt;&lt;img alt=&quot;step15&quot; border=&quot;0&quot; height=&quot;452&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi555T-tXOPgmbCIOuVK9Dn46_8DOeiabGNt31XDoQ8rnyJRyGWwkgMEI7_i0WBmh-ApLCLhfZhIUiikxkMIBW0qViSYm6TeY2apaOGz1e-q2SSKh_lsUfrw012MsjA45zZpVSjz3T3fw/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;step15&quot; width=&quot;252&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 2.15&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;For this case, white outline stroke color with no fill color.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
That’s it for “LoadBar_FRAME” layer.&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br /&gt;
Next layer is “LOADING_TEXT”. Just add a text in this layer. We can say “LOADING” as seen in Figure 2.16.&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot; style=&quot;width: 400px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS-C1xISBqxNbraWimjSOxYGRSIh3rF6jce8vdJBdv4TDgq4A7ap-oL0xPTKRMPp3mhZCKhqVIev-YEQCQbyM2aTAPz663ZDtC3pvNdtKPEGKsGxC2JjrtH5-Cb5u9dgVBahx7h2qcLg/s1600-h/step17%25255B11%25255D.jpg&quot;&gt;&lt;img alt=&quot;step17&quot; border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRehdQ9p9R-ACfx_Yvaio7h6sMdaKokz7sUyLw6L8eZMbuebTU8SbTDc3r3Jd6KM5vyN1PmB3JqE9wn9gR02HUgK5RuifYoFIMKrs9-lMjn6uGCqmFPn0OgFJ0btp6PkwhpMphCbZnvA/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;step17&quot; width=&quot;218&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsnyHw8_hV6A0Lv7mjjzDXziSXBSsF34t-imvQFX4ySbe1r751H8QWAS3_jGa9S9ZPn7C5gq-QODim41VlV3UixANguecJcApriAcZ9FXoQhVgFFcQ90R8NeC09-kv1vOkCn6aXOCh2Q/s1600-h/step16%25255B10%25255D.jpg&quot;&gt;&lt;img alt=&quot;step16&quot; border=&quot;0&quot; height=&quot;387&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0SK-pSD02Chkh-NMi1KG3DsyJX6-pFiGqDP2TvmlDfoMs4C_zQn_EW3FWr8arbqOs8YOCVJa11rP0IewoDFVP0wl-K-hN7rp-mlzivnm5dBeok1SHg9saG54tZsPpEQ5IS9M2UdKGhA/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;step16&quot; width=&quot;338&quot; /&gt;&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div align=&quot;center&quot;&gt;Figure 2.16&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;The next layer is “Animation” layer. You can actually put any animated clip here but, for this case, I put my main character walking animation.(see Figure 2.17)&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot; style=&quot;width: 400px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_Kj8CHkgazu9MJYiYkdEDWq_7xaCeEIhI8QOKoNHVs1E24SqvJlvUkPUf9DBfEmFRN0cYM3ewKskQJuewCyOdnWMCtUpYUY1NLkbdBaL7E81x41rxQXIlPseNjdVLsF2DYkI9zGxMtg/s1600-h/step18%25255B3%25255D.jpg&quot;&gt;&lt;img alt=&quot;step18&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9dGeczAt6Mx4pbObP3U9yvRZ-HU1bDzsVJfapZ4pRKiON8LS0KkOo03FV5GPcCns_dIYdvY7OceYv2UX587O54wxxqdlb1OAfosHOyhwiZKH5MyP03afQihmMMW5jeoQQLxW5L0JdoA/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;step18&quot; width=&quot;257&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
Muay Thai 1 &lt;/div&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEgnMMJz1t7DSz3pQuvsC0RZXnYfPgKa1aA5U9WKmiJLVAQy0_1Q9DS0ndDNKSGwi8CpW-AAjcn_A_hYAzhBk3WRgs7nqa4CI0BvjXwYuS1f6qpOFrMGXD_7n-BnksDXnQi1ACX9lP-A/s1600-h/step22%25255B8%25255D.jpg&quot;&gt;&lt;img alt=&quot;step22&quot; border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuuzVAv1wAR8P5k6RTdcVNJZAkjBq_8pbKNL-x6VG2klX0xbT2JkBz64PUaUE01ZLf9p8zGmf33AiHSkdl2g-b-xekrQ0Gi7ImfMJf-_bNvEp_0N9VEdQPbqxQrfKOT0cPqJc80HpkUA/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;step22&quot; width=&quot;256&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Muay Thai 2 &lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 2.17&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;This animated clip is just a movie clip that I created. Let’s look inside of this movie clip. I will just double click it to see what is inside.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
As seen in Figure 2.18, there are 4 frames. Each frame contains a picture of walking poses.&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot; style=&quot;width: 400px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVMMMuIZKtJ5iaa306-7RGpX2GcdCHAI5ZawKpYYGXkRIG8_o3moIqUfj6qYjrXS_5o7pGydejzWFVd4UTJskYFlbDmAqH-0lLUmJqFWHyUt_dtSnsipzPCE5BoviVBPrPMOx7Fpy_rw/s1600-h/step25%25255B9%25255D.jpg&quot;&gt;&lt;img alt=&quot;step25&quot; border=&quot;0&quot; height=&quot;407&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCskvZpL9beCWFw4nBUD4kiANg-KK3ZMOKRluTiDhBRwBcFLs6a_dUNanSc06hkaXuGWT4B6a13H_5rV2re-XxqYH025OlXbt72kev-IFeRvCE1NfjqYZZzRmhqsJez8FaNC-O6aSAog/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;step25&quot; width=&quot;531&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Muay Thai 1 &lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinsPjyo9DlRxC04od8u9tidw_E1FMATvFk1Qhvw7YJ2QNhnu1FzUTLEmHZudUAij9CTdwexEEfGYzHewWNOM5mv7wW6SoZxC3jQed8I02Hw5jC_wP2xls_aRKDnQoo-4MYZzYV6LVOHQ/s1600-h/step24%25255B10%25255D.jpg&quot;&gt;&lt;img alt=&quot;step24&quot; border=&quot;0&quot; height=&quot;430&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLiucUMCMUEnjP3n3Eob4b-OcKJcedVaxPVeACacgeoVOLSH_Cti-t-tvECsfUmM2Ur0a5LRtrY7vnYwBZ8CFckzR6TR-DHBt6IRPQa3t-NMbCARLUIJXrrg3tU7i8vugphyphenhyphenUYUUUytg/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;step24&quot; width=&quot;534&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;Muay Thai 2 &lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 2.18&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/div&gt;Basically, if you are making your game, you can find any sprites or draw them by yourself and put them in this part. That’s it for the “Animation” layer.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
Here comes the last layer, “CheckLoad”. In this layer, we have to put some code in the frames. Click at the first frame of “CheckLoad” layer and press F9 or go to Window –&amp;gt; Actions to open the Actions panel as seen in Figure 2.19 below.&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot; style=&quot;width: 400px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6RqWesOUqpFxkUYmUKrK17evVtZizYHNbudUQcSTmXwvwobmcVXEGbDi9uAZ8IzvyVC7HQb34WaZ5N5a344Ds5DS7MuNUKFuadBPuBlxwJukeVdnC6VAq_LvEPM-ykjHhGbQbSV-sOg/s1600-h/step26%25255B13%25255D.jpg&quot;&gt;&lt;img alt=&quot;step26&quot; border=&quot;0&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Kxti-gv2ePJBNm-CF8hFgPvgbq_G_fR3bGS7CqgAA0soqe3TbNVlq0eXBUpgj7HRw3_9Tnvtw6Dd_lzRnSTytiyRKe7Vr4983UNSP6cMqCutzpb3qFsAr1LRNjLXl_DgWztGI46FOQ/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;step26&quot; width=&quot;400&quot; /&gt;&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbVeLQhTfOgHuwWW_ZQJpTpzc1ift-_1zxnUBC7kfO0vxeG0zc5vnZMorGGaOV82m1eBaEtLDo267JtSZx78LLPMd4AjYMftTGj8Vj8-aLbv-ShwZYoS3CmGuH62dMQXpuzjAumqx5AQ/s1600-h/step27%25255B9%25255D.jpg&quot;&gt;&lt;img alt=&quot;step27&quot; border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1AoT-Ij0i-BBmXri9GcJQrWC30yAnPnRttyXhNuXYmZ6RNuqbB-dGa5I7jkSBop9YEqNHn_oTac5OSkPPuC8Ot1CjMdOc_cEu-lNAR6R8qgDvewrHewTUItulUtAdpGQg2wPQGtLmNg/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;step27&quot; width=&quot;407&quot; /&gt;&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 2.20&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/div&gt;Then you will see the Action panel. Click at the “Script Assist” button as shown in Figure 2.21.&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiopoheFc55_ZaicBSlR1unJh-r4R7ui6dE3MsDIVTpei5BFDQ8xWobxeLRhYBj-I_CQ89wh4Vn6Pk57mgElo63ityjwBVWs9ghtPWgZOpt6VwHM8mLH2fKEfcEqpFlISagamsk7gcLVw/s1600-h/step28%25255B3%25255D.jpg&quot;&gt;&lt;img alt=&quot;step28&quot; border=&quot;0&quot; height=&quot;350&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtZfeWHjWt7j36CgBPP1ONCrbM2-nCpDdBiN90_n25dEo1aJbnyS0THxk3gXpCyCu5ihdqdqLK8EQD9EfNEvhsxlH6gzFhJGCnY9SiE6mSkOUm7AcuVNhXlU_Gs9hlAfxFQ5ZZi5rjGw/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step28&quot; width=&quot;458&quot; /&gt;&lt;/a&gt; Figure 2.21&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;Now, copy the following code and put it in the Action script panel. (see Figure 2.22)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;_root.stop();&lt;br /&gt;
PercentLoaded = _root.getBytesLoaded() / _root.getBytesTotal()&amp;nbsp; * 100;&lt;br /&gt;
if (PercentLoaded != 100) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; setProperty(bar, _xscale, PercentLoaded);&lt;br /&gt;
} else {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; gotoAndStop(&quot;loaded&quot;);&lt;br /&gt;
}&lt;/div&gt;&lt;span style=&quot;color: #80ff00;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVcnuC8D5tXuLE1_dFJMxKf-bW8RGdQJLR9jA4bzsNH13K7SM9U5NhoOrrsOtn7-yAClUhIHM4fwvEioOXTi-i54bnhkCeE9iho5gLlDyc7OloufG9t777UAENYymycDSCOBKrvnP4PQ/s1600-h/step29%25255B4%25255D.jpg&quot;&gt;&lt;img alt=&quot;step29&quot; border=&quot;0&quot; height=&quot;290&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZS-8HgBcyVteO_8ADsuOV1fSM26ziB2sbSsBK2ZZkGEcTgt3Ue9YEr85tVPjLzv3g9PoAKDc4tH5lpv9r5Vse2-slVsninifATSH7zh690Rh11yWe392UVFoTDsGqUpjONpOGJSgvDg/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step29&quot; width=&quot;646&quot; /&gt;&lt;/a&gt;Figure 2.22&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;What is this code doing? It will compute the percent of your total flash movie capacity(in bytes) and show the percentage on the length of your bar(remember the white bar we created?).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
Now, click at the 2nd frame on the “CheckLoad” layer and put in the following code. (see Figure 2.23)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;gotoAndPlay(1);&lt;/div&gt;&lt;span style=&quot;color: #80ff00;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiD9BOsMtgineIhkweqYrWmcLy_TmcujTUc-sGUVzakab6MTr2td-V68zJRIaVV1LXzcwBRXzw9MOa5pJWB1TX3f0OILTJzVQzB6gNtzXVP8Fcw1M5CfIE6GP_UooWerY5d4xXpbojAVA/s1600-h/step30%25255B3%25255D.jpg&quot;&gt;&lt;img alt=&quot;step30&quot; border=&quot;0&quot; height=&quot;283&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNxX-Vmrt22R3IGOVEYqKInhlbuPGXvIijChPxvWuL3-knm9YAtdQ0ThshZV5D-FEufkMBXxK9QZRIff2VPkrnWkty9FdjaOTD_o7vVBVwmaUTNSvW4TVPifH1dRyjmONUeCdSYzOJ8Q/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step30&quot; width=&quot;553&quot; /&gt;&lt;/a&gt;Figure 2.23&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/div&gt;Add more frames on each layer as shown in Figure 2.24 below.&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br /&gt;
To add a frame, press F5.&lt;br /&gt;
To add a keyframe, press F6.&lt;br /&gt;
To add a blank keyframe, press F7.&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRSfqZut_aDOMI3qNf3DTIypbEaQxmarp7jHuxJEEnyDvzkBDtg_TjVkUgcgXk2GlOa7srXsYL2lC_Q6Kb6DaSvfisH95uQK6J4_qchQht-84cMCXxD-esbMUa0gy8oEqmdmyofr-j-g/s1600-h/step31%25255B3%25255D.jpg&quot;&gt;&lt;img alt=&quot;step31&quot; border=&quot;0&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB2-6eyWWZRWC0VFcuFr7By_GAxppPM9h44i5flzNerQeJZxxQhPNYFhBO2JTCsYzM8zp7JAy5bjbQTq5GkWiQX_jEcPXPprutV8MsWpRugJQJIwN97_LOcaCJ1YkffEQMU6tyaiNQdg/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step31&quot; width=&quot;488&quot; /&gt;&lt;/a&gt; Figure 2.24&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/div&gt;Now, in “LOADING_TEXT” layer(actually you can do this in any layer but I will just show you in this layer), at frame 3, you must add a button here. You can use a button from the “Common Libraries”, Figure 2.25, or you can create your own.&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br /&gt;
Window —&amp;gt; Common Libraries –&amp;gt; Buttons&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot; style=&quot;width: 400px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1jDTefV2-65tjbk70XS9JxeIdSE6-FXSkOJYs2VT7rlM_F_TTbtnPfgBY0mWlDcljT32L_41Nlhv6LgWyzq2K6yIVETcXMfYUDvtMAot9JWUssMP8kuvXyozl0O_aWQUJtBEouwTvjA/s1600-h/step32%25255B8%25255D.jpg&quot;&gt;&lt;img alt=&quot;step32&quot; border=&quot;0&quot; height=&quot;232&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYZ1r1m0ISJhFbe8oV1hhcxnRdsgy4dVLRzfxQ3LL1_UiKZvR36hbB2MJOETpOIK2_NNemJduVVhSEGfsYz5TbEnGWFCCxeRtltfBZw7N2ZPwlTHg-QD80tYe2tVPQ-uYZ5sdckwy9OA/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;step32&quot; width=&quot;449&quot; /&gt;&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMTcG2O8-id5eCe1qsTVqd_VTG0wSUegHG96ZCewLl0o9Mrlf48_LQSKH4nZI82P-z2d9SlxiiLS9S3Ph2i2pODCLNx6-_ir2jbGVchqGFXfUegoQY0SU7-6-G31YApw4LiwbCKndwew/s1600-h/step33%25255B5%25255D.jpg&quot;&gt;&lt;img alt=&quot;step33&quot; border=&quot;0&quot; height=&quot;523&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQkQbqcLHBbIKTED3Dzs0TkgvfQdehmjqFubDQdgHFmOyujIezJez74HDCYvDE_ntNYVMkqdcw3BlZJNb_626JkYTV7Nio6L4T6DrIESQRZ178DV6r4YvXMfW0UMldhnnm8J5taQS-9Q/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step33&quot; width=&quot;328&quot; /&gt;&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;Figure 2.25&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/div&gt;For this blog, I use my the button as shown in Figure 2.26.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr-9j0fZVhz2FIa1o1382sZtqYCwYbuzxe5B1aWavREpWWVO2RrrNGKKlxUih2pshgXBKMknwlWdL1M6EQAt7VT3rrISIJ5cJXe3jF_rFP-gf09V0SKMwnehE0MRQl-sCyP0d5zl0lug/s1600-h/step34%25255B6%25255D.jpg&quot;&gt;&lt;img alt=&quot;step34&quot; border=&quot;0&quot; height=&quot;520&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1fQC-dg-vGPO4hAK8qZ-_T6tneYIalJL5Mo2i2c-Gn0ZZH_v8giZaFYqngskbilrmzNIU02-7HoMtdEUC3XeddeocevfWXQIo5Iu_OEJ38eQ-_vhgHvN9Ja4RLCc-Lw0gIRv8sathaQ/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step34&quot; width=&quot;405&quot; /&gt;&lt;/a&gt; Figure 2.26&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/div&gt;If I double click at the button, we will see what inside the button as shown in Figure 2.27.&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjx6GwqriTQyWeUHGAGHXFdp_oVjzCjgUbpXZmIccXwEZRoR8Qc8GWkj871CLsp3ZIKqUuvun-dRDLztETCsIoMa8WReeEkZOGdYgD1oh31fcl4rYKCTMGqCvfVsI1wwNdC6NniWSfqA/s1600-h/step35%25255B4%25255D.jpg&quot;&gt;&lt;img alt=&quot;step35&quot; border=&quot;0&quot; height=&quot;273&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOjne-9NN661nlVY0a6tJXTEkVQl6LvLPv426-V0QMOMz4jWo-zFJC-Aq_3uaTnZE4hAaSTToClJ0LV117oeUzpFgNcyXrs5RIk5jBC2QN8rERmmRljo9G8vUtuLmLfJFszlIkRdbdTg/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step35&quot; width=&quot;504&quot; /&gt;&lt;/a&gt; Figure 2.27&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/div&gt;&lt;u&gt;Layers&lt;/u&gt;&lt;br /&gt;
BG = The background of button.&lt;br /&gt;
Text = Text of the button. In this case, we use the word “PLAY”&lt;br /&gt;
Sound = The sound used when button is pressed.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;u&gt;Keyframe States&lt;/u&gt;&lt;br /&gt;
Up = When mouse cursor is not in the area of button.&lt;br /&gt;
Over = When mouse cursor is on the button but not pressed.&lt;br /&gt;
Down = When button is pressed.&lt;br /&gt;
Hit = It defines the area of the button that responds when clicked.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OK. Now we need to add some code in this button. Select the button first. Then add the following codes as we can see from Figure 2.28.&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;on (release) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; _root.play();&lt;br /&gt;
}&lt;/div&gt;&lt;span style=&quot;color: #80ff00;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt; &lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH9av0ycZumvZA2FwArtDNkkSNJn7jkvLglslRrCCMytJQm20-V7dNzFCiksz2c4SeAC53NrcTG4nmC3KJQitQbKvM_jm7vJijWIV2ABVFULKJVsyR1hkti35uLFfYDkdGPiIMgguoGA/s1600-h/step36%25255B3%25255D.jpg&quot;&gt;&lt;img alt=&quot;step36&quot; border=&quot;0&quot; height=&quot;469&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdPbnuksVaOfAOeZWlp1_JmpotKN8tYzADVpHgynhWTf7oNA_LVRwRUBbeYzmGaIcWmtVzhPJa1x1VFwsmEK8Y-TmZjLKAo4JPQvSUBxTl2gqf3PwBzYXrWNWwcE8DJbMkxMstBs95dw/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step36&quot; width=&quot;585&quot; /&gt;&lt;/a&gt;Figure 2.28&lt;/div&gt;Almost done! Click at frame 3 of “LOADING_TEXT” layer and look for the properties tab. Put the frame label as “loaded”.(see Figure 2.29)&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM_tJtZ5_8lr49MByasuIiqn436e52Mh8PTS1b2L0DQGg1_wEBEZauIaMUs877um4yVyCj9VTwwMo0MQrwphUdclBebtolQM_0xXAH6yXSiBOYeM1ArS7xc-ovSgXb2m9h1U8uNti8iA/s1600-h/step38%25255B4%25255D.jpg&quot;&gt;&lt;img alt=&quot;step38&quot; border=&quot;0&quot; height=&quot;561&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgljXR2KGgiO7J5M_WdKEem88_jwQQvfvOR32yA4fonkZt7eEDG5P3Pk-6F9IvJ885o221KeZYkGGil2_GPXJdK0_qO_HgKCcVUWLD_-Ig4hppOubEZthQjOupmfxnRY8qH3G8OIvVpVQ/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step38&quot; width=&quot;363&quot; /&gt;&lt;/a&gt;Figure 2.29 &lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&lt;br /&gt;
&lt;/div&gt;That’s it for the preloader. Now you can go back to Scene 1 stage by clicking at the Scene 1 button as in Figure 2.30 or by double click anywhere(not on objects you created) in the workspace.&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAyvOl0AesXMj5YeTVD9ds7wRtaIk-1MMrv0uOOZNtCfIj_jf0gU62fDEvOBquYX_3COuT2E-tO_vva2c4Cxyz9NdSifN-BXsvKvuBPMxYsdRYzu32voVWXAJwvtIXOOU8o-8mnMUkUw/s1600-h/step40%25255B7%25255D.jpg&quot;&gt;&lt;img alt=&quot;step40&quot; border=&quot;0&quot; height=&quot;552&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGPSOMGBEgrbd53h7fcJ_prauQFbhWnCyjjAuxasS2f0-WcM61JZmQEzTrUYdA0ax3B7rD2LK4afvWuX_CPeEur-88rNXsYcmwfkzg4rUZmRCUVLzEc1Mdypc1FR6fKp3R7MAGOUzQlQ/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step40&quot; width=&quot;446&quot; /&gt;&lt;/a&gt; Figure 2.31&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&lt;br /&gt;
&lt;/div&gt;You will see the home stage which is Scene 1.(see Figure 2.32)&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjScj3_T_Qw9P7SvHUv8pLqsjgd9gPjdYF5GAKrAqjMspxYeW6VYYiPIUMzdtaN_hqUAq2rFGr9389K71AEFQAf-eTKan7BWQcBxGjJAO9XKgW5X8XWjCASyA2lWJqsq49WrKyPVGq3-w/s1600-h/step39%25255B3%25255D.jpg&quot;&gt;&lt;img alt=&quot;step39&quot; border=&quot;0&quot; height=&quot;493&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNt-K4vOFJkPfcijODtaJE0e5DyipOHMhs54E6oC1erEq57XEN-O2DmlP5YeITv1c5G0ezQ_uaccXJFgq9I8-y7Nr2xVlFMX5komNjJwi15AJHbrzQcRjg2D2peItM2JuBb1jcFN9tkA/?imgmax=800&quot; style=&quot;border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;&quot; title=&quot;step39&quot; width=&quot;459&quot; /&gt;&lt;/a&gt; Figure 2.32&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&lt;br /&gt;
&lt;/div&gt;I hope you guys got a picture of how to make a preloader. Good luck ;)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://flashgame-making.blogspot.com/feeds/6604761289036496594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flashgame-making.blogspot.com/2011/08/preloader_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/6604761289036496594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/6604761289036496594'/><link rel='alternate' type='text/html' href='http://flashgame-making.blogspot.com/2011/08/preloader_30.html' title='Preloader'/><author><name>Chuanasa</name><uri>http://www.blogger.com/profile/15988975148479029365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIjL7jCEm8n2Gsp3QBDDm7e4X88qtlSUrEkdjXSZICOHEV2TAh47VDE7KiQFq9DcweOAGAVFYbeOAyLA1gboD0z-BGNhVtWb2yEw9E2cPL_BxWwAUJz4VFjxpv1nHDwxrEZZktsq4Scg/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-62922453392314506.post-3991783102934759836</id><published>2011-08-29T12:34:00.017+07:00</published><updated>2011-09-16T20:13:57.045+07:00</updated><title type='text'>Muay Thai Flash Game Making</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhchdZjDSOLcxuJjgyXe3jimfiOFEoFRz1BR1BFF0Op_lis9ce1w9XUmReXBWKKvjbHia3hfJzHD-pdlqlyOC9KhT9iczJUrCFIU2WFJHaDC8JTLhc8IybwljrOpTjeMBzPbeWQrTfLiA/s1600/Thai.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;color: black; text-align: left;&quot;&gt;August 29, 2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;__________________________________________________________________________&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;Wonder how to make a side-scrolling game on Macromedia Flash?&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;In this blog, I will show you how to make games that I made long time ago. It&#39;s Muay Thai 1 &amp;amp; 2.&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnyV6A-jU9RSAjSb4DoEB5tfwgVkkI4petkXNm0r2IIaHBUA_fG5zQ7P3VXjBKwmyHUGVKBgMOgoHW1zggZ7Gu5RwtG1a7wGPUY0AS75KQiPRTr_rJq35fpZxMpgZ_QG7Ik3MhPHByhQ/s1600/MuayThai01.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;286&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnyV6A-jU9RSAjSb4DoEB5tfwgVkkI4petkXNm0r2IIaHBUA_fG5zQ7P3VXjBKwmyHUGVKBgMOgoHW1zggZ7Gu5RwtG1a7wGPUY0AS75KQiPRTr_rJq35fpZxMpgZ_QG7Ik3MhPHByhQ/s400/MuayThai01.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black; text-align: center;&quot;&gt;Figure1.1: Muay Thai 1&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVeLhG6r0Lr0uFoWp7oD604gcSEQambgKXdXR0hs76GxLMMNLHqVPimK5E3P_CIaiz4LSR_2jWIvpwduhwmwCSp5GoCnN-q5u3_VBm2pQhJY-Cj3VjGiuKCzj3BdXe19yGDRTjyKEjhw/s1600/MuayThai02.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;286&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVeLhG6r0Lr0uFoWp7oD604gcSEQambgKXdXR0hs76GxLMMNLHqVPimK5E3P_CIaiz4LSR_2jWIvpwduhwmwCSp5GoCnN-q5u3_VBm2pQhJY-Cj3VjGiuKCzj3BdXe19yGDRTjyKEjhw/s400/MuayThai02.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black; text-align: center;&quot;&gt;Figure1.2: Muay Thai 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;/div&gt;You can play the games here.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;div style=&quot;color: black;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://flashgame-making.blogspot.com/p/muay-thai-1-control-z-block-x-c.html&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGFzZhXjP0mOMNWXY3Ya2obypDMyRrWYaVJQYy2LDmgj2s4I06ZwvljXehVJqjfl_mpvDW0CbtzLQjEyULD6tIneocqmeoDirrhQbFnbO3GkzLdmIh2kBspVXh0FF6HO4I9Ah8ghZczg/s1600/MuayThai1icon.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a href=&quot;http://flashgame-making.blogspot.com/p/muay-thai-1-control-z-block-x-c.html&quot; style=&quot;color: blue;&quot;&gt;Muay Thai 1&lt;/a&gt;&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;&amp;lt;-- Click&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://flashgame-making.blogspot.com/p/muay-thai-2-game.html&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVPh7MSU95G64ZVVC1X9gjBCcw5yIzylE2_aEIh4IylC1fCanIvVoquofn2M6xfqGUB8JHPWDipqp2imchniWgIeumJ-0Ag2Hc-PDdytYu77KBJXEZZO_rc4Jtgax3wjQ7w8t75Cp6Bw/s1600/MuayThai2icon.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a href=&quot;http://flashgame-making.blogspot.com/p/muay-thai-2-game.html&quot; style=&quot;color: blue;&quot;&gt;Muay Thai 2&lt;/a&gt;&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;&amp;lt;-- Click&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;Let&#39;s get started.&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;First you need the Macromedia Flash program (I used Macromedia Flash 8). I supposed you all have the program.&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black; text-align: left;&quot;&gt;We will follow the outline below.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span id=&quot;goog_127361030&quot;&gt;&lt;/span&gt;Preloader&lt;span id=&quot;goog_127361031&quot;&gt;&lt;/span&gt; &lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Parameters &lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Characters&amp;nbsp; &lt;/li&gt;
&lt;li&gt;Testing&amp;nbsp; your character movement&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;AI (Artificial Intelligence)&lt;/li&gt;
&lt;li&gt;Hit Test&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Scenes and Backgrounds&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Testing your game &lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
I am not an expert on action script, so I did not do fancy codes in the game. I just play it by ear. Actually, I prefer to animate. Before I made these games, I created some Flash animations and post some of them on http://www.newgrounds.com which is the biggest website to those who like to show their works on Flash. Then I realized that it&#39;s too much work to do on drawing. People will just watch my movie once unless it&#39;s really a good Flash. I think it&#39;s not worth it for my time that I wasted on animating my movies. I want people to see my animations over and over. So, making games is my solution since it will be looping for each movement of each character in a game. It must be worth it to animate for games ;)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;color: black; text-align: left;&quot;&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flashgame-making.blogspot.com/feeds/3991783102934759836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flashgame-making.blogspot.com/2011/08/muay-thai-flash-game-making.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/3991783102934759836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/62922453392314506/posts/default/3991783102934759836'/><link rel='alternate' type='text/html' href='http://flashgame-making.blogspot.com/2011/08/muay-thai-flash-game-making.html' title='Muay Thai Flash Game Making'/><author><name>Chuanasa</name><uri>http://www.blogger.com/profile/15988975148479029365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnyV6A-jU9RSAjSb4DoEB5tfwgVkkI4petkXNm0r2IIaHBUA_fG5zQ7P3VXjBKwmyHUGVKBgMOgoHW1zggZ7Gu5RwtG1a7wGPUY0AS75KQiPRTr_rJq35fpZxMpgZ_QG7Ik3MhPHByhQ/s72-c/MuayThai01.JPG" height="72" width="72"/><thr:total>10</thr:total></entry></feed>