not bad but there is a glitch u might fix :
if u jump to a platform he will jump faster trough it not hit it and go back down.
simple platformer tutorial [Flash][Actionscript]
Started by: skazzi | Replies: 57 | Views: 14,529 | Closed
Sep 17, 2005 8:40 AM #755
spiderstick427
Posts: 0
Joined: Nov 2025
Posts: 0
Joined: Nov 2025
Sep 17, 2005 9:12 PM #776
on the part with the ummm platform i cant find the arrow that points up can u like post a picture please of the screen and how it's supposed to look please
Sep 18, 2005 2:46 PM #790
maybe someone knows this:
i have a problem with AS,
i made a mario character..
if u push left right or space or up he goes to the labeled frame like JUMP or something, but if u realease the button it wil keep going.
i want it to stop if u release the button (if u release it will go to idle stance)
this is the code from mario:
EDIT: never mind got it :P
i have a problem with AS,
i made a mario character..
if u push left right or space or up he goes to the labeled frame like JUMP or something, but if u realease the button it wil keep going.
i want it to stop if u release the button (if u release it will go to idle stance)
this is the code from mario:
Quote from MarioonClipEvent (load) {
y = jump=0;
speed = 5;
}
onClipEvent (enterFrame) {
xmax = this.getBounds(_root).xMax;
xmin = this.getBounds(_root).xMin;
ymax = this.getBounds(_root).yMax;
if (Key.isDown(Key.RIGHT) && !_root.ground.hitTest(xmax+speed, _y, true)) {
_x += speed;
this.gotoAndStop("walk1")
if (Key.isDown(Key.LEFT) && !_root.ground.hitTest(xmin-speed, _y, true)) {
_x -= speed;
this.gotoAndStop("walk")
}
if (_root.ground.hitTest(_x, ymax-(y/2), true)) {
jump = true;
y = 0;
} else {
y -= 2;
jump = false;
}
if (jump && Key.isDown(Key.SPACE)) {
y = 13;
this.gotoAndStop("jump")
}
_y -= y;
}
onClipEvent(enterFrame){
if (Key.isDown(Key.DOWN))
this.gotoAndStop("duck")
}
EDIT: never mind got it :P
Sep 23, 2005 9:42 PM #935
Everytime i do exacly what u said to do my player falls as soon as i test movies, he falls through the platforms...
skazzi
Posts: 0
Joined: Nov 2025
Posts: 0
Joined: Nov 2025
Sep 23, 2005 10:03 PM #937
do you have flash7 or 8... and did you higlight all the platforms and name the instance name ground and the movie clip ground??
Sep 23, 2005 10:16 PM #938
got it now thx alot do u know how to make him like get out a gun and shoot with it and maybe some other stickmen come in and die cause that would be cool!!!!!
skazzi
Posts: 0
Joined: Nov 2025
Posts: 0
Joined: Nov 2025
Sep 23, 2005 10:23 PM #940
i could try :D prolly wont work lol
Sep 24, 2005 10:54 AM #944
well yeah u could try need any help just shout and ill try to help
Sep 25, 2005 6:17 AM #983
Can you explain it to me? ....
Sep 25, 2005 6:34 PM #1000
Well i just asked if som1 maybe could make a tut about a platformer game like this one except with added guns and animation in it the i could turn it into a game.
lilcrash
Posts: 0
Joined: Nov 2025
Posts: 0
Joined: Nov 2025
Oct 2, 2005 10:18 PM #1137
Stickster
Posts: 0
Joined: Nov 2025
Posts: 0
Joined: Nov 2025
Oct 2, 2005 10:39 PM #1138
I thought it was good. skript is hard and you gotta give anyone who can make a game in flash credit.
Oct 2, 2005 10:50 PM #1139
Did he make that code? i was under the impression it was from some other tut...
And this tut is 3 pages and mine is all lonely >_<
It makes me sad.
And this tut is 3 pages and mine is all lonely >_<
It makes me sad.
lilcrash
Posts: 0
Joined: Nov 2025
Posts: 0
Joined: Nov 2025
Oct 3, 2005 10:50 PM #1152
well my friend made the script it wasn't in a tut
Oct 31, 2005 1:38 PM #1793
Can you make him move his legs while moving forward cuz thats cool.