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: Launch a function after a delay with setTimeout

Share

There are different ways to launch a function after a delay: With the enter frame event; With the Timer class; With a motion tween; With the enter frame event and the getTimer() method; And with the setTimeout function (See setTimeout help on Adobe); How to master the setTimeout ? First of all you must create a [...]

Posted on at 02:35 PM by admin · Permalink · Leave a comment
Share

In: ActionScript3 as3, Tip · Tagged with: , , , , , ,

Flash CS5 builds Iphone applications

Share

Flash Professional CS5 will enable you to build applications for iPhone and iPod touch using ActionScript 3. These applications can be delivered to iPhone and iPod touch users through the Apple App Store.* A public beta of Flash Professional CS5 with prerelease support for building applications for iPhone is planned for later this year. Sign [...]

Posted on Tuesday October 6th, 2009 at 09:58 AM by admin · Permalink · One Comment
Share

In: ActionScript3 as3, Flash, iPhone · Tagged with: , ,

New game, new gameplay, Roll and Jump

Share

My new game, Roll and Jump, was designed for iphone and touch phone. The game is easy to learn but hard to master.

Posted on Thursday September 3rd, 2009 at 04:47 PM by admin · Permalink · One Comment
Share

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