How to make a simple overhead moving character with Flash
WEB DESIGN VIDEOS - PHOTO EDITING VIDEO CLIPS

|
This is my first tutorial. It shows how to make a moving character from an overhead view. Like in the popular flash game Stick RPG.This is the code used:\n\nonClipEvent (load) {\n _global.speed = 10;\n}\nonClipEvent (enterFrame) {\n if (Key.isDown(Key.UP)) {\n play();\n _root.map._y-= -_root._global.speed;\n _rotation = 0;\n }\n if (Key.isDown(Key.DOWN)) {\n play();\n _root.map._y-=_root._global.speed;\n _rotation = 180;\n }\n if (Key.isDown(Key.LEFT)) {\n play();\n _root.map._x-= -_root._global.speed;\n _rotation = 270;\n }\n if (Key.isDown(Key.RIGHT)) {\n play();\n _root.map._x-=_root._global.speed;\n _rotation = 90;\n }\n \n if (Key.isDown(Key.UP)) {\nif (Key.isDown(Key.RIGHT)) {\n_rotation = 45;\n}\n}\nif (Key.isDown(Key.DOWN)) {\nif(Key.isDown(Key.RIGHT)) {\n_rotation = 135;\n}\n}\nif (Key.isDown(Key.LEFT)) {\nif (Key.isDown(Key.DOWN)) {\n_rotation = 225;\n}\n}\nif (Key.isDown(Key.UP)) {\nif (Key.isDown(Key.LEFT)) {\n_rotation = 315;\n}\n}\n} 1.0, 2.0, 3.0, actionscript, adobe, cs3, flash, fun, game, how, miniclip, movement, newgrounds, overhead, sim, to
|
|
![]()