Stick Page Forums Archive

simple platformer tutorial [Flash][Actionscript]

Started by: skazzi | Replies: 57 | Views: 14,529 | Closed

XCell
2

Posts: 123
Joined: Apr 2006
Rep: 10

View Profile
Jun 21, 2006 7:38 PM #11638
how could i make it so when i press left or right he actually walks and when i let go, he doesnt move?
XCell
2

Posts: 123
Joined: Apr 2006
Rep: 10

View Profile
Jun 21, 2006 8:36 PM #11646
heres mine so far http://media.putfile.com/random-game
d4rkst0n3

Posts: 0
Joined: Jul 2025
Jun 22, 2006 12:05 AM #11664
Quote from xiaoleo
how could i make it so when i press left or right he actually walks and when i let go, he doesnt move?

if(Key.isDown(Key.LEFT)) {
_root.char.gotoAndStop(walkframe);
if(_root.char._xscale > 0) {
_root.char._xscale *= -1;
}
//Insert other actions here
} else if(Key.isDown(Key.RIGHT)) {
_root.char.gotoAndStop(walkframe);
if(_root.char._xscale < 0) {
_root.char._xscale *= -1;
}
//Insert other actions here
} else {
_root.char.gotoAndStop(standframe);
}

And draw your character facing right.
violent nick
2

Posts: 9
Joined: Jan 2006
Rep: 10

View Profile
Jun 24, 2006 6:31 AM #11740
what if we want it to be like ninjastick2's? have it close up and have the screen follow?
andyjaxon

Posts: 0
Joined: Jul 2025
Jul 16, 2006 6:57 AM #11922
you dont go on this crap tut you go to d4rkst0ne3 tut coz thats way easyer
Silent_ninja_assassin
2

Posts: 31
Joined: Apr 2006
Rep: 10

View Profile
Jul 16, 2006 1:06 PM #11927
This tut helped me out somewhat! good job for a basic tut
StickShaz

Posts: 0
Joined: Jul 2025
Jul 20, 2006 6:09 PM #12141
nice :D im gonna try that out
SketchWork

Posts: 0
Joined: Jul 2025
Oct 5, 2006 6:50 PM #16248
Help, :confused: I can make a guy move around but i can't make the guy stand on the platform. :( what do i do?
ninjapanda

Posts: 0
Joined: Jul 2025
May 26, 2007 7:19 PM #34013
cool, simple. meh like
inferno222

Posts: 49
Joined: May 2007
Rep: 10

View Profile
May 30, 2007 12:53 AM #34426
is very ussefull :D i am trying make a game :D
Naufal SG

Posts: 2
Joined: Jan 2010
Rep: 10

View Profile
Feb 16, 2010 9:49 AM #547606
#$%#@$%#%%$\!!!????
Scarecrow
2

Posts: 9,168
Joined: Oct 2005
Rep: 10

View Profile
Feb 16, 2010 10:18 AM #547615
but is it really fake?
zenex100

Posts: 4
Joined: Nov 2013
Rep: 10

View Profile
Nov 5, 2013 4:12 PM #1102951
hey how about a stick figure platformer tutorial?
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.