I enlist Shadowcat, who phases through you and shorts out all your defenses.
Welcome to the new Sinister Design forums!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
package {
import flash.display.MovieClip;
public class DocumentClass extends MovieClip {
public var menuHandler:MenuHandler;
public var gameLevelHandler:GameLevelHandler;
public function DocumentClass() {
menuHandler = new MenuHandler();
menuHandler.addEventListener(GameEvent.GAMESTART, onGameStart);
}
public function onGameStart(gameEvent:GameEvent):void {
gameLevelHandler = new GameLevelHandler();
gameLevelHandler.addEventListener(GameEvent.GAMEBACKTOMENU, onGameBackMenu);
menuHandler = null;
}
public function onGameBackMenu(gameEvent:GameEvent):void {
menuHandler = new MenuHandler();
menuHandler.addEventListener(GameEvent.GAMESTART, onGameStart);
gameLevelHandler = null;
}
}
}
_root.makePlatform = function(){
if (_root.make != true){
for (x = 0; x < 5; x += 1){
newPlatformNumber += 1;
_root.attachMovie("platform", "platform" + newPlatformNumber, 50+newPlatformNumber);
thyPlatform = eval("platform" + newPlatformNumber);
thyPlatform.onEnterFrame = function(){
thyPlatform.checkJumper();
}
thyPlatform.checkJumper = function(){
if (thyPlatform.hitTest(jumper._x, jumper._y, true) && (jumper.dy > 0)){
_root.boing = true;
trace(_root.boing);
}
}
_root.make = true;
}
}
}
class Platform extends MovieClip {
function Platform(){
_x = Math.random()*Stage.width;
_y = 400;
}
function checkJumper(){
if (
}
}