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 [...]

Posted on August 19, 2010 at 18:27 by admin · Permalink · Leave a comment
  • Share/Bookmark

In: ActionScript, Tip · Tagged with: , , , , ,

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) {
    // [...]

Posted on January 9, 2010 at 18:17 by admin · Permalink · Leave a comment
  • Share/Bookmark

In: ActionScript, Tutorial · Tagged with: , ,

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 [...]

Posted on December 18, 2009 at 17:06 by admin · Permalink · One Comment
  • Share/Bookmark

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

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 [...]

Posted on October 6, 2009 at 09:58 by admin · Permalink · Leave a comment
  • Share/Bookmark

In: ActionScript, Flash, iPhone · Tagged with: , ,

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!

Posted on September 27, 2009 at 01:50 by admin · Permalink · 3 Comments
  • Share/Bookmark

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.

Posted on March 18, 2009 at 13:17 by admin · Permalink · Leave a comment
  • Share/Bookmark

In: ActionScript · Tagged with: , ,