User Statshot
- Community Stats
-
Level 4 Game Developer
-
Garbage Whistle
-
Ranked as Civilian
Contact Info / Websites
Latest News
a code for MacroMedia flash mx/8
2009-03-21 23:43:45 by iamawsome34
If you want a stick man to move, put this code in him when hes a symbol, press f9 and put this code in:
onClipEvent (load) { moveSpeed = 10;}onClipEvent (enterFrame) { if (Key.isDown(Key.RIGHT)) { this._x += moveSpeed; } else if (Key.isDown(Key.UP)) { this._y -= 0; } else if (Key.isDown(Key.DOWN) && !fall) { this._y += 0; } else if (Key.isDown(Key.LEFT)) { this._x -= moveSpeed; }}onClipEvent (enterFrame) { if (Key.isDown(Key.SPACE) && !jumping) { vel_y = 36; jumping = true; } if (jumping == true) { vel_y -= 2; if (vel_y<=-15) { vel_y = -15; } this._y -= vel_y; } if (_root.ground.hitTest(this._x, this._y+35, true)) { vel_y = 0; jumping = false; }}onClipEvent (enterFrame) { this._y += 16; if (_root.ground.hitTest(this._x, this._y+1, true)) { this._y -= 16; }}
but you gotta make floor and name it (in the framename) ground, name the framename (the floor) ground or you will fall right through the floor(ground)
Favorite Movies
Favorite Games
Favorite Audio
| Land Locked (Pulse Remix) | Techno Song | |
| SpK*) - Absinthe | Drum N Bass Song |

