Be a Supporter!

iamawsome34iamawsome34

Main News Favorites Reviews Stats
Follow iamawsome34
iamawsome34
  • Add Friend
Age / Gender:
24, Male
Location:
Why do you need to know?
Joined:
8/17/08
All Stats >

Stuff.

User Statshot

Community Stats
Level 4 Game Developer
Garbage Whistle
Ranked as Civilian

Contact Info / Websites

Latest News


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)