Professional Documents
Culture Documents
textdis.text="correct";
else
textdis.text="WRONG";
bot2.onPress = function(){
_root.gotoAndStop("movieclip")
else
textpassdis.text="invalid"
}
on(release){
on(release){
_root.gotoAndPlay("world1");
on(release){
_root.gotoAndPlay("world4");
Game 1:Platform
var grav:Number = 0;
var gravity:Number = 2;
var maxspeed:Number = 6;
var xspeed:Number = 0;
var acceleration:Number = 2;
var yspeed:Number = 0;
onClipEvent (enterFrame) {
xspeed *= friction;
xspeed = 0;
_y += grav;
grav += gravity;
_y -= gravity;
grav = 0;
touchingGround = true;
} else {
touchingGround = false;
if (Key.isDown(Key.RIGHT)) {
xspeed += acceleration;
_root.char.gotoAndStop(1);
if (Key.isDown(Key.LEFT)) {
xspeed -= acceleration;
_root.char.gotoAndStop(2);
grav = maxJump;
}
acceleration = -2;
xspeed = 0;
xspeed += acceleration;
_x += xspeed ;
}else{
acceleration = 2;
acceleration = -2;
xspeed = 0;
xspeed -= acceleration;
_x += xspeed ;
}else{
acceleration = 2;
_x += xspeed;
grav = 3;
_x += xspeed;
}
Spike
onClipEvent(enterFrame) {
this._rotation += 3;
if(_root.char.hitTest(this)) {
_root.vcam.hp.nextFrame();
Points
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.score += 5;
unloadMovie(this);
}
Catching Ball
Congratulation
Label
Congratulation
Project
in ICT
Jansen Ralph M. Medrano
Ict Molave
Sir. Jeph Pedrigal