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

<channel>
	<title>Jayc Santos &#187; Arts n Visuals</title>
	<atom:link href="http://jaycsantos.com/category/flash/arts-n-visuals/feed/" rel="self" type="application/rss+xml" />
	<link>http://jaycsantos.com</link>
	<description>Games, Development, Blog</description>
	<lastBuildDate>Tue, 20 Apr 2010 14:03:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>V2 Redesign</title>
		<link>http://jaycsantos.com/news/v2-redesign/</link>
		<comments>http://jaycsantos.com/news/v2-redesign/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 03:45:52 +0000</pubDate>
		<dc:creator>Jayc Santos</dc:creator>
				<category><![CDATA[Arts n Visuals]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://jaycsantos.com/?p=392</guid>
		<description><![CDATA[I&#8217;ve had my current theme for more than half a year, and I&#8217;m currently working on the next version during leisure time. &#8220;But the current one is good, simple and plain&#8221; &#8211; Yes it is, but it lacks things that I didn&#8217;t knew yet when I first made this. Actually v1 is my first full [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_394" class="wp-caption alignleft" style="width: 210px"><img class="size-full wp-image-394" title="JaycSantos.com v2 logo" src="http://jaycsantos.com/uploads/2009/03/designv2logo.jpg" alt="v2 logo" width="200" height="95" /><p class="wp-caption-text">v2 logo</p></div>
<p>I&#8217;ve had my current theme for more than half a year, and I&#8217;m currently working on the next version during leisure time. &#8220;<em>But the current one is good, simple and plain</em>&#8221; &#8211; Yes it is, but it lacks things that I didn&#8217;t knew yet when I first made this. Actually v1 is my first full WP template. So basically, the current theme (v1) doesn&#8217;t support <a title="WP Widgets" href="http://codex.wordpress.org/Plugins/WordPress_Widgets" target="_blank">wordpress widgets</a>. Oh yes, widgets, also known as the &#8220;sidebar accessories&#8221; which are plugins that can be integrated into the sidebar.<span id="more-392"></span></p>
<p>So taking feature and content design into consideration, I decided to redesign my theme and catch up. And now presenting a sneak peak into the version changes. (also click on image below to enlarge)</p>
<div id="attachment_393" class="wp-caption alignright" style="width: 160px"><a href="http://jaycsantos.com/uploads/2009/03/designv2.jpg"  onclick="return false"><img id="img_392_designv2_jpg" class="size-thumbnail wp-image-393" title="JaycSantos.com v2 design" src="http://jaycsantos.com/uploads/2009/03/designv2-150x88.jpg" alt="JaycSantos.com v2 design" width="150" height="88"onclick="enlarge(this)" longdesc="http://jaycsantos.com/uploads/2009/03/designv2.jpg" /></a><p class="wp-caption-text">v2 design</p></div>
<ul>
<li>I&#8217;ve redesigned the logo to be brighter and sharper.</li>
<li>Kept the color scheme (I still like my colors) and some box styles yet made the design livelier.</li>
<li>Sided with more personalized design than corporate look but still as sleek as it is.</li>
<li>Widget support! And it&#8217;s not for sidebars only. <img src='http://jaycsantos.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li>More content/game/portfolio exposure.</li>
<li>Maximized content width yet still support 1024&#215;768 user screens.</li>
<li>Removed the news section (from v1).</li>
</ul>
<p>As of this post&#8217;s time, sliced it up into html/css then the next step is converting into a wordpress theme. Watch out, I&#8217;ll be uploading v2 in a week or three.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaycsantos.com/news/v2-redesign/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Applying cel-shading with Flash</title>
		<link>http://jaycsantos.com/flash/applying-cel-shading-with-flash/</link>
		<comments>http://jaycsantos.com/flash/applying-cel-shading-with-flash/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 04:42:18 +0000</pubDate>
		<dc:creator>Jayc Santos</dc:creator>
				<category><![CDATA[Arts n Visuals]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[cel-shading]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://jaycsantos.com/?p=331</guid>
		<description><![CDATA[I&#8217;ve introduce cel-shading &#8211; my personal preference on art style (and its currently the best I have   ) &#8211; in a previous post Using Cel-shading. And now I have something to share on basically how to apply them in flat drawings using flash. This is based on my experience from how I started [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_332" class="wp-caption alignleft" style="width: 180px"><img class="size-full wp-image-332" title="Cel-shading" src="http://jaycsantos.com/uploads/2009/03/thumb.jpg" alt="Cel-shading" width="170" height="120" /><p class="wp-caption-text">Cel-shading</p></div>
<p>I&#8217;ve introduce cel-shading &#8211; my personal preference on art style (and its currently the best I have <img src='http://jaycsantos.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ) &#8211; in a previous post <a href="http://jaycsantos.com/flash/using-cel-shading">Using Cel-shading</a>. And now I have something to share on basically how to apply them in flat drawings using flash. This is based on my experience from how I started drawing it to how I do it these days.</p>
<p>With tools provided with flash we can achieve a cel-shaded effect in quite different ways and yet achieve similar (if not so the same) results. As for this, we&#8217;ll be using the rectangle tool, line tool and brush, but of course all with the help of the selection tool and paint bucket tool for our color fill needs.  Just remember the base rule, to have consistent light source when adding the shades.</p>
<div id="attachment_357" class="wp-caption aligncenter" style="width: 242px"><img class="size-full wp-image-357" title="cel-shading-0-char" src="http://jaycsantos.com/uploads/2009/03/cel-shading-0-char.jpg" alt="Our sample character" width="232" height="140" /><p class="wp-caption-text">Our sample character</p></div>
<p>I&#8217;ve prepared a hand drawn character where we will be applying shading. Now, don&#8217;t tell me that my drawing doesn&#8217;t look any good, it&#8217;s all that I can do. :-p</p>
<h4>Rectangle Tool</h4>
<p>First off the bat, is the rectangle tool. Why the rectangle, not the cirle? Hence the edge points will be needed to snap on other line&#8217;s edges. The rectangle tool is only good for simple shapes with not so much detail, so for this example I can only see the nose to be simple enough.<span id="more-331"></span></p>
<table border="0" cellspacing="0" cellpadding="0" width="90%">
<tbody>
<tr>
<td>
<div id="attachment_334" class="wp-caption alignnone" style="width: 139px"><img class="size-full wp-image-334" title="cel-shading-1-nose" src="http://jaycsantos.com/uploads/2009/03/cel-shading-1-nose.jpg" alt="Nose - Simple shape" width="129" height="115" /><p class="wp-caption-text">Nose - Simple shape</p></div>
<p>1. Start with a basic shape from your drawing where the shade would not be too complicated (so don&#8217;t choose the ears, unless your ears is all round and flat to begin with).</td>
<td>
<div id="attachment_335" class="wp-caption alignnone" style="width: 116px"><img class="size-full wp-image-335" title="cel-shading-2-color" src="http://jaycsantos.com/uploads/2009/03/cel-shading-2-color.jpg" alt="Select a color" width="106" height="141" /><p class="wp-caption-text"> </p></div>
<p>2. Select a skin color which is slightly darker to the skin color. Take note the darkness or lightness of the shade would depend on the imagined light intensity.</td>
<td>
<div id="attachment_337" class="wp-caption alignnone" style="width: 180px"><img class="size-full wp-image-337" title="cel-shading-3" src="http://jaycsantos.com/uploads/2009/03/cel-shading-3.jpg" alt=" " width="170" height="120" /><p class="wp-caption-text"> </p></div>
<p>3. Using the rectangle tool, draw a small circle.</td>
</tr>
<tr>
<td>
<div id="attachment_338" class="wp-caption alignnone" style="width: 180px"><img class="size-full wp-image-338" title="cel-shading-4" src="http://jaycsantos.com/uploads/2009/03/cel-shading-4.jpg" alt=" " width="170" height="120" /><p class="wp-caption-text"> </p></div>
<p>4. Make sure to enable <em>snap to objects</em> to connect points easier. Use the selection tool to drap the corner to it one of the border edges.</td>
<td>
<div id="attachment_344" class="wp-caption alignnone" style="width: 180px"><img class="size-full wp-image-344" title="cel-shading-5" src="http://jaycsantos.com/uploads/2009/03/cel-shading-5.jpg" alt=" " width="170" height="120" /><p class="wp-caption-text"> </p></div>
<p>5. Continue dragging the corners to the borders. Then use the paint bucket tool to color fill the space created .</td>
<td>
<div id="attachment_345" class="wp-caption alignnone" style="width: 180px"><img class="size-full wp-image-345" title="cel-shading-6" src="http://jaycsantos.com/uploads/2009/03/cel-shading-6.jpg" alt=" " width="170" height="120" /><p class="wp-caption-text"> </p></div>
<p>6. Drag the other sides to form a curve. This will be the shade for the nose curves.</td>
</tr>
<tr>
<td>
<div id="attachment_346" class="wp-caption alignnone" style="width: 180px"><img class="size-full wp-image-346" title="cel-shading-7" src="http://jaycsantos.com/uploads/2009/03/cel-shading-7.jpg" alt=" " width="170" height="120" /><p class="wp-caption-text"> </p></div>
<p>7. Continue dragging the remaining sides and curve them to make the round nose appear more round.</td>
<td>
<div id="attachment_347" class="wp-caption alignnone" style="width: 180px"><img class="size-full wp-image-347" title="cel-shading-8" src="http://jaycsantos.com/uploads/2009/03/cel-shading-8.jpg" alt=" " width="170" height="120" /><p class="wp-caption-text"> </p></div>
<p>8. Now from the point where both points meets (a corner) drag it to make a smooth curve.</td>
<td>
<div id="attachment_348" class="wp-caption alignnone" style="width: 180px"><img class="size-full wp-image-348" title="cel-shading-9" src="http://jaycsantos.com/uploads/2009/03/cel-shading-9.jpg" alt=" " width="170" height="120" /><p class="wp-caption-text"> </p></div>
<p>9. And we have the shading for the nose.</td>
</tr>
</tbody>
</table>
<p>Well it obviously took long enough just to have that shade using the rectangle tool which will prove that it isn&#8217;t that effective for this task.</p>
<h4>Line Tool</h4>
<p>So next we will be using the line tool. Now things would be much quicker to do hopefully compared to the above or maybe not, since we&#8217;ll be shading the whole face now (with the ears).</p>
<table border="0" cellspacing="0" cellpadding="0" width="90%">
<tbody>
<tr>
<td>
<div id="attachment_350" class="wp-caption alignnone" style="width: 210px"><img class="size-full wp-image-350" title="cel-shading-line-11" src="http://jaycsantos.com/uploads/2009/03/cel-shading-line-11.jpg" alt=" " width="200" height="200" /><p class="wp-caption-text"> </p></div>
<p>10. Using the line tool, create a line above the jaw then curve it a little. We will have connected lines instead of having just one so that we can have more control over the curves.</td>
<td>
<div id="attachment_351" class="wp-caption alignnone" style="width: 210px"><img class="size-full wp-image-351" title="cel-shading-line-12" src="http://jaycsantos.com/uploads/2009/03/cel-shading-line-12.jpg" alt=" " width="200" height="200" /><p class="wp-caption-text"> </p></div>
<p>11. The reason we curved the line is so that we won&#8217;t hit the mouth lines. Now extend it just above the chin. Curve it to your liking and to follow the jaw lines.</td>
</tr>
<tr>
<td>
<div id="attachment_352" class="wp-caption alignnone" style="width: 210px"><img class="size-full wp-image-352" title="cel-shading-line-13" src="http://jaycsantos.com/uploads/2009/03/cel-shading-line-13.jpg" alt=" " width="200" height="200" /><p class="wp-caption-text"> </p></div>
<p>12. Continue with creating lines and curve them to show how the face is (note: straight lines = flat faces).</td>
<td>
<div id="attachment_353" class="wp-caption alignnone" style="width: 210px"><img class="size-full wp-image-353" title="cel-shading-line-14" src="http://jaycsantos.com/uploads/2009/03/cel-shading-line-14.jpg" alt=" " width="200" height="200" /><p class="wp-caption-text"> </p></div>
<p>13. Continue lining and curving until you close the line for the shaded part.</td>
</tr>
<tr>
<td>
<div id="attachment_354" class="wp-caption alignnone" style="width: 210px"><img class="size-full wp-image-354" title="cel-shading-line-15" src="http://jaycsantos.com/uploads/2009/03/cel-shading-line-15.jpg" alt="cel-shading-line-15" width="200" height="200" /><p class="wp-caption-text"> </p></div>
<p>14. Since the ears are a little huge (okay, not little but really huge!), we won&#8217;t completely shade it. Create lines and curve them respective to how the ears are popped-out.</td>
<td>
<div id="attachment_355" class="wp-caption alignnone" style="width: 210px"><img class="size-full wp-image-355" title="cel-shading-line-16" src="http://jaycsantos.com/uploads/2009/03/cel-shading-line-16.jpg" alt=" " width="200" height="200" /><p class="wp-caption-text"> </p></div>
<p>15. After lining and curving, we can simply use the paint bucket tool to fill the shade color.</td>
</tr>
<tr>
<td>
<div id="attachment_356" class="wp-caption alignnone" style="width: 210px"><img class="size-full wp-image-356" title="cel-shading-line-17" src="http://jaycsantos.com/uploads/2009/03/cel-shading-line-17.jpg" alt=" " width="200" height="200" /><p class="wp-caption-text"> </p></div>
<p>16. When everything is looking okay (lines and curves are good enough), we have to delete all the lines (unless you&#8217;ll make them necessary).</td>
<td>
<div id="attachment_358" class="wp-caption alignnone" style="width: 210px"><img class="size-full wp-image-358" title="cel-shading-line-18" src="http://jaycsantos.com/uploads/2009/03/cel-shading-line-18.jpg" alt=" " width="200" height="281" /><p class="wp-caption-text"> </p></div>
<p>17. And look now, we have our character shaded quite well.</td>
</tr>
</tbody>
</table>
<p>Now that we have our character&#8217;s face shaded, the only thing left is the shirt.</p>
<h4>Brush Tool</h4>
<p>For this last one, we&#8217;ll be using the brush tool and expect this one to be the quickest of them all. Although the outcome might not be well straight and curved unlike from lines but who care anyway, we just want it to look better and do it fast. By the way I&#8217;m using my tablet but this shading can still be achieved by using a mouse.</p>
<table border="0" cellspacing="0" cellpadding="0" width="90%">
<tbody>
<tr>
<td>
<div id="attachment_360" class="wp-caption alignnone" style="width: 180px"><img class="size-medium wp-image-360" title="cel-shading-brush-19" src="http://jaycsantos.com/uploads/2009/03/cel-shading-brush-19.jpg" alt=" " width="170" height="190" /><p class="wp-caption-text"> </p></div>
<p>18. With the Brush tool, we have to set the brush mode to Paint Selection.</td>
<td>
<div id="attachment_361" class="wp-caption alignnone" style="width: 180px"><img class="size-full wp-image-361" title="cel-shading-brush-20" src="http://jaycsantos.com/uploads/2009/03/cel-shading-brush-20.jpg" alt=" " width="170" height="190" /><p class="wp-caption-text"> </p></div>
<p>19. Select the fill for the shirt using Selection tool.</td>
<td>
<div id="attachment_362" class="wp-caption alignnone" style="width: 180px"><img class="size-full wp-image-362" title="cel-shading-brush-21" src="http://jaycsantos.com/uploads/2009/03/cel-shading-brush-21.jpg" alt=" " width="170" height="190" /><p class="wp-caption-text"> </p></div>
<p>20. With Brush mode set to Paint Selection, only the selected parts will be painted, so go on and brush the upper part of the shirt which is supposed to be shadowed from the character&#8217;s head and don&#8217;t worry about paint going off the selection, it won&#8217;t.</td>
</tr>
<tr>
<td>
<div id="attachment_363" class="wp-caption alignnone" style="width: 180px"><img class="size-full wp-image-363" title="cel-shading-brush-22" src="http://jaycsantos.com/uploads/2009/03/cel-shading-brush-22.jpg" alt=" " width="170" height="190" /><p class="wp-caption-text"> </p></div>
<p>21. Then do the same for the part bellow the arms.</td>
<td>
<div id="attachment_364" class="wp-caption alignnone" style="width: 180px"><img class="size-full wp-image-364" title="cel-shading-brush-23" src="http://jaycsantos.com/uploads/2009/03/cel-shading-brush-23.jpg" alt=" " width="170" height="190" /><p class="wp-caption-text"> </p></div>
<p>22. And also with the sleeves.</td>
<td>
<div id="attachment_359" class="wp-caption alignnone" style="width: 180px"><img class="size-full wp-image-359" title="cel-shading-brush-24" src="http://jaycsantos.com/uploads/2009/03/cel-shading-brush-24.jpg" alt=" " width="170" height="190" /><p class="wp-caption-text"> </p></div>
<p>23. And do the same for the arm too. And we&#8217;re finished!</td>
</tr>
</tbody>
</table>
<p>I supposed you would not like to use the rectangle tool, but I just wanted to share that since I once used it before. The line tool has it&#8217;s own purpose on certain circumstances that using the brush tool might be troubling.</p>
<div id="attachment_365" class="wp-caption aligncenter" style="width: 116px"><img class="size-full wp-image-365" title="Sample character with shading" src="http://jaycsantos.com/uploads/2009/03/cel-shading1.jpg" alt="Sample character with shading" width="106" height="141" /><p class="wp-caption-text">Sample character with shading</p></div>
<p>So maybe now, you have an idea on how you&#8217;ll be able to cel-shade your drawings from my example here. Of course hand draw styles are not meant to be with perfect lines, curves and shades, it would all come to a matter of preference and personal style. Learning this drawing style might take a while for you to get used to but it will be well deserved when all comes to place after a lot of practice. Now, go! go! go and draw your toons&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://jaycsantos.com/flash/applying-cel-shading-with-flash/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using Cel-Shading</title>
		<link>http://jaycsantos.com/flash/using-cel-shading/</link>
		<comments>http://jaycsantos.com/flash/using-cel-shading/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 11:18:03 +0000</pubDate>
		<dc:creator>Jayc Santos</dc:creator>
				<category><![CDATA[Arts n Visuals]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[cel-shading]]></category>
		<category><![CDATA[drawing]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://jaycsantos.com/?p=324</guid>
		<description><![CDATA[As most of the games I&#8217;ve designed so far, it has come to me that I finally have my favorite and primary drawing style. I&#8217;m not a fantastic nor a pure talent but I believe I don&#8217;t completely lack the skills needed for me to draw my own art. And so I&#8217;ve been comfortable with [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_327" class="wp-caption alignleft" style="width: 210px"><img class="size-full wp-image-327" title="cel-shading" src="http://jaycsantos.com/uploads/2009/03/cel-shading.jpg" alt="Cel-Shading" width="200" height="125" /><p class="wp-caption-text">Cel-Shading</p></div>
<p>As most of the games I&#8217;ve designed so far, it has come to me that I finally have my favorite and primary drawing style. I&#8217;m not a fantastic nor a pure talent but I believe I don&#8217;t completely lack the skills needed for me to draw my own art. And so I&#8217;ve been comfortable with drawing in 2d cartoons then shading them properly to add life &#8211; and so, <em>cel-shading</em>.</p>
<p>I first discovered my quirky drawing skills back when I was in grade school but soon after I just lost interest and my drawing did not improve by then. But during flash development, the need was called forth again, &#8220;Learn to draw!!&#8221;. From my previous games until now the progress of digital art is noticeable should I say.</p>
<p>Cel shading or toon shading has been a traditional drawing style, which expresses the hand drawn style of comics and cartoons. The term came from painted cels from clear sheets of acetate which was used for traditional 2D animations.<br />
<span id="more-324"></span></p>
<div id="attachment_328" class="wp-caption aligncenter" style="width: 261px"><img class="size-full wp-image-328" title="cel-shading_fig1_square" src="http://jaycsantos.com/uploads/2009/03/cel-shading_fig1_square.jpg" alt="Fig 1: Square and cel-shaded square" width="251" height="116" /><p class="wp-caption-text">Figure: Square and cel-shaded square</p></div>
<p>Cel shading looks quite easy but is not really and could be well complicated especially for those who are not trained, educated or simply not inclined with the art field itself. Basically, from your 2 dimensional shape (see figure), you have to imagine a 3rd dimension which is practically affected by lighting and shadows. A basic rule is to keep consistent the light source, if it will be from the top left then shadows would usually be found on the lower right of the object and light glares or shines will be on the top left also. From the figure, after having a light source and some shade, the box appears to be least flat.</p>
<p>Some advantages when cel-shading is applied on your flat shapes and objects:</p>
<ul>
<li> Depths would be more clear &#8211; which side or area is deeper or more beveled.</li>
<li>light texture is displayed &#8211; rocky, spiky or simply varying surfaces can be expressed from proper shades.</li>
<li>contrast can be improved by having varying borders and edges are usually thicker.</li>
<li>having a light 3d effect while still being in 2d.</li>
<li>and lastly it gives more life into the shape/object.</li>
</ul>
<p>Of course, cel-shading is not the best there is with regards to drawing, but it is one of those which are most easiest to implement.</p>
<p>With the tools provided in Flash, we can apply this technique from various methods and get similar results &#8211; but I&#8217;ll leave that to another post. <img src='http://jaycsantos.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jaycsantos.com/flash/using-cel-shading/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Animation Tip: Squash and Stretch</title>
		<link>http://jaycsantos.com/flash/animation-tip-squash-and-stretch/</link>
		<comments>http://jaycsantos.com/flash/animation-tip-squash-and-stretch/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 02:35:34 +0000</pubDate>
		<dc:creator>Jayc Santos</dc:creator>
				<category><![CDATA[Arts n Visuals]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[technique]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://jaycsantos.com/?p=310</guid>
		<description><![CDATA[Starting of the Arts n Visuals category, I&#8217;ll present you a classic traditional animation technique yet very useful even now, especially for 2D animations, Squash and Stretch. Seeing an abundant genre of flash games concerning with balls especially bouncing balls, the Squash and Stretch technique might serve some help for those who wish to make [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_319" class="wp-caption alignright" style="width: 160px"><img class="size-full wp-image-319" title="Flash tools" src="http://jaycsantos.com/uploads/2009/02/flash_art_tools.jpg" alt="Flash tools" width="150" height="121" /><p class="wp-caption-text">Flash tools</p></div>
<p>Starting of the Arts n Visuals category, I&#8217;ll present you a classic traditional animation technique yet very useful even now, especially for 2D animations, Squash and Stretch. Seeing an abundant genre of flash games concerning with balls especially bouncing balls, the Squash and Stretch technique might serve some help for those who wish to make more bouncing ball games.</p>
<p><strong>Squash and Stretch</strong> is a traditional animation technique that is famously used by 2D animators and cartoon designers although not quite practical for 3D animators. It can give your object some realism and weight into it. When a moving object collides into a stationary object, it will deform on impact. Remember that no matter how much an object deforms from squashes and stretches is that it will always have the same volume. Also, the deformity would rather depend on the object&#8217;s rigidness and flexibility, so a rubber ball is most likely to deform more than a golf ball upon impact.<span id="more-310"></span></p>
<p>Usually with cartooning, the deformities are exaggerated and could either show more realism or make it more inherently funnier. An obvious example I have is a rubber ball.</p>
<p style="text-align: center;">
<div id="attachment_312" class="wp-caption aligncenter" style="width: 310px"><img class="size-full wp-image-312" title="Stretch" src="http://jaycsantos.com/uploads/2009/02/sshot-2009-02-21-1.jpg" alt="Stretch - pre/post-impact" width="300" height="200" /><p class="wp-caption-text">Stretch - pre/post-impact</p></div>
<div id="attachment_311" class="wp-caption aligncenter" style="width: 310px"><img class="size-full wp-image-311" title="Squash" src="http://jaycsantos.com/uploads/2009/02/sshot-2009-02-21-2.jpg" alt="Squash - point of impact" width="300" height="200" /><p class="wp-caption-text">Squash - point of impact</p></div>
<p>With this example, a stretch is achieved when the ball shows speed (before and after impact) and a squash during the point of impact. Of course more stretch could be interpreted as a faster ball and more squash would show more impact strength. Although it could be exaggerated in both ways that it could also mean that the object is least rigid or not at all.</p>
<div id="attachment_313" class="wp-caption aligncenter" style="width: 310px"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="src" value="http://jaycsantos.com/uploads/2009/02/stretch_n_bounce_demo1.swf" /><embed type="application/x-shockwave-flash" width="300" height="200" src="http://jaycsantos.com/uploads/2009/02/stretch_n_bounce_demo1.swf" quality="high"></embed></object><p class="wp-caption-text">Squash and Stretch - Sample Animation</p></div>
<p>Although the best example to show this is a ball, any other object that posses proper rigidness can be used to show more speed and impact. Of course the squash and stretch technique is just one of the many ways to visually improve speed and impact realism and/or exaggeration.</p>
<hr />
<h3>Other Keywords</h3>
<ul>
<li>Flash animating ball bounce.</li>
<li>Flash animation, ball game action-reaction.</li>
<li>Flash animation tips &amp; tricks.</li>
<li>Animation effect, speed, bounce, etc.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jaycsantos.com/flash/animation-tip-squash-and-stretch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using a Frame Controller to do animations -AS2</title>
		<link>http://jaycsantos.com/flash/using-a-frame-controller-to-do-animations-as2/</link>
		<comments>http://jaycsantos.com/flash/using-a-frame-controller-to-do-animations-as2/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 13:50:07 +0000</pubDate>
		<dc:creator>Jayc Santos</dc:creator>
				<category><![CDATA[Actionscript 2]]></category>
		<category><![CDATA[Arts n Visuals]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[animation]]></category>

		<guid isPermaLink="false">http://jaycsantos.com/?p=206</guid>
		<description><![CDATA[This is how I do my frame controller basically in logical means.
Features:
dependent on code, not on the swf&#8217;s framing
very flexible and expandable
reusable for any other animation that require distinct control
can cheat key framing
really simple

Structure:
Basically the primary movieclip of the character shall contain a few designated frames for each possible animation it shall have. For this [...]]]></description>
			<content:encoded><![CDATA[<p>This is how I do my frame controller basically in logical means.</p>
<ul><strong>Features:</strong></p>
<li>dependent on code, not on the swf&#8217;s framing</li>
<li>very flexible and expandable</li>
<li>reusable for any other animation that require distinct control</li>
<li>can cheat key framing</li>
<li>really simple</li>
</ul>
<p><strong>Structure:</strong><br />
Basically the primary movieclip of the character shall contain a few designated frames for each possible animation it shall have. For this case I have frame 1, 3, 5 and 7 each allocated as stand/idle, running, jump and double jump animations respectively and all have &#8220;mc&#8221; as their instance names. This is also shown on these images:</p>
<div class="wp-caption aligncenter" style="width: 283px"><a href="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-41-52%5D.png"  onclick="return false"><img id="img_206_sshot-2008-09-23-%5B00-41-52%5D_png" title="Stand MovieClip, frame 1 &amp; 2" src="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-41-52%5D.png" alt="Stand MovieClip, frame 1 &amp; 2" width="273" height="100"onclick="enlarge(this)" longdesc="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-41-52%5D.png" /></a><p class="wp-caption-text">Stand MovieClip, frame 1 &amp; 2</p></div>
<div class="wp-caption aligncenter" style="width: 283px"><a href="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-42-52%5D.png"  onclick="return false"><img id="img_206_sshot-2008-09-23-%5B00-42-52%5D_png" title="run MovieClip, frame 3 &amp; 4" src="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-42-52%5D.png" alt="run MovieClip, frame 3 &amp; 4" width="273" height="100"onclick="enlarge(this)" longdesc="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-42-52%5D.png" /></a><p class="wp-caption-text">run MovieClip, frame 3 &amp; 4</p></div>
<div class="wp-caption aligncenter" style="width: 283px"><a href="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-43-52%5D.png"  onclick="return false"><img id="img_206_sshot-2008-09-23-%5B00-43-52%5D_png" title="Jump MovieClip - frame 5 &amp; 6" src="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-43-52%5D.png" alt="Jump MovieClip - frame 5 &amp; 6" width="273" height="100"onclick="enlarge(this)" longdesc="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-43-52%5D.png" /></a><p class="wp-caption-text">Jump MovieClip - frame 5 &amp; 6</p></div>
<div class="wp-caption aligncenter" style="width: 283px"><a href="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-44-52%5D.png"  onclick="return false"><img id="img_206_sshot-2008-09-23-%5B00-44-52%5D_png" title="Double Jump MovieClip - frame 7 &amp; 8" src="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-44-52%5D.png" alt="Double Jump MovieClip - frame 7 &amp; 8" width="273" height="100"onclick="enlarge(this)" longdesc="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-44-52%5D.png" /></a><p class="wp-caption-text">Double Jump MovieClip - frame 7 &amp; 8</p></div>
<p><span id="more-206"></span></p>
<p>Then each animation respectively has the animation sequence tween. And take note: that each animation is not key framed with one&#8217;s or two&#8217;s yet they set on a five&#8217;s key framing. This is because our frame controller must be able to tolerate slight FPS reductions based on time (<a href="http://jaycsantos.com/flash/frame-based-vs-time-based-using-enterframe-as2/" target="_blank">detailed on this post</a>). So when the animation is played from the timeline during design time it would appear to be quite slower than expected.</p>
<div class="wp-caption aligncenter" style="width: 283px"><a href="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-51-52%5D.png"  onclick="return false"><img id="img_206_sshot-2008-09-23-%5B00-51-52%5D_png" title="Stand MovieClip - 100 frames" src="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-51-52%5D.png" alt="Stand MovieClip - 100 frames" width="273" height="100"onclick="enlarge(this)" longdesc="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-51-52%5D.png" /></a><p class="wp-caption-text">Stand MovieClip - 100 frames</p></div>
<div class="wp-caption aligncenter" style="width: 283px"><a href="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-52-52%5D.png"  onclick="return false"><img id="img_206_sshot-2008-09-23-%5B00-52-52%5D_png" title="Run MovieClip - 80 frames" src="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-52-52%5D.png" alt="Run MovieClip - 80 frames" width="273" height="100"onclick="enlarge(this)" longdesc="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-52-52%5D.png" /></a><p class="wp-caption-text">Run MovieClip - 80 frames</p></div>
<div class="wp-caption aligncenter" style="width: 283px"><a href="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-53-52%5D.png"  onclick="return false"><img id="img_206_sshot-2008-09-23-%5B00-53-52%5D_png" title="Jump MovieClip - 65 frames" src="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-53-52%5D.png" alt="Jump MovieClip - 65 frames" width="273" height="100"onclick="enlarge(this)" longdesc="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-53-52%5D.png" /></a><p class="wp-caption-text">Jump MovieClip - 65 frames</p></div>
<div class="wp-caption aligncenter" style="width: 283px"><a href="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-54-52%5D.png"  onclick="return false"><img id="img_206_sshot-2008-09-23-%5B00-54-52%5D_png" title="Double Jump MovieClip - 50 frames" src="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-54-52%5D.png" alt="Double Jump MovieClip - 50 frames" width="273" height="100"onclick="enlarge(this)" longdesc="http://jaycsantos.com/wp-content/uploads/2008/09/sshot-2008-09-23-%5B00-54-52%5D.png" /></a><p class="wp-caption-text">Double Jump MovieClip - 50 frames</p></div>
<p>Also take note of each of the animation&#8217;s total frames; they&#8217;ll be used when playing through them. After setting up the structures here is where the controller comes in.</p>
<p><strong>Code:</strong><br />
This is assumed to be within your character&#8217;s class.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> _cframe:<span style="color: #0066CC;">Number</span>;
<span style="color: #000000; font-weight: bold;">var</span> _ccframe:<span style="color: #0066CC;">Number</span>;
<span style="color: #000000; font-weight: bold;">var</span> mc:<span style="color: #0066CC;">MovieClip</span>; <span style="color: #808080; font-style: italic;">// animation movieclip child</span>
<span style="color: #000000; font-weight: bold;">function</span> update<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	controlFrame<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #808080; font-style: italic;">// some more codes here</span>
	<span style="color: #0066CC;">gotoAndStop</span><span style="color: #66cc66;">&#40;</span> _cframe <span style="color: #66cc66;">&#41;</span>;
	mc.<span style="color: #0066CC;">gotoAndStop</span><span style="color: #66cc66;">&#40;</span> _ccframe <span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> controlFrame<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> frameSkip:<span style="color: #0066CC;">Number</span> = <span style="color: #0066CC;">int</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">4</span> <span style="color: #66cc66;">*</span> Engine.<span style="color: #006600;">frameSpd</span> <span style="color: #66cc66;">&#41;</span> + <span style="color: #cc66cc;">1</span>;
&nbsp;
	<span style="color: #b1b100;">switch</span><span style="color: #66cc66;">&#40;</span> _cframe <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">1</span>: <span style="color: #808080; font-style: italic;">// stand/idle</span>
			<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> _ccframe + frameSkip <span style="color: #66cc66;">&amp;</span>gt; <span style="color: #cc66cc;">100</span> <span style="color: #66cc66;">&#41;</span> _ccframe = <span style="color: #66cc66;">&#40;</span> _ccframe + frameSkip <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">%</span> <span style="color: #cc66cc;">100</span>
			<span style="color: #b1b100;">else</span> _ccframe += frameSkip;
			<span style="color: #b1b100;">break</span>;
		<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">3</span>: <span style="color: #808080; font-style: italic;">// run</span>
			<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> _ccframe + frameSkip <span style="color: #66cc66;">&amp;</span>gt; <span style="color: #cc66cc;">80</span> <span style="color: #66cc66;">&#41;</span> _ccframe = <span style="color: #66cc66;">&#40;</span> _ccframe + frameSkip <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">%</span> <span style="color: #cc66cc;">80</span>
			<span style="color: #b1b100;">else</span> _ccframe += frameSkip;
			<span style="color: #b1b100;">break</span>;
		<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">5</span>: <span style="color: #808080; font-style: italic;">// jump</span>
			<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> _ccframe + frameSkip <span style="color: #66cc66;">&amp;</span>gt; <span style="color: #cc66cc;">65</span> <span style="color: #66cc66;">&#41;</span> _ccframe = <span style="color: #66cc66;">&#40;</span> _ccframe + frameSkip <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">%</span> <span style="color: #cc66cc;">65</span> + <span style="color: #cc66cc;">25</span>;
			<span style="color: #b1b100;">else</span> _ccframe += frameSkip;
			<span style="color: #b1b100;">break</span>;
		<span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">7</span>: <span style="color: #808080; font-style: italic;">// double jump</span>
			<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> _ccframe + frameSkip <span style="color: #66cc66;">&amp;</span>gt; <span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
				_ccframe = <span style="color: #66cc66;">&#40;</span> _ccframe + frameSkip <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">%</span> <span style="color: #cc66cc;">50</span> + <span style="color: #cc66cc;">25</span>;
				_cframe = <span style="color: #cc66cc;">5</span>;
			<span style="color: #66cc66;">&#125;</span>	<span style="color: #b1b100;">else</span> _ccframe += frameSkip;
			<span style="color: #b1b100;">break</span>;
		<span style="color: #000000; font-weight: bold;">default</span>: <span style="color: #b1b100;">break</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p><em>_cframe</em> is the current animation frame of the character and <em>_ccframe</em> acts like a play head for the <em>mc</em> animation itself.</p>
<p><strong>Line 11</strong>: You can see why we used five&#8217;s key framing because our <em>frameSkip</em> is 5 by default and is then altered by the <em>frameSpd</em>. So if <em>frameSpd</em> is not used, then the controller will basically be frame based.</p>
<p><strong>Line 15 &amp; 19</strong>: Check if the sum of <em>frameSkip</em> &amp; <em>_ccframe</em> is greater than the total frames then use modulus (%) to reset.</p>
<p><strong>Line 16, 20, 24 &amp; 30</strong>: Else just add the <em>frameSkip</em> to <em>_ccframe</em></p>
<p><strong>Line 23 &amp; 28</strong>: Check if the sum of <em>frameSkip</em> &amp; <em>_ccframe</em> is greater than the total frames then use modulus (%) to reset and add a special offset specific with respect to the animation intended.</p>
<p><strong>Line 29</strong>: Transfers the animation then from double jump to jump with the same <em>_ccframe</em></p>
<p><strong>Line 7 &amp; 8</strong>: The update will them take care of updating the right movieclips based on what <em>_cframe</em> &amp; <em>_ccframe</em> was changed into.</p>
<div class="wp-caption aligncenter" style="width: 490px"><object width="480" height="300" data="http://jaycsantos.com/wp-content/uploads/2008/09/frame-controller-sample_secure.swf" type="application/x-shockwave-flash"><param name="quality" value="high" /><param name="src" value="http://jaycsantos.com/wp-content/uploads/2008/09/frame-controller-sample_secure.swf" /></object><p class="wp-caption-text">A sample which uses this frame controller. Arrows keys to move.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://jaycsantos.com/flash/using-a-frame-controller-to-do-animations-as2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->