Showing posts with label flash. Show all posts
Showing posts with label flash. Show all posts

Monday, September 15, 2008

WizED 1.1 (for Wizards)

Instructions for the editor for my flash game Wizards (WizED v1.1) 

I am putting this in my blog as I don't have a website for the game set up yet, though I should do shortly.  As the editor (along with the game) have been quite rushed, and since it has all been a learning experience, programming things I have not attempted before, things will not all run perfectly.  I have made no attempt at error handling as of yet.  If a problem arises, the game will most likely crash.   

I know this game isn’t perfect, but I have worked hard on it and have learnt quite a lot (mainly that I need to learn better ways of doing things) and I hope you enjoy trying it and messing around with the editor.  I know there are problems with it, and I know it can be frustrating, but I would really appreciate any useful criticism and ideas on how to improve the game and the editor.  I will be working on updates now and again so hopefully the game will begin to improve over time. 


The Editor
With some objects, such as the collectable stars, and mover objects, once they are placed, there is no way of removing them without starting the level design from scratch (restarting the editor).  Mover objects can be drawn over with the blank tile, but this will not actually remove it from the level.

Also, I have found it very hard finding any information on saving information from a flash file to the local computer.  For this reason, to save your level you must copy the level information into a text file and save it in the 'Levels' folder of the 'Wizards 2_2' directory (which you will have to have copied or downloaded onto your computer from the CD-Rom or website).  The next version will allow levels to be loaded from webpage url's.

Unfortunately, for now anyway, once you have clicked the 'make' button, you will not be able to go back and edit your level using the level editor.  Also, there is no way as of yet for importing levels to edit using the editor.  This is something I will be adding in the next version.  So before you click 'make', ensure that the level is exactly how you want it.


Block Brushes

