How to make a platform game in flash 8 part 7
Вставка
- Опубліковано 7 лют 2025
- This is the part 7 of the PLATFORM GAME DEVELOPMENT TUTORIAL which teaches you how to make a platform game ( side scrolling game ) in flash 8 , flash cs4, flash cs5 or flash cs6. All the codes in the game is written by using the programming language ActionScript 2 (AS2). In this part we'll make a Joy Stick which will control the working of a gate! This is used for making puzzle games!
One of the most popular genres of video game is the platform game, which also poses some very interesting programming and design challenges.
From a programming point of view, if you can program a platform game then you are a good programmer
The code for the joystick is:
onClipEvent (keyUp) {
if (_root.char.hitTest(this)) {
if (this._currentframe == 1) {
if (Key.getCode() == Key.SPACE) {
this.gotoAndStop(2);
_root.ground.block.gotoAndPlay(2);
}
}
}
}
Subscribe for more tutorials
why is that the code in the video on the joystick is not the same on the code that you posted
how u go inside the oval? did u convert the oval to button or symbol?
Your videos are just awesome, I love working with flash, and I know I'm a little bit annoying
but just tell me, how can I make thinks appen quickly, the character moves too slow and the other things too
why is that the code that you posted is different on the video the video shows this code on your joystick
Its not a joystick but it is a LEVER!!!!!!
I tried to copy the symbol..but when my character gets it i don't get more points
okay so i duplicate the vcam symbol from the library from stage 1 then copied it and pasted it into stage 2 but when i added the instance name "vcam" it then blanks out again -_-
the joystick is not work
btw you make joystick layer but create the joystick in vcam layer?
and also when i remove the vcam instance name everything works fine in stage2 except for the spike when i tried to make it hit my HP bar it wont work so please answer asap thanks again! D:
Wait, so if u are shrinking the gate, it shouldn't be a TRANSFORMATION animation?
okay i need some help so basically i already done everything you told me to do in the tutorial and iam using adobe flash cs5.5 and i tried to make the next stage and when i completely added in the same instance name for the vcam everything went blanked out as soon as i completed the first level in the game i created by following your tutorial so please help!! thank you!!
It isn't working for me, do the line sizes count or something???
In part 8 I showed how to make the motion of character realistic!
hello there patrick m n need of an help from you ,..hope u do it for me u got a video from flashgamer007 from youtube on how to make vcam for stage2 right??..can u gimme that video pls coz am really struggling to make the vcam for stage2 pls reply asap pls
Which version are you using?
how can i make that when my character gets ANOTHER coin it will add +1 more
plz tell me .......what is the scripting of "its locked"...........
Done sending! let me know if it helped!
why I can pass the door but l don't do nothing
Please help me! I don't know what is wrong.. I made a joystick and a gate. Put everything like in your video.. Put the code for joystick - when I test it - nothing works!!! The joystick not working... and the gate even.. But I made everything like you!
How do u make it stop at the last frame
I didn't get you! can you explain?
+Game Development Tutorials he meant how do you make the joystick stop at the last frame of the symbol
when i touch the joystick the door wont open, plz quick help! because if you dont help, i cant stop thinking about the gate problem!!
make sure the instance name for the gate is correct and it is inside the symbol ground!
How to increase the jump height of ball????
+awsome world
In the code try changing the value of the variables.
and why is that you have a layer named joystick but you chose to put the joystick on the vcam layer? Im confused please speak on your tutorials next time so that you can address all the procedures thanks in advance please reply
Thanks for the feedback I'm sorry about the confusion I speak in all my new videos and don't worry much on the number of layers it just make the game more understandable. If you want you can do everything in one layer!
i make all things like my joystick is work but when i pres space the gate dont work plss any help here thanks for reply soon o_o
Ines Yaya
Make sure instance names are correct!
wtf how the heck do u make arrows to frame 30
Vcam of stage 1 should not be copied directly into stage 2! You should first duplicate the vcam symbol first then copy it into stage 2! Let me know if it works!
Forget that, dude, when I tasted it and reached the joystick, nothing happened
Hey game programmer, do you have a yahoomail account or any e-mail account, i didnt get this part. I want to ask you regarding about this.
help me i've repeated it many times still not work ;((((
Boy press space button when u reach the joystick then it will work
how to make checkpoint?
Make another restart box, and set the coordinates for where you want the checkpoint
make an invisible bar and if the ball touches that bar then set some variable like checkpt as true! then in the code for the restart box if checkpt is true then set position of ball to the position of check point!
not work for me
This is little tricky! If you can give me your email ID I'll send you a new video that will show you to make VCam for stage 2!
okay ill send my email through PM :)
the video shows if (this.currentframe == 1) {
How to.fix the bug that you can go through walls.... actually when the char goes to the wall and you can pass to it but when it reaches the half of the char... the char goes up help!!!!!
the main thought...
its better to use flat to have no bugs
DONT work :SSS
Oh no, sorry. It's working. It is needed to press "spacebar" Sorry)
LOL ;)
Hehe ^^*
But.. do you know how to make other moved for the character? Like " Flying / crouching / attacking " and something else? And how to animate the enemy? Could you make a tutorial for this also please? =)
And also... if you could tell please... How to make the "medicine chest" for the character?..
Omg XD i had same problem and space worked
i want make char moves not just stay and flying at the sky
how the fuck did you go instide the symbol ground?
double click the ground
please reply
fontdae
How to.fix the bug that you can go through walls.... actually when the char goes to the wall and you can pass to it but when it reaches the half of the char... the char goes up help!!!!!
the main thought...
its better to use flat to have no bugs
How to.fix the bug that you can go through walls.... actually when the char goes to the wall and you can pass to it but when it reaches the half of the char... the char goes up help!!!!!
the main thought...
its better to use flat to have no bugs