How to make a platformer game
by littlereddevil
How to make a platformer game
How to make a platformer game의 태그
설명
몇 분 만에 자신만의 플랫포머 게임을 프로그래밍하는 방법을 배워보세요! 이 튜토리얼은 전문가의 무료 강의를 제공합니다!
플레이 방법
그냥 읽고 배우세요! Flash CS4가 필요합니다.
댓글
keavon
Jun. 26, 2010
So people, you you are having trouble getting the camera to follow the guy, YOU MUST MAKE THE INSTANCE NAME "Guy" as previously mentioned to be "guy", not "Guy". This will make it work. If you don't understand where to put:
onClipEvent(enterFrame){
_x=_root.guy._x
_y=_root.guy._y
}
It's the square you made on the stage. Click on it and only it (not he timeline) and push f9. That's where you put that code.
A note to the person who made this tut, please fix that and make it clear. :P
keavon
Jun. 26, 2010
oh, with a } at the end, making it:
onClipEvent(load){
if(MC.hitTest(XVAL,YVAL,true/false)){
do something
}
}
Sorry if the returns ( or \n's dont work)
keavon
Jun. 26, 2010
and where it asks you to do this:
if(MC.hitTest(XVAL,YVAL,true/false)){
do something
}
You should accually write this:
onClipEvent(load){
if(MC.hitTest(XVAL,YVAL,true/false)){
do something
}
That fixes it. Just assign that to the level!
:P
Personnel
Sep. 19, 2010
*solution to the enemy code not working:* where it says if(active) it should say if(alive)
keavon
Jun. 26, 2010
It's me AGAIN, me the "constant comment". You should really add a mute button.