Archive for the ‘ActionScript’ Category
ActionScript: test collision between a circle and a line
Preview:
Download source code: circle_line_collision
Code:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172// Test collision between a circle and a line
// coded by Benoit Freslon
//
// www.benoitfreslon.com
// Copy and paste this function into your code and don’t forget to import the Point class.
import flash.geom.Point;
// pP1: (Point) the first point of the line
// pP2: (Point) the second [...]
In: ActionScript, Tip · Tagged with: ActionScript, circle, code, collision, line, source
Orient an object to the mouse cursor
How to orient an objet to an other ? Just put those lines and change the instance name myTank.
12345678910111213141516// This object will always look at the mouse cursor
myTank.addEventListener(Event.ENTER_FRAME, tankEnterFrame);
// This function will be launched every frame (25 times by seconds)
function tankEnterFrame(pEvt) {
// [...]
In: ActionScript, Tutorial · Tagged with: actionscript 3, mouse, orientation
Tutorial: How to make a game like Jetman – step 1 – The Jetman
In my first tutorial I will show you how to make a flash game like Jetman.
A simple very famous casual game on facebook and very addictive.
Play Jetman
1. First of all you have to download the Adobe Flash IDE: Adobe Flash CS3 or Adobe Flash CS4
We will code the game with ActionScript 3.0 (the programming language [...]
In: ActionScript, Game Design, Tutorial · Tagged with: actionscript 3, flash, Game Design, jetman, Tutorial
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 up [...]
In: ActionScript, Flash, iPhone · Tagged with: ActionScript, flash, iPhone
Roll And Jump released
I’m proud to present you my last game: Roll And Jump. The game was designer for Iphone and IPod Touch.
If you are interrested in to play this game on your Iphone please contact me.
You can play here for free on your web browzer here:
PLAY ROLL AND JUMP
Have fun!
In: ActionScript, Flash, Game Design, Games, iPhone
Win 80% performance on Flash ActionScript 2 project
If you have lot of AS 2.0 projets like me you should be happy to know that you could win 80% performance on your projets with 4 lines of ActionScript. But this tip works only on web based projets.
In: ActionScript · Tagged with: ActionScript, flash, optimisation















