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: , , , , ,

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: , ,

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.

Posted on September 3, 2009 at 16:47 by admin · Permalink · One Comment
  • Share/Bookmark

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

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: , ,