onClipEvent(load){ speed=10; } onClipEvent(enterFrame){ if(Key.isDown(Key.RIGHT)){ this._x+=speed; } if(Key.isDown(Key.LEFT)){ this._x-=speed;} if(Key.isDown(Key.DOWN)){ this._y+=speed; } if(Key.isDown(Key.UP)){ this._y-=speed; } } this is the code for right left AND UP AND DOWN
@MrAnonymous9898 how does this suck? he does exactly what he says he will do in the title: he makes a character, and makes it moves. Learn to read >.>
I have a question: Do you know how to make a RPG where you can choose the chacrater you want to play? Like, you can choose either Naruto, ichigo or Luffy, and i decide to choose luffy. Ok then i can play as luffy only, but everything in my whole RPG is still the same? THX
the code you gave me for the character just helped me make something that i was not able to make in my shooting game.......every single day i just get better with actionscript....i hope the one day i wont need these tutorials anymore
correction , the proper code for left/right movement is onClipEvent(load){ speed=7; } onClipEvent(enterFrame){ if(Key.isDown(Key.RIGHT)){ this._x+=speed; } if(Key.isDown(Key.LEFT)){ this._x-=speed; } } profchimpinstein you made a few mistakes , well , at least it didnt work when copied exactly to as2 that works perfectly,
does any1 kno a good tutorial for something other than "basic" movements...like, i have figured out how to get different animations to play for walking and running, but how would i get an animation to play while jumping/falling....plz lemme kno ty
@FlashTheHedgehog234 go inside your original player mc, and whereever you have that one picture, put ' stop(); ' on the actions for that frame, the make your pic an mc, go inside of it and animate it... then where you have you code for walking, put if (Key.isDown(blabla)){ whatever whatever this.gotoAndStop(//whatever frame you want to play wen key is down//);
HEY! Dont b lazy! Write in the codes! He showed us wat the codes was and all u have 2 do is that u have to write in them in the actionscript bar! (Lazy guy)
it's the script that may be wrong, if so, change it to to onClipEvent(load) { speed=7; } onClipEvent(enterFrame) { if(Key.isDown(Key.RIGHT)) { _x+=speed; } if(Key.isDown(Key.LEFT)) { _x-=speed; } }
@gamerman012345 Give your character an instance name of "char". Then use this script: onClipEvent (enterFrame) { if (Key.isDown(Key.LEFT)) { _root.char._x -= speed; } } onClipEvent (enterFrame) { if (Key.isDown(Key.RIGHT)) { _root.char._x += speed; } }
What you need to do, is say that when the key is pressed, the variable of speed gets higher. That way the constant (_x) will get higher, faster. Take this code for example:
if (Key.isDown(Key.RIGHT)) { speed += 1; char._x += speed;
}
what "+=" means, is to take the value, (speed), and to add something to it (1), "+=" can also be read as:
i keep getting a syntax error when i try to test it so i cant move here is the code i put it all in correctly(i think) onClipEvent(load){ speed=7; } onClipEvent(enterFrame){ if(Key.isDown(Key.RIGHT)){ this._x+=speed; } if(Key.isDown(Key.LEFT)){ this._x+=speed; } }
wow man thanks, i had no idea that you could do this in flash. I find this pretty funny because earlier today i was looking for a game design program that i could of used for free (and it not be a trial) but i had one all the time. Anyway thanks again man you've helped me out a bunch.
write under if(Key.isDown(Key.LEFT)) _x-=speed } if you want the movie clips go up and down. if(Key.isDown(Key.UP)){ _y-=speed } if(Key.isDown(Key.DOWN)){ _y+=speed } I am totally figure it out.
onClipEvent(load) { speed=7 } onClipEvent(enterFrame) { if(Key.isDown(Key.RIGHT)) _x+=speed } onClipEvent(enterFrame) { if(Key.isDown(Key.LEFT)) _x-=speed } put on this one this work PD our one dont work bitch
My character unfortunately also does not move. I entered the script as you said it (Even though I capsed the "left" because it needs to be) and it stated a pretty long list of errors.
Most of them speak of "undefined property" which is a mystery to me.
OK I put: onClipEvent(load){ speed=7; } onClipEvent(enterFrame){ if(Key.isDown(Key.RIGHT)){ this._x+=speed; } if(Key.isDown(Key.LEFT)){ this._x-=speed; } } and it still isn't working?
im not making exact copy of the game i just wanted movment codes so actually nooooooooooooooo he isnt on the ground so think before u talk smart one and i see u said exact same thing so ya shut up
Dude, you are a crackpot! I spent an hour on this tutorial, making sure I did everything you said to do and it does not work. Please take this tutorial off the internet before someone else wastes their time.
for all u guys who have flash mx and u cant right on the script there should be a button in the corner on the actions to change from normal to expert mode
Before Watching: If these videos are good, I will subscribe ;D
KennethProducts 7 months ago
TheCodKingz10 9 months ago
it's working if you really try to catch the hidden code for ____.x-=speed ...etc..
thectrlfn 10 months ago
not work
1000thunderman 11 months ago
how do i make a game thats like that teacher game where the character can move on the y axis to
XxiLOGiiKzxX 11 months ago
What is the registration point for the ground? :D
ikbeneenlolbroek 1 year ago
@ikbeneenlolbroek the top
Sparta8oy 9 months ago
leokful 1 year ago
how do you make your character flip around when you hit left?
santagotback101 1 year ago
My question is...does anyone know how to use a sprite character with this code? If you do please make an awesome in depth tutorial :D
TheNeonClub 1 year ago
URL is wrong .. poor image quality ... also no sound?
elouai 1 year ago
this sucks all this does is make a ball move.
MrAnonymous9898 1 year ago
@MrAnonymous9898 how does this suck? he does exactly what he says he will do in the title: he makes a character, and makes it moves. Learn to read >.>
2744spartan 1 year ago
I have a question: Do you know how to make a RPG where you can choose the chacrater you want to play? Like, you can choose either Naruto, ichigo or Luffy, and i decide to choose luffy. Ok then i can play as luffy only, but everything in my whole RPG is still the same? THX
inoshikasakunaru 1 year ago
that doesn't look like an rpg, more like a platformer
hedgehoggy147 1 year ago
the code you gave me for the character just helped me make something that i was not able to make in my shooting game.......every single day i just get better with actionscript....i hope the one day i wont need these tutorials anymore
unoriginality1 1 year ago
try to use hyper cam 2
its have better quality ;p
efrepall 1 year ago
You should get a better recorder :P
BraverlyProductions 1 year ago
Is there a way to make it so if your touch another movieclip or something you gotoAndStop at another frame?
TheSecOrg 1 year ago
add fmt=18 for see nearly hd
efrepall 1 year ago
is that msn paint?
N12311994 1 year ago
is this CS3????????
bflacks 1 year ago
@bflacks its flash 8
MrAnonymous9898 1 year ago
abbott959555 1 year ago 15
which progam do you use
MrCCTheBest 1 year ago
make instance name char on charter
NiksiLsmo 1 year ago
This has been flagged as spam show
are permitted only for movie clip instances onClipEvent(load){
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 4: Clip events are permitted only for movie clip instances onClipEvent(enterFrame){
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 6: Syntax error. }
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 6: Syntax error. }
Total ActionScript Errors: 4 Reported Errors: 4
MapleStoryP 1 year ago
does any1 kno a good tutorial for something other than "basic" movements...like, i have figured out how to get different animations to play for walking and running, but how would i get an animation to play while jumping/falling....plz lemme kno ty
YoshiJumper 1 year ago
how can i make it move if it has more then one frame i want it to move with
FlashTheHedgehog234 1 year ago
@FlashTheHedgehog234 go inside your original player mc, and whereever you have that one picture, put ' stop(); ' on the actions for that frame, the make your pic an mc, go inside of it and animate it... then where you have you code for walking, put if (Key.isDown(blabla)){ whatever whatever this.gotoAndStop(//whatever frame you want to play wen key is down//);
}
YoshiJumper 1 year ago
Sorry about the message below
where it says (Key.Right)){
Put: (Key.RIGHT)){
profchimpinstein 1 year ago
He Said To Put This Code In To The Character:
onClipEvent(load){ speed=7;
}
onClipEvent(enterFrame){ if(Key.isDown(Key.Right)){ this._x+=speed; } if(Key.isDown(Key.LEFT)){ this._x-=speed; }
}
So If He's Right Just Copy And Paste This In the Actions Of The Characters!
profchimpinstein 1 year ago
how to make walls
123dojjan 2 years ago
Sooo.... I have macromedia flash 8.
What is he using here?
graybaine11 2 years ago
@graybaine11 Adobe flash cs3 or 4 probably.
THEPOKEBIN1 1 year ago
flash 8
MrZurkonIRM 1 year ago
Flash 8
MrZurkonIRM 1 year ago
FitDanielA2010 2 years ago
what is the AS2 action?
pudinthemushroomhead 2 years ago
JamesVance4pivots 2 years ago
RNGbladestudios 2 years ago
get away from AS2
JumpingJamberie 2 years ago
@RNGbladestudios yeah, i fucked up a little.
JamesVance4pivots 2 years ago
sry... Ye, I was using AS3.
:D Understood that later.
Sry!
It was a great vid!
SuperDoomProductions 2 years ago
This has been flagged as spam show
he what a suuuuper genious
315982450 2 years ago
... LOL! Cant put in the actionscript at the character!
And one moore thing u guys made wrong, is that this guy who made this movie, named it char!
SuperDoomProductions 2 years ago
Hey, GUESS WHAT? You are using AS3! Use AS2!
Gishatako 2 years ago
AS2.0
RNGbladestudios 2 years ago
Ha
what a genious kkkkkk
315982450 2 years ago
this tut sucks because ur supposed to put the codes in the description but nooo
xXGreenDudeXx 2 years ago
He Doesn't So u learn instead of just copying and not looking at it
LookAtThisVideos 2 years ago
id learn if i copy and paste it in some document and memorize it
xXGreenDudeXx 2 years ago
Green dude, put it on the comment below this comment now
RNGbladestudios 2 years ago
Lol, ur a faggot Thats called Plagerism that way if you use it.
Gishatako 2 years ago
your the faggot cuz you dont even know what Plagerism even is.
xXGreenDudeXx 2 years ago
Copying somebodys work, im putting it into simpler words so you can understand the complex statement.
Gishatako 2 years ago
your not copying someones work if your typing in a flash code. its ment to be written in the action script to make buttons and other things. idiot
xXGreenDudeXx 2 years ago
xXGreenDudeXx, it seems YOU don't know what "Plagerism" is. Learn to spell.
lol, "Plagerism"
boykha2 2 years ago
learn to spell? i copied and pasted lol
xXGreenDudeXx 2 years ago
HEY! Dont b lazy! Write in the codes! He showed us wat the codes was and all u have 2 do is that u have to write in them in the actionscript bar! (Lazy guy)
SuperDoomProductions 2 years ago
help if i press left my character goes right
any idea?
funnycatster 2 years ago
Reply to "funnycatster": it may be the script
RNGbladestudios 2 years ago
hehe thanks for saying that, i found out that the actionscript is wrong..
funnycatster 2 years ago
RNGbladestudios 2 years ago
I'm getting a "1087: Syntax error: extra characters found after end of program."
Any ideas?
ajholmez 2 years ago
were you do the actions it wont let me tipe. PLEASE HELP ME!!!
jj82003 2 years ago
Try to click on Script Assist.
flippydaking 2 years ago
does any knows how to make an animation that moves.. we are making an rpg game but this is our problem.. hope for your answer..
by the way i use the:
if(Key.isDown(Key.UP){
_x+=7;
gotoAndPlay(1);
}
MrPrinceX06 2 years ago
This has been flagged as spam show
check out mine :D
asianGOOSE 2 years ago
what platform is he using?
aicrop02 2 years ago
how do I fix this? =
Clip events are permitted only for movie clip instances
gamerman012345 2 years ago
Change the "symbol!" to movieclip instead of graphic or button.
olsern 2 years ago
@gamerman012345 you must convert your instance to a movie clip.. convert to symbol and choose movie clip.
MrPrinceX06 2 years ago
sk8r2000 2 years ago
Can u tell me the name of the program you are using and were too find it??
sicret93 2 years ago
i believe it says flash 8 pro program to make the rpg
kaizer170797 2 years ago
Adobe flash, their homesite.
Buy the adobepacage.
olsern 2 years ago
there's actually a different one that one can let u move around the whole place not like the one u stay on the ground
chobotsrg 2 years ago
I Press Left And It Works But When i Press Right, He Just Pops Back To The Start
kylethesmith 2 years ago
I want to make like this: if keep pressing, the speed will add, what's the actionscript code?
badmonkeyballplayer 2 years ago
maybe something like
(keypresscode){
speed++;
}
dudeboy524 2 years ago
Comment removed
Manifest222 2 years ago
What you need to do, is say that when the key is pressed, the variable of speed gets higher. That way the constant (_x) will get higher, faster. Take this code for example:
if (Key.isDown(Key.RIGHT)) { speed += 1; char._x += speed;
}
what "+=" means, is to take the value, (speed), and to add something to it (1), "+=" can also be read as:
speed = speed + 1;
Manifest222 2 years ago
It can't work yet, but anyway, thanks!
badmonkeyballplayer 2 years ago
rompnife 2 years ago
This has been flagged as spam show
Nastyeggrolls 2 years ago
This has been flagged as spam show
sk8r2000 2 years ago
Um, both keys make the character move right, not both ways
buizelbeagle 2 years ago 5
AWESOME DUDE
hellfire9009 2 years ago
Where can you get this program?
ajholmez 2 years ago
adobe. com...
GerbilAndHelp 2 years ago
insted of a flash guy can u use a sprite'cause i really like to make a sprite rpg like final fansaty sonic
slayer123abc 2 years ago
sprites fine, he just used a circle for the tutorial
Zaphire77 2 years ago
This has been flagged as spam show
Kabuto4Life 2 years ago 5
thanks alot...not sure why this is spam.
JayMutta 2 years ago 2
When I try to type in that code, to the character 'F9', it says "Current selection cannot have actions applied to it."
Aitsihia 2 years ago
PS.... im using Macromedia Flash Professional 8
lieod 2 years ago
this is what i ment it makes my character stay still ok? and it dont move
could u PLZ!!!!!! help????
like post the script as a comment to see if i have made and mistakes or
give me advice!!!
PLZ HELP!
lieod 2 years ago
Comment removed
lieod 2 years ago
Comment removed
lieod 2 years ago
thank for the vid, it has helped me much, i found out how to do the up and down movements as well with this vid, thanx :D
0175201752 2 years ago
Is this in AS 2 or 3?
TheLeftHand88 2 years ago
games are always in AS2 for some resond I can;t enter codes in AS3
1hitthug 2 years ago
That explains why it looked odd. AS3 uses a different type of code than AS2. I've heard 3 is more like C++, but I'm no expert.
TheLeftHand88 2 years ago
In AS3, you are only aviable to enter codes in the frames, for example:
if I name one symbol's instance name into "tea", you may enter the code into the fram like this:
tea.codes
badmonkeyballplayer 2 years ago
hey, i used your code and everythin, but if i put
if(Key.isDown(Key.W))(
instead of
if(Key.isDown(Key.Up))(
then it wont let me use "W" for the up key,
any tips? thx
~CaKeS
PivotMasterBJM 2 years ago
you gotta use numbers, 65 is A and 66 is B and you gotta go all the way to W xD
UchihaMizika 2 years ago
ah, kk so W would be 87... i think lol ill check! thanks!
PivotMasterBJM 2 years ago
oi i use cs3 but somehow when i click actions it says( selected char) current selecton cannot have actions applied to it? what do i do
ZiomASek300 2 years ago
did u convert it 2 a movie clip?
finalninja0 2 years ago
i figured it out
i used as3 not as2
ZiomASek300 2 years ago
deselect the symbol.
TheLeftHand88 2 years ago
wow man thanks, i had no idea that you could do this in flash. I find this pretty funny because earlier today i was looking for a game design program that i could of used for free (and it not be a trial) but i had one all the time. Anyway thanks again man you've helped me out a bunch.
technodob 2 years ago
where do you past the code...
Renikor 2 years ago
nvm got it
Renikor 2 years ago
Where??
TheAQWFan 2 years ago
U can get those Codes?
TheAQWFan 2 years ago
first, get the as2 bible
2nd use your brain
3rd manipulate codes by piecing bits by bits together untill you get something
SeniorTophat 2 years ago
does anyone know how to actully make stick dudes do this?
Xerothe0th 2 years ago
Apapilootoe 2 years ago
;( does anybody know how to move a character with mouse?
PLEASE REPLY
LegalAndFreeSadboy 2 years ago
do you mean follow the mouse or be the mouse, and if follow the mouse, in what way and ill see if i know
JSK29rules 2 years ago
great video thank narration would be nice and some further explanation for beginners such as my self
fude45 3 years ago
mariutoo 3 years ago
view my tutorials for a better RPG.
AdobeFlashTutorials 3 years ago
DONT WORK BITCH!
MaultraMedia 3 years ago
MaultraMedia, don't call other people "bitch" because you're too STUPID to follow their tutorials :). And please learn grammar. "Doesn't work" :)
Forsaken321wow 2 years ago 3
what is the code?? i can't copy it and my keyboard is f**ked up
thevideotutorialman 3 years ago
Thanks
SmellyMonkeyFeces 3 years ago
My character unfortunately also does not move. I entered the script as you said it (Even though I capsed the "left" because it needs to be) and it stated a pretty long list of errors.
Most of them speak of "undefined property" which is a mystery to me.
Petrifyer 3 years ago
What the hell? I did everything this tutorial said and my character won't move at all.
Leathertoast 3 years ago
wow this is a walk in the park compared to C++
barfyspartan 3 years ago
HOW DO YOU MAKE IT JUMP?!
Lyserinc 3 years ago
This has been flagged as spam show
TowerSL 3 years ago
help me anybody, i cant make him go up or down
wolf333444 3 years ago
very easy, exactly the same, but to go up is UP and y+ and to go down is DOWN and y-, i'm not sure.
Javier08081995 3 years ago
If you want him/her to go up down put this in:
if(Key.isDown(Key.UP)){
_y-=speed;
}
if(Key.isDown(Key.DOWN)){
_y+=speed;
}
alig96 3 years ago
I CANT MAKE him go down
jemar200 3 years ago
ooooooooooooooooh....your not supposed to make him...hes on the ground :/ lolololol! XD
wolf333444 3 years ago
im not making exact copy of the game i just wanted movment codes so actually nooooooooooooooo he isnt on the ground so think before u talk smart one and i see u said exact same thing so ya shut up
jemar200 3 years ago
well u didnt specify that
so ya shut up
Dominator1212 3 years ago
What if you want the movement to be like... a man walking or something you know... animated
jemaster800 3 years ago
how do you make it jump?
somehominid 3 years ago
xxtylerxx1 3 years ago
BenneyBoy444 3 years ago
its the same
Sa1Productions 3 years ago
put them after a statement or function and after the block of code
TheBatchGuy 3 years ago
i'm confused how do i know exacly where to put the { and the } ?
danieboy777 3 years ago
You put them either at the end of the text on that line or on a line after text and 1 backspace
LastRoundEffort2 3 years ago
how to type in flash mx???????
kikiandrei 3 years ago
hmm doest work for flash mx...man
ljf3 3 years ago
Dude, you are a crackpot! I spent an hour on this tutorial, making sure I did everything you said to do and it does not work. Please take this tutorial off the internet before someone else wastes their time.
stanimatorblue 3 years ago
This has been flagged as spam show
it worked for me
thadaran 3 years ago
dude it didn't work and I tried it
Keymanoip 3 years ago
mine only goes left and right :l
izackrodriguez 3 years ago
lol its only sypposed to
animation7king 3 years ago
all directions right here
HaLO3gamer91 3 years ago
onClipEvent(load){
speed=7;
}
onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT)){
this._x+=speed;
}
if(Key.isDown(Key.LEFT)){
this._x-=speed;
}
HaLO3gamer91 3 years ago
if(Key.isDown(Key.UP)){
this._y-=speed;
}
if(Key.isDown(Key.DOWN)){
this._y+=speed;
}
}
HaLO3gamer91 3 years ago
runonacow 3 years ago
myne only goes left:(
Superawesomecoffee 3 years ago
I feel really stupid asking this, but I just decided that I wanted to make flash games not even ten minutes ago, so:
How do you open flash?
XD
totalanimefanatic 3 years ago
you onpen it up by all programs then macromiadia then flash 8 then you choose a flash document the one at the top
runonacow 3 years ago
rofl =P
deadhues 3 years ago
you gay faget put the codes on the comments
Raiden1000002 3 years ago
I did this but i didna work . . . .
danzono1 3 years ago
hw u make the char turn the way hes goin?
animation7king 3 years ago
how do you go up and down
maxyooyu369 3 years ago
quick tip, if your using the text file with all of the codes,in the first script you may get an error because LEFT is suppose to be capitalized
Prix1337 3 years ago
hw u make the char turn the way hes goin?
dec20056 3 years ago
I wish I had a camera T_T and plz double jumping tut too
Renkay141 3 years ago
hey can u make a flash tut for double jumping??
Renkay141 3 years ago
can you detail the charecter to look like your self?
stinkoman622 3 years ago
Duh...anyway you like.
DarkSuperstar100 3 years ago
yeah its sweet
stinkoman622 3 years ago
Could you make a tutorial for flash 4?
jemaster800 3 years ago
rofl
frozenpandaman 3 years ago
haha wow thanks!!
Crsttarocks 3 years ago
Watch my newest video on how to turn in different directions.
PivotyPivoty 3 years ago
PivotyPivoty 3 years ago
for all u guys who have flash mx and u cant right on the script there should be a button in the corner on the actions to change from normal to expert mode
Xsilverbolt 3 years ago
i got stuk on the last part but i finaly got at last by the way thanks
mongolman741 3 years ago
please send me the code i can´t write it my self because of i only gets error in my script!
HackTutorials 3 years ago 2