This is a little tutorial about how to make a game in macromedia flash . here the code for the character: onclipevent (load) { var ground:movieclip = _root.ground; var grav:number = 0; var gravity:number = 2; var speed:number = 7; var maxjump:number = 12; var touchingground:boolean = false; } onclipevent (enterframe) {y += grav; grav += gravity; while (ground.hittest(x, _y, true)) {y -= gravity;…show morethis is a little tutorial about how to make a game in macromedia flash . here the code for the character: onclipevent (load) { var ground:movieclip = _root.ground; var grav:number = 0; var gravity:number = 2; var speed:number = 7; var maxjump:number = 12; var touchingground:boolean = false; } onclipevent (enterframe) {y += grav; grav += gravity; while (ground.hittest(x, _y, true)) {y -= gravity; grav = 0; } if (ground.hittest(x, _y+5, true)) { touchingground = true; } else { touchingground = false; } if (key.isdown(key.right)) { _x = speed; } if (key.isdown(key.left)) {x -= speed; } if (key.isdown(key.up) && touchingground) { grav = maxjump; } if (ground.hittest(x(_width/2), _y(_height/2), true)) {x = speed; } if (ground.hittest(_x(width/2), y-(height/2), true)) {x += speed; } if (ground.hittest(x, _y-(height), true)) { grav = 3; } } want more?—— leave comments!show less
escapefan.com - You can play online cowgirl escape (8 games) game within ..
escapefan.com - You can play online room escape 8 (games 4 escape) game ..
kongregate - Escape game make call 44 is a beautiful new escape game ..
mirchigames - Ajaz games make call 44 is a point and click escape game ..
hiddenogames - Escape game make call 44 ajazgames you need to pick up ..
games2rule - Escape game make call 44 ajazgames-you need to pick up ..
ajazgames - Escape game make call 44 is a beautiful new escape game ..
kongregate - This is a tutorial how to make a button, and a maze ..
Comments