PDA

View Full Version : Drag 'n' Drop Level Builder?



Unrealhacker12
August 24th, 2008, 10:58 PM
Hi at the moment I have created a game engine in AS2 and successfully got it working in AS3 using this helpful cheat sheet (http://actionscriptcheatsheet.com/downloads/as3cs_migration.pdf) and common sense.

But I have encountered a bump and I need help resolving it:

Say I have a square movie clip (Inst: Box) in my library which is an obstacle that the players movie clip collides with often.

Now say to make it easy to create levels I want to be able drag and drop as many of these movie clips on stage as I so wish.

Now when I get a "hitTestPoint" on any of these Boxes with the player.x and player.y, I want to trigger a function on the root frame of the movie. :-/

Any ideas how I can go about this efficiently??? (without using the whole Flex Builder File Directory style I've seen so often in AS3 projects)

Unrealhacker12
August 25th, 2008, 12:34 PM
*bump*