Archive for the ‘Game Design’ Category

ActionScript: Tutorial How to create a gravity like a Mario platformer

Share

In this little tutorial you will learn how to create a gravity like a Mario platformer. Let’s start! Get files Save these 2 sprites (Right click > Save as) Open Flash and create a new ActionScript 3.0 document. Document properties: 24 fps, 550×400 by default. Create the Hero MovieClip Create a new Symbol: Insert > [...]

Posted on Wednesday February 2nd, 2011 at 02:21 PM by admin · Permalink · 7 Comments
Share

In: ActionScript3 as3, Game Design, Tip, Tutorial · Tagged with: , , , , , , , ,

ActionScript: Move an object with keyboard with absolute controls

Share

In this tip I will show you how to move an object with keyboard with absolute controls. See also how to move an object with keyboard relative-camera control. What is the absolute controls? The direction of your object will be calculated depending the object orientation. (Biohazard, Micro Machines, Gears of War). This code is very [...]

Posted on Tuesday February 1st, 2011 at 11:29 AM by admin · Permalink · Leave a comment
Share

In: ActionScript3 as3, Game Design, Tip, Tutorial · Tagged with: , , , , , ,

ActionScript: Move an object with keyboard with camera relative control

Share

In this tip I will show you how to move an object with keyboard with camera relative control. What is a camera relative control? The direction of your object will be calculated depending the camera position. (Mario 64, Uncharted, GTA 3, etc.). Eg: If press the right button the character will go on the right. [...]

Posted on Tuesday January 4th, 2011 at 04:22 PM by admin · Permalink · Leave a comment
Share

In: ActionScript3 as3, Game Design, Tip, Tutorial · Tagged with: , , , , , ,

ActionScript: Move an object to coordinates with smoothing

Share

There is a simple formula to move an object to coordinates with smoothing. The speed will decrease with smooth during the time. speed = distance_between_objects / smoothing The distance will decrease because the distance will decrease too. If I set values I got: object.x = 50 targetX = 100 speedX = (targetX – object.x) / [...]

Posted on Monday January 3rd, 2011 at 03:53 PM by admin · Permalink · Leave a comment
Share

In: Game Design, Tip, Tutorial · Tagged with: , , , ,

ActionScript: Throw bullets to mouse direction

Share

After calculating the angle of 2 graphic objects, you can also use this angle to throw a bullet to the object direction with the trigonometry. How ? Calculating the angle (in radian) between 2 graphics objects with the Math.atan2 method (cf. Orient object to the mouse cursor). On click, display a bullet to the “tank” [...]

Posted on Monday December 27th, 2010 at 12:50 PM by admin · Permalink · 6 Comments
Share

In: ActionScript3 as3, Game Design, Tip, Tutorial · Tagged with: , , , , ,

ActionScript: Detect collision between 2 circles

Share

With the Pythagoeran theorem you can detect collision with 2 circles. You just have to get the rays of 2 circles with the width property divided by 2. Actually the width property returns the diameter of the circle. So, you can calculte the ray like this: ray = diamter / 2 ray = circle.width / [...]

Posted on Friday December 3rd, 2010 at 11:02 AM by admin · Permalink · One Comment
Share

In: ActionScript3 as3, Game Design, Tip, Tutorial · Tagged with: , , , ,

ActionScript: Get distance between 2 MovieClips

Share

If you want to get the distance in pixels between 2 graphic objects just use the Pythagorean theorem in ActionScript :). c² = a² + b² Download source : Get_Distance.zip 12345function getDistance(pObj1:MovieClip,pObj2:MovieClip):Number {     var distX:Number = pObj1.x – pObj2.x;     var distY:Number = pObj1.y [...]

Posted on Thursday November 25th, 2010 at 03:09 PM by admin · Permalink · One Comment
Share

In: ActionScript3 as3, Game Design, Tip, Tutorial · Tagged with: , , , , ,

ActionScript: Red Blood Cells behavior

Share
Download: Blood.fla 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109import flash.geom.ColorTransform; var arrBlood:Array = []; function createVers():void {     var b = new Blood();     b.speedX = 0;     b.speedY = 0;     b.coefCollision = 50;     b.coefRotation = 30;     var size:Number = Math.random();     b.scaleX [...]

Posted on Friday November 12th, 2010 at 07:08 PM by admin · Permalink · 2 Comments
Share

In: ActionScript3 as3, Game Design

Take Something Literally 2: released

Share

The second episode of Take Something Literally was released friday june 4thon ArmorGames.com. You can play this game by clicking here: Take Something Literally 2. (Exclusive on ArmorGames until Friday) Like I said, I designed an original, conceptual and non-conform game. Unfortunatly many players expect to see “a classic game”. Therefore they don’t understand the meaning [...]

Posted on Monday June 7th, 2010 at 09:21 PM by admin · Permalink · Leave a comment
Share

In: Flash, Game Design, Games · Tagged with: , , , , , , ,

Nano War 2.0 private beta 3

Share

First of all I would like to thank all beta testers and all your feedbacks. Your feedbacks will help me to make better games. You are welcome to post your message on the forum. Everybody can read your message and discuss about that. I red all your messages so I decided to modify Nano War [...]

Posted on Wednesday May 12th, 2010 at 04:07 PM by admin · Permalink · One Comment
Share

In: Flash, Game Design, Games, Nano War