<?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: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-4668603313704708768</id><updated>2011-09-09T09:57:25.122-07:00</updated><category term='Rain'/><category term='Tutorials'/><category term='AGS'/><title type='text'>The Thin Ice</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://icethin.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4668603313704708768/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://icethin.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Dualnames</name><uri>http://www.blogger.com/profile/06550063249147544687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_KmnrUlkkWW0/SbpBrrwGwpI/AAAAAAAAAGE/KhthGCV5lQs/S220/dualzombiefied.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4668603313704708768.post-394864553777901371</id><published>2010-08-27T04:36:00.000-07:00</published><updated>2010-09-07T02:13:37.540-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Rain'/><category scheme='http://www.blogger.com/atom/ns#' term='Tutorials'/><category scheme='http://www.blogger.com/atom/ns#' term='AGS'/><title type='text'>How-To Rain in AGS (part 2)</title><content type='html'>Okay, so we have the frames of the rain and the very nicely raindrops. Concerning the raindrops I gave on the first part, it's wise to have many kinds of them. Apparently a raindrop that appears as it spreads too much is ideal for body collision. Just try and make many sprites and see what fits per each purpose.&lt;br /&gt;&lt;br /&gt;Now create 3 GUIS that need to be always shown. Set them all to non-clickable.&lt;br /&gt;Let's assume the GUIs are named like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;gMRain&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;gFRain&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;gCharCol&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now, you need to define their transparency. I go 91, 84, 60. And the Z-Order should be 2,1,0. Depends on your needs though. Those are the presets for the rain.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Now, how to make it work?&lt;/span&gt;&lt;br /&gt;1) Get the "module" from &lt;a href="http://www.xenogiagames.com/dngames/rainmodule.scm"&gt;here&lt;/a&gt;.&lt;br /&gt;2) Import it in your game.&lt;br /&gt;3) Check the script for the comments.&lt;br /&gt;4) All you need is the following code that just works like this:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;On:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;RainUpdate(true);&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;//placed on a repeatedly execute or rep exec always&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;and Off:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;RainUpdate(false); &lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;//just once or constantly (though that's just stupid, but it works)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Rain Drops:&lt;/span&gt;&lt;br /&gt;This is a part of the same module, but there's no standard recipe. You have to set it to your needs that's all.  Inside the same module you'll find the way on how. All then you need it to work is put this:&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;(preferably per room)&lt;/span&gt; On a repeatedly execute function.&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Raindrops();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There are many ways to do reflections with my favorite being just a copy of the room, flipped upside down, and placed on a object with an increased transparency. Same goes for Characters, with the difference that they have to copy each frame,which isn't hard to do at all.&lt;br /&gt;&lt;br /&gt;You can easily reach to what follows below in no time.&lt;br /&gt;So go ahead, see the effect &lt;a href="http://www.xenogiagames.com/dngames/raineffect.rar"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;And that's the end. Feel free to question me at any time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4668603313704708768-394864553777901371?l=icethin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4668603313704708768/posts/default/394864553777901371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4668603313704708768/posts/default/394864553777901371'/><link rel='alternate' type='text/html' href='http://icethin.blogspot.com/2010/08/how-rain-in-ags-part-2.html' title='How-To Rain in AGS (part 2)'/><author><name>Dualnames</name><uri>http://www.blogger.com/profile/06550063249147544687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_KmnrUlkkWW0/SbpBrrwGwpI/AAAAAAAAAGE/KhthGCV5lQs/S220/dualzombiefied.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-4668603313704708768.post-7781169661987339751</id><published>2010-08-26T05:14:00.000-07:00</published><updated>2010-08-26T06:31:34.265-07:00</updated><title type='text'>How-To Rain in AGS.</title><content type='html'>I've been looking a lot around the forums and the internet, but there are few tutorials on how to make your own rain that are worth it. So I took the best out of them and I created my own. You can see the end result below.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.xenogiagames.com/dngames/Untitled.mp4"&gt;WATCH&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;There's some lag due to the cam studio, so bear in mind the effects are smoother than hell. Also those are place-holder graphics, please don't judge me.&lt;br /&gt;&lt;br /&gt;Now, well, let's see what a realistic rain consists from.&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;1. Depth/Perspective&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. Reflection&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;3. Collision&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.Depth  means that as any 2d game has some illusion of depth, aka perspective, so should the rain have. The rain should consist of some rain layers. The more the merrier. Depends on what we prefer, but two is all right as well.&lt;br /&gt;&lt;br /&gt;2. When it's raining certain surfaces become mirror-like and project a reflection. Bearing that in mind you can create a very eye-candy result.&lt;br /&gt;&lt;br /&gt;3. Collision the rain shall eventually fall on anything we see. A lamp light, our own characters even. And very importantly on the floor.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;RAIN LAYERS:&lt;/span&gt;I've made two rain layers and those were the ones I was happy with.  One front and one back. I presume there's a version of photoshop, cause it's needed for this.&lt;br /&gt;&lt;br /&gt;1.&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_KmnrUlkkWW0/THZlaSD4AHI/AAAAAAAAAQQ/rIIZ1mV4qi4/s1600/1.png"&gt;Okay, so create a blank document at your game's resolution size.&lt;br /&gt;&lt;/a&gt;2.&lt;a href="http://i133.photobucket.com/albums/q53/JustLedZep/2-16.png"&gt;Using the bucket paint it black.&lt;/a&gt;&lt;br /&gt;3.&lt;a href="http://i133.photobucket.com/albums/q53/JustLedZep/3-6.png"&gt;Now click on &lt;span style="font-weight: bold;"&gt;Filter&gt;Noise&gt;Add Noise&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;4. Have the following settings: &lt;span style="font-weight: bold;"&gt;Amount - 400% , Uniform, Monochromatic&lt;/span&gt;&lt;br /&gt;5.&lt;a href="http://i133.photobucket.com/albums/q53/JustLedZep/4-9.png"&gt;Click on&lt;span style="font-weight: bold;"&gt; Filter&gt;Blur&gt;Motion Blur&lt;/span&gt;. Set an angle of your choice, and distance around 30-40 pixels, and click on OK.&lt;/a&gt;&lt;br /&gt;6.&lt;a href="http://i133.photobucket.com/albums/q53/JustLedZep/5-3.png"&gt;Click on&lt;span style="font-weight: bold;"&gt; Image&gt;Adjustsments&gt;Levels&lt;/span&gt; or if you like &lt;span style="font-weight: bold;"&gt;CTRL+L&lt;/span&gt;, and on input levels set 148 - 1.00 - 255&lt;/a&gt;. 148 is what will determine the raindrops.&lt;br /&gt;7.Clip the canvas or re-size the picture to avoid what you see on the bottom and top. The clustering of raindrops. Make sure your image will retain its resolution that will fill the screen of your game.&lt;br /&gt;&lt;br /&gt;We're halfway there.&lt;br /&gt;1. Repeat this process creating however NEW documents to create as many frames as you like (4 are enough). That is because the noise pattern must differentiate, otherwise you'll be creating same frames.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. For each frame do the following:&lt;/span&gt;&lt;br /&gt;-Create a layer&lt;br /&gt;-Duplicate the background layer&lt;br /&gt;-Delete the background layer(not the duplicated)&lt;br /&gt;-Place the empty layer under the duplicated background layer.&lt;br /&gt;-Click on the magic wand, and click on something black.&lt;br /&gt;-Press delete.&lt;br /&gt;-Press CTRL+I to invert the raindrops from black to white.&lt;br /&gt;-Delete the empty layer.&lt;br /&gt;-Save as PNG.&lt;br /&gt;3. When you're done that means you have Middle Rain.&lt;br /&gt;4. Now you can Scale those frames by Edit&gt;Transform&gt;Scale, to zoom them and create Front rain.&lt;br /&gt;&lt;br /&gt;You can see my results on the rain &lt;a href="http://www.xenogiagames.com/dngames/rainframes.rar"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;To finish the drawing part for the tutorial part 1, just create some rain drop falls, something like those &lt;a href="http://www.xenogiagames.com/dngames/raindrops.rar"&gt;sprites&lt;/a&gt;. I will even supply the scripting part, so don't worry. :P&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4668603313704708768-7781169661987339751?l=icethin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://icethin.blogspot.com/feeds/7781169661987339751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://icethin.blogspot.com/2010/08/how-to-rain-in-ags.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4668603313704708768/posts/default/7781169661987339751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4668603313704708768/posts/default/7781169661987339751'/><link rel='alternate' type='text/html' href='http://icethin.blogspot.com/2010/08/how-to-rain-in-ags.html' title='How-To Rain in AGS.'/><author><name>Dualnames</name><uri>http://www.blogger.com/profile/06550063249147544687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_KmnrUlkkWW0/SbpBrrwGwpI/AAAAAAAAAGE/KhthGCV5lQs/S220/dualzombiefied.png'/></author><thr:total>0</thr:total></entry></feed>
