410 likes | 673 Views
FLASH 로 게임 만들기. Korea Digital Media High School 1-6 Dong-Hyun Nam. What is Flash?. Made in (current) : Adobe name (least) : Adobe Flash cc Computer Language : Action script Explain : Flash is the Adobe’s vector-based interactive web authoring tools and software platforms.
E N D
FLASH 로 게임 만들기 Korea Digital Media High School 1-6 Dong-Hyun Nam
What is Flash? • Made in (current) : Adobe • name(least) : Adobe Flash cc • Computer Language : Action script • Explain : Flash is the Adobe’s vector-based interactive web authoring tools and software platforms. • Adobe’s site: http://www.adobe.com/kr/
fla Related file formats and extensions (representative) • swf • flv • as
Part of Animation • One of Flash’s part is animation that is very very easy • It usually use Timeline • This animation is part of design
Part of Action Script • other One of Flash’s part is Action Script that is similar at Programming Language • It usually use Timeline • This animation is part of design
FLASH! Move! onClipEvent(enterFrame) { if (Key.isDown(39) { _x += 5; } if (Key.isDown(37) { _x -= 5; } if (Key.isDown(38){ _y += 5; } if (Key.isDown()) { _y -= 5; } }
FLASH! Move! onClipEvent(enterFrame) { if (Key.isDown(68) && _x<550) { _x += 5; } if (Key.isDown(65) && _x>0) { _x -= 5; } if (Key.isDown(83) && _y<400){ _y += 5; } if (Key.isDown(87) && _y>0) { _y -= 5; } }
Simulation Adventure Design-Type of game Quiz Shooting sport AOS rhythm RPG action
Advantage of flash game 3 Other things Flash Programing language Action script
Insert code onClipEvent (load) { yspeed = 0; } onClipEvent (enterFrame) { yspeed += 1; _y += yspeed; if (Key.isDown(Key.RIGHT) && _x<550) { _x += 7; if (_xscale<0) {_xscale *= -1;} } if (Key.isDown(Key.LEFT) && _x>0) { _x -= 7; if (_xscale>0) {_xscale *= -1;} } }
Standing Code onClipEvent (enterFrame) { if (this.hitTest(_root.man._x, _root.man._y, 1) && _root.man.yspeed>=0) { _root.man.yspeed = 0; _root.man.yspeed -= 1; } while (this.hitTest(_root.man._x, _root.man._y-2, 1) && _root.man.yspeed>=-1) { _root.man._y -= 1; } if (this.hitTest(_root.man._x, _root.man._y+1, 1) && Key.isDown(Key.SPACE)) { _root.man.yspeed -= 14; } }
Death code onClipEvent (enterFrame) { if (this.hitTest(_root.man)) { _root.gotoAndStop(1); } }
Code into door onClipEvent(enterFrame){ if(Key.isDown(Key.UP)){ if(this.hitTest(_root.man) == true){ _root.gotoAndStop(3); } } }
onClipEvent(enterframe){Mouse.hide();} onClipEvent(mouseMove){ this._x=_root._xmouse; this._y=_root._ymouse; } Tip of honey 스킬