How to make a platform game in flash (CS5)

  Рет қаралды 415,544

Daniel Andersen

Daniel Andersen

Күн бұрын

(I am not a game developer, I only know how to do a few codes. My goal is to give novice game developers a start. I wish I had the time to learn coding and I'm sorry if you are mislead by the title. Non the less I teach you how to make a video-game throughout all my tutorials and you will learn how to code minor things. hope you enjoy!) {CLICK SHOW MORE FOR CODES}
these are the codes for the actions-
(Character)
onClipEvent (load) {
var ground:MovieClip = _root.ground;
var grav:Number = 0;
var gravity:Number = 2;
var speed:Number = 7;
var maxJump:Number = -12;
var touchingGround:Boolean = false;
}
onClipEvent (enterFrame) {
_y += grav;
grav += gravity;
while (ground.hitTest(_x, _y, true)) {
_y -= gravity;
grav = 0;
}
if (ground.hitTest(_x, _y+5, true)) {
touchingGround = true;
} else {
touchingGround = false;
}
if (Key.isDown(Key.RIGHT)) {
_x += speed;
}
if (Key.isDown(Key.LEFT)) {
_x -= speed;
}
if (Key.isDown(Key.UP) && touchingGround) {
grav = maxJump;
}
if (ground.hitTest(_x+(_width/2), _y-(_height/2), true)) {
_x -= speed;
}
if (ground.hitTest(_x-(_width/2), _y-(_height/2), true)) {
_x += speed;
}
if (ground.hitTest(_x, _y-(height), true)) {
grav = 3;
}
}
(VCam download link)
www.mediafire.c...
(VCAM Code)
onClipEvent (enterFrame) {
_y += (_root.char._y-_y)/4;
_x += (_root.char._x-_x)/4;
}
(Reset Symbol)
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.char._x = charX
_root.char._y = charY
}
}