The normal tile brushes are very easy to use and work well.  Simply choose the tile (there are three different tiles available in this version of the editor, and four unused ones (red/other colours).  There is also the blank tile (which has a red line through it) which is used for removing tiles you have placed.  Once you have selected your tile, click and drag around on the map to place the tiles down.  You can place as many tiles as you like without slowing down the game any considerable amount.  If you go wrong, use the blank tile.  You can use the red tiles if you wish, they will just show up as they do on the editor when playing the game (in the current version at least).


Collectable (small) Stars 
The small stars are the collectable items in the game.  You must have at least one of these on your map somewhere or the 'make' button wont function.  Ensure that you put the stars in places that are reachable by one of the characters (in Wizards v2.2, characters can jump approximately 4 blocks high.  This may vary in later versions of the game).
  The star brush icon is small so look at the output box at the bottom left of the screen to ensure it reads ‘Star Brush’ before clicking on the map.  You can only place one star at a time, and only one in each box.  In v2.2, stars are always placed in the bottom left of the box (again, may vary in later versions).  Be careful placing stars as they cannot be removed in the editor.  Although stars do not have to be reachable for the ‘make’ button to function, the level exit stars will not appear until all of the smaller stars have been collected in the level, meaning the level will not be completable.   

Also be careful with the amount of stars that you place, as they can start to slow the game down considerably.


Exit Stars
A level can only have, and must have two exit stars to be able to use the make button, and for the game to load it.  Ensure the stars are reachable by the characters (at the same time) to make the level completable.  Although you cannot directly remove exit stars, if you have the exit star brush selected and click on the map when two exit stars already exist, then both exit stars will disappear. 


Mover Blocks
Mover blocks are the big pain with the game and the editor.  These need a lot of work until they are fully usable within the game.  To create a moving block, click the red block to the right of the large star at the top of the screen.  The output text will read ‘Mover Block.  Select a tile type’.  Although you must select a tile type, this is completely irrelevant as all blocks appear as block type 3 (the four brown blocks).  Once a tile type has been selected, type in a number in both the text boxes beside the mover brush.  The top number refers to how many blocks above the selected one the mover block will move up to, and the bottom number how for the mover block will move down to.  There is no cap on the number you can enter, though errors will probably get thrown back at you if you type huge numbers (I’ve not tried). 

When moving blocks move at different heights to each other, the character gets confused when landing on one and starts jumping up and down on the lower ones.  This is annoying and unplayable, so I advise having all moving blocks at the same height.

There is nothing stopping a mover block moving down from the top screen to the bottom screen or vice versa.  I don’t think that I have actually implemented the ability for the bottom character to use mover blocks, but this will definitely be added in the next version.  As stated before, mover blocks cannot be deleted using the editor. 


Editing with Text Editor
If you really want to edit the level after you have created it and found something isn’t working right, then it IS possible to open the xml file in a text editor and make changes.  If you are deleting a star or mover item, ensure that you edit the ‘starNum’ and ‘moverNum’ tags near the start of the file relevant to the changes made.


Saving your Level

When you press the make button, assuming no errors come up, the xml data for the level will appear in a text box.  The text is automatically copied to the clipboard so just open up your text editor and paste it in (the file may look a bit odd but don’t worry).  Save it in the Levels folder as an xml file (e.g. myLevel.xml).  Now when you run Wizards2_2.exe (from the same file as the Levels folder sits) just type in ‘Levels\myLevel.xml’ or whatever you have saved it as in the text box and click ‘Load’ to start your level.

Saturday, September 06, 2008

[XML] Loading level layouts into tile based Flash Game

Introduction


I am starting the XML stuff for my wizards game from scratch. Yesterday after trying several methods of getting multiple levels to load, I found out about using XML to load in data to a flash file.  I used several websites to help me understand the concept (Emanuel Feronato,8 Bit Rocket and by far the most useful and easy to understand, Kirupa).

 

Anyway, thinking I had learnt completely how to use it, I dived straight in to adding the code into my project.  This sort of worked.  I am still unsure why it DIDN'T work completely.  I managed to load in the level and display it on the screen, but I couldn't work out why it wasn't showing properly (the tiles were all the same, as oposed to showing the correct tile based on the number in the XML file). 

 

So, this is my blog of doing all the XML walkthrough stuff in a blank project, without any of the other code or anything else confusing me.  It's also sort of a tutorial, so follow it if you like.  It may not be the best way of doing the thing I am trying to acheive, but I will try and explain what I am doing as I go along. 

 

 

Wizards 2.0 Game

I think I’ve gone mad.  I can’t for the life of me work out what I have done wrong here.  The number between each <titlecol> tag gives the tile numer which should be applied to the tile when it loads.  There are three tiles, tile0 (blank), tile 1 (the 2x2 blocks you can see in the image with grass on the top) and a third tile, tile 2 (a 2x2 block of the same tile without brown on). The ordering of the <tilecol> tags determines where the tiles in that row go, and the different <tilerow> determines on what row it’s column’s tiles go.

 

 

(above: the level design)

<map>

<tilerow>

 

<tilecol>1</tilecol>
<tilecol>2</tilecol>
<tilecol>1</tilecol>
<tilecol>2</tilecol>
<tilecol>1</tilecol>
<tilecol>2</tilecol>
<tilecol>2</tilecol>
<tilecol>2</tilecol>
<tilecol>2</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>
<tilecol>0</tilecol>


</tilerow>

 

the xml code (sample):

 

 

 

 

 

(above: the three different tiles)

 

If it was that somehow the tile 1 tiles were obscuring the tile 2 tiles, being sized wrong or something then I could  understand this, but I tested it by making the tiles on the top row ‘1,2,1,2,1,2,2,2,2’ and when I run the game it is plainly obvious that there is nothing there, it’s not putting a block down!

 

I don't know why I think writing a blog about it will help, but I may realize something stupid I have missed.

 

Well I havn't yet.  Anyway I have lots more stuff to add to the blog, loads more screen shots and things, which I will get around to doing eventually.

 

(note: I am using Adobe Contribute CS3 to edit this blog.  I previously tried using Microsoft Word which DOES have the ability to edit blogs, but I couldn't get it to upload images, and I found that other people had this problem by googling my problem.  However, I am having the same problem with Adobe Contribute although I can't see anything on the internet about similar problems).


Wednesday, June 04, 2008

Unreal Level

Ahhh all projects for this year done and handed in, just an essay to hand in tomorrow which I'm printing out now. I'm pretty happy with the work I have done this year, and although I think I was a bit ambitious with the scale of my level, which I think ended up with it being more quantity than quality I still think it turned out quite well. Its not up to a proffessional standard but it has been very useful working on the unreal level, in learning how to use the game engine as well as the 3D software maya. I know I would be able to create the same level with much more ease if I were to do it again.

Over the summer I am going to try and achieve a few projects.

1. Another unreal level. A bit smaller than the one I have done for the term three project, but with more detail and more work with maya and photoshop in creating tiles. I might have it completely platform based and try and work with some of the physics to make a more advanced, less first person shooter-ish level.

2. Work on my website, put some new stuff on it, get my projects up on there, etc

3. Come up with a game concept/idea for a flash or unreal level, plan it out and if I have time start working on it. Something to put on blog.

4. Some work with maya creating general static meshes to use on projects.

5. A summer comic of some kind, maybe an interactive animated comic or something.

map of my almost finished level (made changes since) quite a bit of the level is underground so this picture is pretty pointless :P

Monday, April 07, 2008

Stuff I've been doing

I have redesigned my website, created a new banner, background, added links to other pages of mine, such as this blog, my flikr account, etc.


(http://www.guiblin.com/chris)



I have created the flickr account which I have been adding some pictures to, including 3D things created in maya and 2D stuff from Illistrator.



I have been doing a lot of sketching of random character designs and stuff, mostly quite abstract and cartoony. I have scanned a sketchbook in and created a PDF file of it. The upload for the whole PDF keeps timing out both on my server back at home and my file den account, blogger too is refusing to upload pictures any more to here, so I will try again later. (one page can be seen as the background image of my website).

I have also been doing some colouring in of images that I sketched and scanned in. (I uploaded these before i tried the sketches that wont upload)







Daily Routine by ~chrisguiblin on deviantART

Other stuff: been doing a little bit of playing around with Visual C#, learning some basic stuff. I haven't got anything really to show from that but just been learning to use different controls, create them at run time and other window related stuff.

Also got my hands on UnrealEd 3 and been doing some practicing of that in creating simple rooms and such. I have been watching videos on Game Trailers (http://www.gametrailers.com/player/usermovies/136126.html) showing basic tutorials on using the engine. I have been writing notes on stuff I have learnt from the tutorials I have watched so far and this will be very usefull for this terms project.

What else....I have been working a bit on my flash game from my last term's project, 'Wizards'. I have started it from scratch and using online tutorials about tiles used in tile based platform games I have created a basic way of using arrays to map out the levels. To do this on a bigger scale I need to look into using xml files to load in the level information, but I have given this a break for now to work on learning to use UnrealEd.

Friday, March 14, 2008

Further Flash Programming

Since working on the flash game project I have regained mhy interest in programming and am learning further about actionscript and programming in general.

I am currently working on understanding object movements and the maths behind the movement of objects. Using the code from a reply to a message in a forum (http://www.kirupa.com/forum/showthread.php?p=2297490) I have created a simple movement of a block which moves where you click the mouse.

The object does not stop when it reaches where the player clicked, however. Although I will experiment into how to make it stop when it does reach the location, I also think the block continuing to move would make a good little game if it were to bounce on the walls or to loop back round the other side, or give game over if you go off the side (probably the easiest method for now). By adding objects to collect and avoid this could be a nice quick little game.

Link: http://www.fileden.com/files/2007/11/6/1567526/2.swf

Wednesday, March 05, 2008

Actionscript 3.0 Smooth character movement

Smooth Character Movement
In actionscript 3.0 when you program an object to move following a keypress, the object moves once then pauses before continue the moment. This is the way I have achieved smooth movement, not certain its the best or easiest way but anyway heres what I did:

Using the example of moving left

Under your 'keydown' function for the left key, type mLeft = true;
Then under your 'enterFrame' function, have an if statement saying:

if (moveLeft) {
myCharacter.x = myCharacter.x - 10;
}


Then, under your 'keyup' function for the left key, type mLeft = false;

You will need to define the following variables for the different keys:

var moveLeft:Boolean = false;
var moveRight:Boolean = false;
var moveUp:Boolean = false;
var moveDown:Boolean = false;

(the last two if you are moving the character up and down as well as left and right)

All the code:

//Defining the variables
var moveLeft:Boolean = false;
var moveRight:Boolean = false;
var moveUp:Boolean = false;
var mDown:Boolean = false;


//Adding Event listeners
stage.addEventListener(KeyboardEvent.KEY_UP, reportKeyUp);
stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown);
stage.addEventListener(Event.ENTER_FRAME, EnterFrame);

//KeyDown function
function reportKeyDown(event:KeyboardEvent):void {
if (event.keyCode == Keyboard.LEFT) {
moveLeft = true;
}
if (event.keyCode == Keyboard.RIGHT) {
moveRight = true;
}

if (event.keyCode == Keyboard.UP) {
moveUP = true;
}
if (event.keyCode == Keyboard.DOWN) {

moveDOWN= true;
}
}

//Key Up Function
function reportKeyDown(event:KeyboardEvent):void {
if (event.keyCode == Keyboard.LEFT) {
moveLeft = false;
}

if (event.keyCode == Keyboard.RIGHT) {
moveRight = false;
}
if (event.keyCode == Keyboard.UP) {
moveUP = false;
}

if (event.keyCode == Keyboard.UP) {
moveDOWN = false;
}
}

//Enter Frame Function (this happens over and over repeatedly)
function EnterFrame(event:Event):void {
if (moveLeft){
myCharacter.x -= 10;
}
if (moveRight){
myCharacter.x +=10;
}

if (moveUp){
myCharacter.y -=10;
}
if (moveDown){
myCharacter.y +=10;
}

}
}

I *think* that this should work, if it doesn't I apologise and please comment and tell me what the error says or what is happening.

Bibliography

Just pasting a link here to remember for my bibliography for my game project.

http://blogs.adobe.com/pdehaan/2006/07/using_the_timer_class_in_actio.html

will have to search back through some other sites I have used for when I write out my bibliography which is something I need to do along with all the other paper work I need to do for the project along with other stuff I need to do this week.

Today's plans:
Get game over/score/lives/timer etc working
Get phidgets working

That should be enough since I can see phidgets being a pain. If still more time I may do some websitey stuff which I really need to get doing.

Wednesday, February 20, 2008

Games Research

I have been looking a lot at both platform games and puzzle games to help me with inspiration for my own game's development. Here are a few videos I have looked at (mainly classic 8/16 bit games since this was when comercial 2D platform games were at their height).












Not a platform game or puzzle game but wizard themed and I loved this game (And the music)




Jazz Jackrabbit


Sonic The Hedgehog (Master System)



Sonic CD


Chuck Rock 2


Sonic 3 (Lmao at person giving stupid commentary)


Gradius (shoot em up game, but looks great)


Again


Castlevania Dracula X PSP


Castlevania GBA


Dynamite Headdy Final Boss


Another boss from Dynamite Headdy (a really weird one)


Gunstar Heroes



Manic Miner - Makes me feel good about the graphics in my game


Wardner


Quack Shot - game i loved as a kid


A range of puzzle games being reviewed


Hexaxis - A great looking (unreleased?) puzzle game


Advance Theory - unreleased outside japan puzzle game


Super Puzzle Fighter - only played this once but loved it


King of Fighters - looks cool, kind of like super puzzle fighter


Puyo Puyo (someone getting a 19 combo) - very addictive game, similar to Super Puzzle Fighter


Later version of Puyo Puyo on the PSP showing the changinge in graphics and behaviour



I feel I should leave it here...

Wednesday, February 06, 2008

Flash Game (Again) (ARGHH)

Grrr this is really making me go insane now, but at least its increasing the amount of blogs I am posting.

It seems that when ever I get one thing working, the next problem I face seems to cause something previous to stop working or something and so I have decided to go back to basics and started with a simple hit test between blocks. I was having problems with walls stopping the character from moving so I created a new flash document which ONLY did this.

Tuesday, February 05, 2008

Flash Game v0.02

This may seem stupidly basic but it has taken me so long, I was really struggling with the hitTest for multiple blocks but it seems to be working! Now I've got to make it so blocks can be walked on as well making the bottom character move simeltaniously (which I had problems with, hence it falling off the stage as soon as the game begins.

2D 05-02-08 7.swf
Free file hosting from File Den

versions, changes and problems

0.001 - detect keypress, trace output
0.01 - map left and right arrow keys to move the character
0.012 - map space bar to jump
0.2 - Wall and floor collision

I didn't really come across anything much until the wall and floor collision. I found the chanracter was walking through the walls before the hitTest was able to work. After a lot of changing of code I decided to start the code for the left and right movement from scratch and managed to get it working pretty well, as far as I can tell anyway, by simply giving a margin to the x value in the hit test. (see the file above to view).

I am currently struggling getting the bottom character to behave the same as the top, although the code is pretty much identicle so I'm not quite sure whats wrong there yet.

Monday, February 04, 2008

Term 2 Game Project

I have only just properly started on the actual coding of my game since my computer has been playing up. I spent the time planning the game on paper and designing the levels and interactivity. Once I got my computer working my internet wasn't working so I then couldn't get online to find help and code examples so I quickly got to a dead end.

At uni I was able to look at different files on the VLP and bits I had worked on in different projects which helped me over come the problem I was having with making my character jump. My internet is now back up so production of my game should be quite faster than before. Below is a plan of the first part of the game which gives an idea of how it will work.

The animation stops abruptly because its unfinished but I thought I would put it on here as it shows the general concept of the game. If its not obvious from the animation, the controls move both the top and bottom character (or block in the case of this example) and you must use stratergy to get through the game, finding ways to move the characters independently.
level plan.swf




Monday, November 26, 2007

Interactive Design - Flash Game

I have mainly been working on my Interactive Design game in flash. I originally intended to create the game in ActionScript 3.0 but quickly realised it was going to take me a LOT longer to work out how to program it in the new language as oposed to 2.0.

There are a lotttt of problems with the game which I think I will try and sort out because I em enjoying making the game and I quite like the style of it. All the images I have snatched from other projects I have done in the last few years, and Cavey has made a return from the e4 ident I did last year.

I started the game using a a tutorial on kirupa.com (click here for link) but spent hours changing bits here and there, completely changed the graphics and re-wrote most of the code. I think I have learnt quite a lot from this tutorial.

Hopefully a lot of what I have learnt from this tutorial and the project will be useful for other projects in flash, including ones where I do actually move on to Action Script 3.0. I think I would like to re-create this game in AS3.0, making improvements and tweaking bits here and there as I go.

Anyway here are a list of problems I have found while playing the game.

Speed - I have only played it on my computer but it seems quite slow. My computer/internet is realyl quite laggy so this could have something to do with it.

Jumping - For some reason I couldn't get the jump to animate, something to do with howthe code is written I think, and havn't been able to find a way around it yet, so I have just used the one frame for the jump.

Jumping 2 - The gravity doesn't feel right, as though he is floating about a bit. I have played around a little bit with this but havn't got it right yet. More playing about to do.

Jumping 3 - When jumping across gaps in the ground it is often possible to land half way in the grass on the other side. I tried making the sides of the jump walls so that the character cannot move in that way, but I havn't fully implimented and tested that yet so it still doesn't work properly. Also, when landing from a platform, the character does not land completely on top of the ground, landing slighty further down than he should be. I think this may be to do with the amount the character is falling, or it could be to do with problems using the hittest function or from using randomly placed platforms which do not keep to a predefined grid.

Hidden Stars/Hidden Platform - These two hidden things, both activated by switches do not work correctly, in that although the stars are invisible, they are still collected when the character walks through them. The same with the hidden platform, the character is still able to walk on it although it is invisible. This is probably due to the fact of using visibility instead of actually placing and removing objects.

Gameover/End - When you get game over or complete the level, at the score screen, if you press the arrow keys the screen still moves from side to side. If you then press space to start again, the screen will have moved to the side where you moved at the gameover score.
This moves the star counter as well as putting the character in the wrong place. This is simply because I havn't taken out the character movement controls and will be easy to fix.

Cloud Animation - Doesn't loop properly and the clouds stop, leaving some of the sky with still clouds and the rest with a clear blue background.

Lives - No life system implimented yet. Easy enough to do just havn't added yet.

Music - Doesn't loop. Too long a gap at the start (I just grabbed the music I used for my e4 Ident project last year so it isn't created for this and is just a filler. I will edit the music to fit the game more later.

----------------

So yes, I have quite a lot of work to do on this game. I would also like to start it from scratch and make it so that the game is created completely by code at runtime as oposed to designing the levels at design time. This will make the game run faster and smoother and will allow me to use arrays which should make creating the game a lot faster.

Oh and the link to the game is here: PLAY

Tuesday, September 25, 2007

Rainbow Paint Box (Flash Game)

I sort of lost interest/forgot about blogging for a while but a few days ago I decided to make a quick game in flash. It's really quite simple so far but I hope to be able to work on it more to get it to play how I want it to.

So far this game has very basic graphics, which I will most likely change later on. You use the left and right arrow keys to move the block and collect the falling green circles, which add to your score and increase the speed of the game. You have three lives and once these are gone it's game over.

Creating this helped me to learn about how actionscript handles object collision, etc.

The finished game will hopefully have different coloured balls falling down, which change the colour of the block which the player controls to create a certain colour and amount of that colour to progress to the next level. But for now here is the first basic version of the game. Oh actually meh can't find a way to upload flash directly and ftp not set up on server. will upload later :)

Thursday, May 31, 2007

Work update

Done lots of work since last update, just not got around to updating this.

Finished identity project.  Due to my server being weird I can't upload this onto there at the moment.

I've completed my report on this project. That was up here but I have taken it down because it was taking up too much room and going on for too long, I will upload it along with the extended 'what I did and why' version on my site once it is up.

Wednesday, April 04, 2007

woops

hmm i didnt realise it was so long ago i updated my blog. eek.  Anyway  its not that I havn't done any work, just that i havn't got round to writing about it.

Same But Different



We had a few lectures and seminars on this which resulted in a group project made up of the same group as our last group project (Stella Rimington) minus a few people.  In this project we took photographs of apples and catelogued them in a website which allowed the apples to be searched by colour, where they were bought, and the name of the apple.  We designed a minimalistic site which was effective.  Unfortunatly when showing it to the rest of the seminar group, it did not show on the projector.

e4 Indentity Project

I have been working on this on and off throughout the easter holiday and have so far done:

  • Animation - 85/90%  -  I actually restarted my animation from scratch but realised I prefered the original when I looked back so I am now just tweaking the original, incorporating some of the changes from my newer version.  An old version is available on my website, I will add a link here some time when i find the link

  • Website - 15/20%?  -  I have kept restarting this as at first I was slowly working my way through learning CSS, but the designs I was coming up with were too basic and finding it too complicated to make what I visualized in that way.  I then started a flash only website which I found a lot quicker to make but looked quite unproffessional.  I then started creating a third website which would use html/CSS but with bits of flash incorporated within it.  I created a side menu for this in flash and placed it in a website, but I have changed my idea of how it should look slightly.  I edited the existing e4 logo for my page, which I quite like and think works well.  I have an screenshot showing this page (I used the logo again as a filler background).  I am using this logo for my new design but the sidebar as it looks in the picture is not how it will look in my final site.


  • Leaflet - 0% - A lot of this will be reusing images from the website and animation so this should not take long.
I plan on having all three of these nearing completion by the end of the easter holidays.  I have been working on and off on these, but towards the end of the easter will be working more solidly to finish off these projects.  

I will upload the flash only site as well as provide links to my animation and provide screen shots as my work develops.

Tuesday, January 30, 2007

Stella Rimington Performance

Yesterday we performed the Stella Rimington presentation that Richard and myself had written. The presentation was shown on a projector using a file I had created in flash with buttons to move between the different animations, images, text and sound which made up the presentation. A script was read out and acting was done mainly by Richard and Ben which added more depth to the production and allowed facts to be read out and presented to the audience verbally.

I think the presentation went quite well, especially concidering the limited time we had to create the whole thing. I am quite pleased with the animations I created as well as the overal presentation and script which I worked a lot on and feel it was quite successful. We were also able to make about £17 for charity (Breast Cancer) and the audience seemed to find it amusing.

Friday, January 19, 2007

Stella Rimington Animation

Here is the start to an animation for the introduction of our location specific performance. I have made changes since but this is the most recent version I have exported to a flash file. The animation uses themes of dectectives, secret agents etc to send across the secretive MI5 lifestyle of Stella which will play a big part in our production.

LINK: http://www.guiblin.com/chris/uni/stella%20rimington/stella1.swf

Saturday, December 09, 2006

Flash Animation Basics

I have made a few very basic animations. The first one simply shows a ball falling, squashing, unsquashing and bouncing back up, easing in and out to make the ball faster the nearer it is to the ground. LINK

The second animation is the same as the first but the lighting changes as though a light is shining from the centre of the left hand side of the screen. This is done by using the gradient tool and moving it differently to the movement of the ball.
LINK

The third exam
ple shows the ball bouncing towards the screen, getting larger and then disapearing. LINK