Boston Celtics! Current Viewer Counter *Free* Player Profile age: 15 Hwa Chong Institution (High School Section) Wishlists
the perfect MSG in my HCI sch life A1s , A1s and more A1s Go home Do Pull up Macbook iPhone 3G S More Adam Lambert albums =D Team Mates Cheng Can Marcus Tan Shen Yang Ding Quan Fan Yi Fan Yi again HCISJAB HCISJAB Weisheng Luk Yean Kenneth Lim Kwang Yu Arturo 6R06 Xiong Sengya GunYi Player Interaction
Chinese Cuisine and any other links for pages you frequent. The Storied History of the Boston Celtics
Sab= as usual, boring ...EP3= as usual pumped a lo... Let me add something i forgot to add yesterday. Ye... GL () EPL! ;;; Exams are over Life has many twists... Cool grades Take Out Boxes April 2008 May 2008 June 2008 July 2008 August 2008 September 2008 October 2008 November 2008 December 2008 January 2009 February 2009 March 2009 April 2009 May 2009 June 2009 July 2009 August 2009 September 2009 November 2009 December 2009 January 2010 |
Tuesday, May 20, 2008 wait. let me talk about sch today. assembly=funny(at least the play) especially the gay guy who keep spelling out everytyhing. now save my is. (IS pros looking?) my timer and hit test cant work and my robot isnt moving the way it should. it jumps here there and everywhere. : dummy: onClipEvent (enterFrame){ _root.onLoad = function() { clipno = 0; score = 0; _root.onEnterFrame = function() { if (Math.random()*10<4) { clipno = _root.getNextHighestDepth(); clipname = "clip"+clipno; _root.attachMovie("apple", clipname, clipno); _root[clipname]._y = 0; _root[clipname]._x = Math.random()*550; _root[clipname].pt = 10; _root[clipname].onEnterFrame = fall; if (Math.random()*10<4) { clipno = _root.getNextHighestDepth(); clipname = "clip"+clipno; _root.attachMovie("Fries", clipname, clipno); _root[clipname]._y = 0; _root[clipname]._x = Math.random()*550; _root[clipname].pt = 10; _root[clipname].onEnterFrame = fall; }} if (Math.random()*10<4) { clipno = _root.getNextHighestDepth(); clipname = "clip"+clipno; _root.attachMovie("Chicken wing", clipname, clipno); _root[clipname]._y = 0; _root[clipname]._x = Math.random()*550; _root[clipname].pt = 10; _root[clipname].onEnterFrame = fall; } if (Math.random()*10<4) { clipno = _root.getNextHighestDepth(); clipname = "clip"+clipno; _root.attachMovie("Hamburger", clipname, clipno); _root[clipname]._y = 0; _root[clipname]._x = Math.random()*550; _root[clipname].pt = 10; _root[clipname].onEnterFrame = fall; } if (Math.random()*10<4) { clipno = _root.getNextHighestDepth(); clipname = "clip"+clipno; _root.attachMovie("milk", clipname, clipno); _root[clipname]._y = 0; _root[clipname]._x = Math.random()*550; _root[clipname].pt = 10; _root[clipname].onEnterFrame = fall; } if (Math.random()*10<4) { clipno = _root.getNextHighestDepth(); clipname = "clip"+clipno; _root.attachMovie("Vegetables", clipname, clipno); _root[clipname]._y = 0; _root[clipname]._x = Math.random()*550; _root[clipname].pt = 10; _root[clipname].onEnterFrame = fall; } }; function fall() { this._y += 5; if (this._y>400) { this.removeMovieClip(); } { speed = 10; this._x += speed; if (Key.isDown(Key.LEFT)) gotoAndPlay(5); else if (Key.isDown(Key.RIGHT)) gotoAndPlay(15); else if (Key.isDown(Key.SPACE)) gotoAndStop(30); } if (this.hitTest(_root["robot"])) { score+=this.pt; this.removeMovieClip(); } }} _root["robot"].leftkey = 37;//left arrow _root["robot"].rightkey = 39;// right arrow _root["robot"].onEnterFrame = move; function move() { dx = 0; if (Key.isDown(this.leftkey)) { this._xscale = 100; dx = -10; } else if (Key.isDown(this.rightkey)) { this._xscale = -100; dx = 20; } this._x += dx; if (dx == 0) { this.gotoAndStop(1); } else if (this._currentframe == 1) { this.gotoAndPlay("gameover"); } if (this._x<0) { this._x = 550; } if (this._x>550) { this._x = 0; } }//end of function move }//end of onClipEvent(load) actions frame 1: stop(); initgame(); function initgame() { //initialise game setting starttime = getTimer(); clipno = 0; score = 0; _root.onEnterFrame = playgame; } function playgame() { timeinterval = (getTimer()-starttime)/1000; timeleft = int(100*(100 - timeinterval))/100; //update text box if (timeleft<0) { gotoAndStop("gameover",1); //remove all falling objects for (i=_root.getNextHighestDepth()-1; i>=0; i--) { removeMovieClip(_root["clip"+i]); } //stop game play delete _root.onEnterFrame; } if (Math.random()*10<2) { //randomly place a movieclip on top of stage clipno = _root.getNextHighestDepth(); clipname = "clip"+clipno; a = Math.random(); if(a<0.3){ movieclip = "apple"; points = 70; } else if(a<0.5){ movieclip = "Chicken Wing"; points = -50; } else if (a<0.65) { movieclip = "Milk"; points = 40; } else if (a<0.75){ movieclip="Vegetables"; points=80 } else if (a<0.9){ movieclip="Hamburger"; points=-60 } else { movieclip="Fries"; points=-70 } _root.attachMovie(movieclip, clipname, clipno); _root[clipname]._y = 0; _root[clipname]._x = 50*Math.random()*11; _root[clipname].pt = points; //attach script to the movieclip _root[clipname].onEnterFrame = fall; } } function fall() { this._y += 5; if (this._y>350) { this.removeMovieClip(); } if (this.hitTest(_root["robot"])) { score += this.pt; this.removeMovieClip(); } } |
Post a Comment
<< Go Back and Watch me Fumble