ActionScript: Move an object with keyboard with camera relative control
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. [...]
In: ActionScript3 as3, Game Design, Tip, Tutorial · Tagged with: ActionScript3 as3, arrows, camera, key, keyboard, move, relative
ActionScript: Move an object to coordinates with smoothing
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) / [...]
In: Game Design, Tip, Tutorial · Tagged with: 3, ActionScript3 as3, move, object, smooth
ActionScript: Launch a function after a delay with setTimeout
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 [...]
In: ActionScript3 as3, Tip · Tagged with: ActionScript3 as3, clearTimeout, clock, delay, pause, setTimeout, timer
Flash CS5 builds Iphone applications
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 [...]
In: ActionScript3 as3, Flash, iPhone · Tagged with: ActionScript3 as3, flash, iPhone
New game, new gameplay, Roll and Jump
My new game, Roll and Jump, was designed for iphone and touch phone. The game is easy to learn but hard to master.
In: Flash, Game Design, Games, iPhone · Tagged with: ActionScript3 as3, flash, Game Design, iPhone, skill game
