Copy the link of the video page and paste it here:
Example: http://www.youtube.com/watch?v=a7FQPMiph9M
NEW!. You can download videos from Vimeo!. :-)
Utils:
![]() |
Flash 8 Tutorial How to make a platform game By Flash8Games Codes: Music: Jellow Glow Made By: zlarke ____________________________________ VCam Download: http://www.mediafire.com/download.php... ____________________________________ FLA file download: http://www.mediafire.com/download.php... ____________________________________ Copyright by: Flash8Games ActionScript Codes: Codes for the character: onClipEvent (load) { grav = 2; speed = 8; jumpHeight = 9; setspeed = speed; ex = 5; } onClipEvent (enterFrame) { action = true; grav++; _y += grav; while (_root.ground.hitTest(_x, _y, true)) { _y--; grav = 0; } if (Key.isDown(68)) { _x += speed; if (_root.ground.hitTest(_x, _y+3, true)) { } else { } } else if (Key.isDown(65)) { _x -= speed; if (_root.ground.hitTest(_x, _y+3, true)) { } else { } } else { if (_root.ground.hitTest(_x, _y+3, true) && !Key.isDown(79) && !Key.isDown(73)) { } } if (Key.isDown(79) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(73)) { } if (Key.isDown(73) && !Key.isDown(87) && !Key.isDown(65) && !Key.isDown(68) && !Key.isDown(79)) { } if (Key.isDown(87) && _root.ground.hitTest(_x, _y+3, true)) { grav = -jumpHeight; _y -= 4; } if (_root.ground.hitTest(_x+(_width/2)+ex, _y-(_height/2), true) || _root.ground.hitTest(_x+(_width/2)+ex, _y-(_height/6), true) || _root.ground.hitTest(_x+(_width/2)+ex, _y-_height, true)) { _x -= speed; } if (_root.ground.hitTest(_x-(_width/2)-ex, _y-(_height/2), true) || _root.ground.hitTest(_x-(_width/2)-ex, _y-(_height/6), true) || _root.ground.hitTest(_x-(_width/2)-ex, _y-_height, true)) { _x += speed; } if (_root.ground.hitTest(_x, _y-_height-15, true)) { grav = 1; } } ____________________________________ Codes for the VCam: onClipEvent (enterFrame) { _y += (_root.char._y-_y)/4; _x += (_root.char._x-_x)/4; } ____________________________________ Symbol ground instance: ground Symbol character instance: char ____________________________________ - Flash8Games Tags: animation, epic, flash, game, hittest, marcomedia, pivot, pro, tutorial 1 Downloads - Last from: http://downthisvideo.com/ (Your Blog here!) |
![]() |
Flash CS4 ACTIONSCRIPT TUTORIAL Gravity By flashprosoveryou sorry for the sniffles, tis the season!!! in this Flash cs4 tutorial, we Use hitTest to create a cinematic view gravity game. the hitTest is not too hard. and gravity makes a game much more fun the free flash files here http://flashprosoveryou.t35.com/Flash gravity.zip if that did not work try this http://flashprosoveryou.t35.com/ and if both did not work, pour your misery into a comment down below and i will give you a direct link !!! rate it 5, subscribe if you want more vids! but if none of the above leave a comment, nasty or nice. and remember he's watching. paste on timeline _global.jump = false _global.point = 0 paste on guy. onClipEvent(enterFrame){ ///LEFT AND RIGHT/// if(_global.jump == true){ _global.gravity -= 2 } if(Key.isDown(Key.UP)){ if(_global.jump == false){ _global.gravity = 30 _global.jump = true } } if(_global.ong == false){ this._y += 10 } this._y -= _global.gravity if(Key.isDown(Key.LEFT)){ this._x -= 10 } if(Key.isDown(Key.RIGHT)){ this._x += 10 } ///Move UP AND DOWN DUE TO GRAVITY/// } paste on ground onClipEvent (enterFrame) { if (this.hitTest(_root.guy._x, _root.guy._y, true)) { _global.ong = true if(_global.jump == true){ _global.jump = false _global.gravity = 0 } }else{ _global.ong = false } } I can not provide any help for a while, so just download the file on my site... no viruses i promise Tags: actionscript, adobe, animated, cartoon, cs3, cs4, flash, flashlearner, gravity, hittest, macromedia, tutorial, tutorials 1 Downloads - Last from: http://downthisvideo.com/ (Your Blog here!) |