Пікірлер: 808
@activereplayar497
@activereplayar497 9 жыл бұрын
Wow, there sure are a lot of "things" in this video.
@eddi790
@eddi790 11 жыл бұрын
THANK YOU SO SO SO SO MUUUUCH! I have watched hundreds of tutorials, but this is the only one where the ball not glitces. Thanks again! Thank you!
@iwatcher69
@iwatcher69 11 жыл бұрын
Blayer, you got to create the animation and then nest it onto your movie clip (the character). For example, double click your character which should already be a symbol. next create the animation. I used it to bounce and squished when it hits the ground. then go back to your primary scene just click the blue arrow on the top left of your work area(next to "scene" then "char"), so that your character's symbol has a blue outline again. good luck.
@EduMiguel16
@EduMiguel16 12 жыл бұрын
thanks for this perfect tutorial, best explaning video ever in youtube (or maybe I didn't watch a better one yet xD). :)
@telopyd
@telopyd 12 жыл бұрын
Now it works: I had the script assist on. I'm new to flash so I didn't know that. It works perfectly now, ty alot
@PiggySandvich
@PiggySandvich 10 жыл бұрын
Copying and pasting wont work for the camera mate.
@ATVMedia
@ATVMedia 12 жыл бұрын
Now when i see how hard is it to make a game. i respect them
@Hb35Jazz
@Hb35Jazz 11 жыл бұрын
You sure you have named it ground in the "Instance Name" box in properties as well? Besides just naming the symbol? I made that mistake and experienced the same problem, but correcting it made everything work. Cheers!
@crunchycow7037
@crunchycow7037 10 жыл бұрын
this is the best tutorial ever you were the only one to teach me
@thegoodgamer872
@thegoodgamer872 4 ай бұрын
for macromedia flash users: if you try to find something named "classic tween", you wont find it, soooooo, use monition tween
@rickythechicken
@rickythechicken 12 жыл бұрын
THANK YOU SO SO SO SO MUCH!!!!!! I TOLD MY FRIEND ABOUT IT AND HE ACTUALLY PAYED ME TO PLAY!!!! THANK YOU SO SO SO MUCH!!!!!!
@chrt222
@chrt222 10 жыл бұрын
I liked the tutorial, actually learned some stuff, try study the code guys!
@lukassavaikaitis955
@lukassavaikaitis955 12 жыл бұрын
if you use action script 2.0 - yes it will. No matter wich version of adobe flash you use, it all comes into flash player and actionscript version to define either it will work or not
@JazzMy8
@JazzMy8 6 жыл бұрын
Good thing I studied C++. Otherwise I wouldn't be able to understand a thing. I understand why others may have trouble understanding though. In my case, thank you for making this video.
@Mrwiseguy101690
@Mrwiseguy101690 11 жыл бұрын
I'm going to subscribe to you. I have been searching for about 8 months for someone like you. =)
@TwinkyReflex
@TwinkyReflex 11 жыл бұрын
The character only registers on the bottom of the platform. I set it to the top, but it doesn't work. Also, how do you rename a instance?
@randomer24700
@randomer24700 9 жыл бұрын
You need to explain what you do it's not enough to just do it.
@jajafine
@jajafine 11 жыл бұрын
these errors comes up: Scene=Scene 1, layer=character, frame=1, Line 2 Syntax error. Scene=Scene 1, layer=character, frame=1, Line 3 Statement must appear within on/onClipEvent handler how can i fix it?
@sophietheriolu
@sophietheriolu 12 жыл бұрын
It is a very complex code, more complex than HTML, and this is a tutorial for beginners - I would imagine it to be very difficult to memorize such advanced encoding.
@Blakeanimates
@Blakeanimates 12 жыл бұрын
im making a game where you have a character choice menu i just copyed the frames and pasted them onto another frame all i did was change the character and the camera wont move and is on the bottom of the ground all the codes are there so i dont know why its not working
@PapaPxD
@PapaPxD 11 жыл бұрын
Hey do you know how to make the character jump and move with the use of a button, not keyboard. Like a Jump button and a left/right button to make the character move. Please help
@jayhawkfan257
@jayhawkfan257 11 жыл бұрын
does it only work on pc, because im trying this on a mac but when I try to use vcam, it zooms in where the vcam bar is but doesn't move the background like yours does
@brennandownhill
@brennandownhill 10 жыл бұрын
So... Step 1: make player and solid Step 2 : Copy and Paste I'm good at programming now!!! Obviously joking I didn't learn shit.
@ozof8077
@ozof8077 4 жыл бұрын
asfaasdgashadah
@UndeadSlayer999
@UndeadSlayer999 11 жыл бұрын
when i want to open the vcam in cs5 it donts wants to ! its says to search it on internet or with program... pls help
@joeybyrnesrobotics
@joeybyrnesrobotics 11 жыл бұрын
Did you name the ground "ground in the top right corner sfter you made it a symbol?
@gilarynduran08
@gilarynduran08 12 жыл бұрын
This is really awesome, it help very much to my thesis :)
@churchofastrotrain
@churchofastrotrain 12 жыл бұрын
i have Char set as a movie clip but now it says this onClipEvent (load) { is wrong and doesn't work
@Toastdispatch
@Toastdispatch 13 жыл бұрын
Vcam doesn't work...when I downloaded it it was not a flash file it was a text file.
@FrislidProductions
@FrislidProductions 12 жыл бұрын
okay look back n make sure u put in the codes correctly n make sure the instant names are correct n make the restart box bigger with a very thick perimeter.
@FrislidProductions
@FrislidProductions 12 жыл бұрын
i made this a round a year ago n ill admit i knew nothing but my 3 resent tutorials on how to make a platform game are a lot better a lot clearer and i actually know what I'm talking about and i learned how to modify some codes and make my own........n ill still admit to this day that i don't know everything but i know a hell lot more..........so i recommend you see my newer tutorials on how to make a platform game before you start trolling on my videos
@thesakydoushe
@thesakydoushe 11 жыл бұрын
i have done this but the ball just goes through the ground, please need help
@FrislidProductions
@FrislidProductions 12 жыл бұрын
@TheMongwai thanx i put alot of time into these tutorials and i have more to come.
@djvastofficial
@djvastofficial 11 жыл бұрын
my character does not collide with my ground. any help would be appreciated!
@BinghamVlogs
@BinghamVlogs 12 жыл бұрын
Finally! Someone with a normal voice! Also, very helpful!
@nLBrawler
@nLBrawler 11 жыл бұрын
What's the programming language your using?
@ZyanBinx
@ZyanBinx 12 жыл бұрын
The error says: "Scene=Scene 1, layer=vcam, frame=1, Line 6 ')' expected" and I check line 6, and it just says "(Reset Symbol)"
@galaxylizard8263
@galaxylizard8263 4 жыл бұрын
what do you use to make the game?
@FrislidProductions
@FrislidProductions 12 жыл бұрын
@stickpersonmaker sry i dont but even though i said im not making a part two....well i found out the rest of the codes and im gonna have 3 parts of a more advanced platform videogame tutorial up n i will try to put it up tomorrow of the day after so keep checking back at my channel
@mrcrazysalad
@mrcrazysalad 12 жыл бұрын
the camera doesnt seem to follow my character?
@jajafine
@jajafine 11 жыл бұрын
the 
var ground:MovieClip = _root.ground;
 seems to be a problem, and I have called the symbol ground and the instant name is ground. I have done it according to the video, why wont it work?
@munir841
@munir841 12 жыл бұрын
mine doesn't work because it says 1087: Syntax error: extra characters found after end of program.
@OttoStadel
@OttoStadel 11 жыл бұрын
It works great thank you, just one problem - sometimes when my character is standing the whole ground movieclip seems to vibrate, is there any way to fix that?
@lfonzarblogl4950
@lfonzarblogl4950 11 жыл бұрын
I do all what u do ,same color ball , ground all i do what u show but stiiiiiiil falls the platfrom ! plz help !!!
@superkrizz6970
@superkrizz6970 9 жыл бұрын
Scene 1, Layer 'character', Frame 1, Line 9, Column 26 1086: Syntax error: expecting semicolon before leftbrace.
@fayaadbsa
@fayaadbsa 7 жыл бұрын
add ; before {
@MA5T3Rification
@MA5T3Rification 12 жыл бұрын
my character is not moving and i paste your codes! in says something like expecting semi colon before left brace wtf is that?
@lotr65
@lotr65 11 жыл бұрын
I have followed the tutorial but when it tells me to press ctrl & enter my character doesn't show up, the ground does but the character doesn't?. If anybody could help me it would be amazing!. this is for a university assignment
@timothylanch7859
@timothylanch7859 12 жыл бұрын
hopeless how does the vcam work i follow the exact something and nothing worked
@busranursen2305
@busranursen2305 Жыл бұрын
hey, how can i apply you lost and you win ?
@MegaVmovies
@MegaVmovies 10 жыл бұрын
I just want to make a game for fun.. I want to learn but then say me what's wrong and then I'll try if I can make any sence out of it..
@MackEffects
@MackEffects 12 жыл бұрын
How do I make it so you don't hit any buttons and he runs?
@GlompAnimations
@GlompAnimations 11 жыл бұрын
I use mac and when I download vcam from your description link I only get a text file, Will someone please help
@Mrjuli6tor
@Mrjuli6tor 12 жыл бұрын
there was no actions when you have a mac please help me!
@loganjames2332
@loganjames2332 12 жыл бұрын
what program do u use
@patt4251
@patt4251 3 жыл бұрын
what a treasure
@spiritsoul128
@spiritsoul128 11 жыл бұрын
anyone know script code the character is constantly moving in the left or right direction without holding any key
@sognifantasiosi
@sognifantasiosi 11 жыл бұрын
what do you mean with "small blocks"
@FrislidProductions
@FrislidProductions 12 жыл бұрын
good, and no hard feelings
@easy_entry4623
@easy_entry4623 5 жыл бұрын
can you please describe the functions....
@nileshsonawane6154
@nileshsonawane6154 8 жыл бұрын
sir, can i use this game for android mobile?
@thedarknesscrafters
@thedarknesscrafters 11 жыл бұрын
can i use cs5 to make a websiteas well?
@Outpost38C
@Outpost38C 12 жыл бұрын
@FrislidProductions Yeah, I know... What's the difference, anyhow?
@nrhani2506
@nrhani2506 7 жыл бұрын
what does he use to do that?
@wixnarara
@wixnarara 8 жыл бұрын
You don't explain the code -.-
@MrTNT6000
@MrTNT6000 8 жыл бұрын
and he doesn't know what a curly brace is... I bet he didn't even make the code.
@nothingatall33
@nothingatall33 8 жыл бұрын
Read the description. He clearly states he is NOT a game developer. He just wants to give ameture game makers a start.
@cppbear6115
@cppbear6115 7 жыл бұрын
actually not
@cockroachcharlie5619
@cockroachcharlie5619 6 жыл бұрын
If you have a basic understanding of modern computer code/script, most of it doesn't need much explanation anyway.
@92nobodyskeleton
@92nobodyskeleton 10 жыл бұрын
This is so cool!!!
@Sabartio
@Sabartio 11 жыл бұрын
I cant chose action script 2 in flash cc
@simonnaslund1920
@simonnaslund1920 10 жыл бұрын
My vcam doesn´t work, followed every step on the tutorial....
@115rocksta
@115rocksta 13 жыл бұрын
Hey man, on your tutorial on how to make a platform game, when i test the game my character falls to the ground. could you help me. thanks
@AdamG7234
@AdamG7234 12 жыл бұрын
my restart box won't work, any ideas???
@joelcornelius9493
@joelcornelius9493 12 жыл бұрын
admin.....can i do diamond dash game in flash ??? or other game same as diamond dash can u guide me or show me pls
@c1u1ch
@c1u1ch 12 жыл бұрын
how do you make your own coding?
@bebesitoish
@bebesitoish 11 жыл бұрын
My restart box wont work?
@koolsk8ingninja
@koolsk8ingninja 11 жыл бұрын
Dude ur awesome Thx!!!
@Vamshiani
@Vamshiani 12 жыл бұрын
@JediRexMD - Dude i know that here it is if (Key.isDown(Key.RIGHT)) { _x += speed; play(); //-this line will let your movieclip play only when you press the RIGHT key } in the same way for left if you have not understood it ,let me know ,i would make a tutorial
@pl4ntf00d
@pl4ntf00d 9 жыл бұрын
what programing language? EDIT: Never mind its actoinscript
@qzwxecrbtntn5886
@qzwxecrbtntn5886 9 жыл бұрын
Could you convert the coding to ActionScript 3? That would be AMAZING
@ThePunisher1028
@ThePunisher1028 9 жыл бұрын
***** In as3 hitTest() method is renamed as hitTestObject()
@FrislidProductions
@FrislidProductions 12 жыл бұрын
@BinghamVlogs haha tht was one of the main reasons i made this bc no one had a normal voice in their tutorials.
@CrazyCodFinatic
@CrazyCodFinatic 12 жыл бұрын
will this work on air for android?
@BiancaDimco
@BiancaDimco Жыл бұрын
where is the next part?
@johnandjames1
@johnandjames1 12 жыл бұрын
will this code work with flash cs6
@FrislidProductions
@FrislidProductions 12 жыл бұрын
@NIP28 glad i was able to help
@WTFbomb124
@WTFbomb124 12 жыл бұрын
does this work on cs 6
@bebesitoish
@bebesitoish 11 жыл бұрын
Oh... I found my problem, never mind. There was a piece of ground left over from one I deleted earlier named ground. It was messing shit up :P
@DnzLyrics
@DnzLyrics 11 жыл бұрын
My char will move, but he just falls through the floor.
@SuperKnoppen
@SuperKnoppen 12 жыл бұрын
It would be awesome if i could make a charater with moving legs :)
@marijamaki8813
@marijamaki8813 11 жыл бұрын
when i open test movie my character falls
@FrislidProductions
@FrislidProductions 12 жыл бұрын
i know how to make movable objects.....just watch my other tutorials on how to make a platform game and i explain how to do it
@stickpersonmaker
@stickpersonmaker 12 жыл бұрын
do yo know how to make a shooter? please respond soon cause I only have the trail for 10 more days D:
@mlpjourneydash8654
@mlpjourneydash8654 10 жыл бұрын
were do i get CS5??
@billyjenkins3463
@billyjenkins3463 12 жыл бұрын
my rb doesnt work at all
@fidkjaadjk
@fidkjaadjk 2 жыл бұрын
its not working on my game:(
@MIC-if4hs
@MIC-if4hs 10 жыл бұрын
Sooooo basically I copy and paste some code into the program with "Those two things" and "Just mess around with it" until I finally get my game to work properly...... Okay then.
@DrSoda.
@DrSoda. 4 жыл бұрын
Dont be an ass
@dudss5178
@dudss5178 10 жыл бұрын
So, I dont think that thats the worst tut ever,but you just copy and paste code and didnt even explain it! Im ok when you copy and paste bacause you dont want to write it again but you need to explain it!
@Untoldanimations
@Untoldanimations 10 жыл бұрын
While you were at you should have just let us copy and past the entire flash file -.-
@Bl3zzz
@Bl3zzz 8 жыл бұрын
+Ping Pong Cup Shots hey hey hey, if you don't appreciate his effort, scram
@lemonco7984
@lemonco7984 3 жыл бұрын
then it wouldn't be a tutorial, you would just be stealing his game and pretend it yours
@MegaVmovies
@MegaVmovies 10 жыл бұрын
Is it just me or is the script not ok, if it isn't, please send me the good one
@andrewlincoln6777
@andrewlincoln6777 10 жыл бұрын
good tutorial for beginners using flash.. although, if your are looking to learn how to program your game... look elsewhere.
@ElectronicMindStudios
@ElectronicMindStudios 11 жыл бұрын
Just wondering, but would it be possible for you to make a video explaining the code? That way people can learn a bit of action script while doing this, and hopefully be able to modify it slightly to suit there own needs. Thanks!
@crunchy_kitkat
@crunchy_kitkat 9 жыл бұрын
clearly someone who does not know what a bracket is is not fit to teach others about such things.
@lopex3824
@lopex3824 9 жыл бұрын
Where do you learn all the coding for the character and stuff? So if i want to make something difrent i dont need to search on google!
@LittleGameDev
@LittleGameDev 9 жыл бұрын
Lopex Try www.khanacademy.org/ its an awesome site and its free. Once you there go the *Intro for drawing and Animations* you can also use your Gmail account to sign up and log in. I hope this helps.
@pistelli57
@pistelli57 9 жыл бұрын
If your character keeps falling down, make sure your platform height is higher than the character height. If not, it will only work if you change the code.
@RetroGamerNO
@RetroGamerNO 8 жыл бұрын
Maybe you could explain the code?
The Most Impressive Scratch Projects
11:00
DenshiVideo
Рет қаралды 4,9 МЛН
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 715 М.
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Funny superhero siblings
Рет қаралды 4,5 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 7 МЛН
Writing a game the hard way - from scratch using C. #1
34:20
NCOT Technology
Рет қаралды 129 М.
I Paid Fiverr Game Developers to Make the Same Game
10:25
BadGameDev
Рет қаралды 701 М.
How to make a game in flash.
7:25
Toko
Рет қаралды 171 М.
How To Make A Platform Game in Flash (Extended)
10:01
Daniel Andersen
Рет қаралды 114 М.
How to make a platform game in flash 8 part 7
9:38
Game Development Tutorials
Рет қаралды 22 М.
Make Your Own Flash Game For Free
9:12
Tinkernut
Рет қаралды 276 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,1 МЛН
every step to actually make your dream game (then sell it)
24:27
Adobe Flash CS5 Tutorial   Super Mario Animation HD
9:17
Ninelifecat
Рет қаралды 2,3 М.