@H4ppyGoHeadshot the code is actionscript 2, the program is flash cs3 and i learnt it from watching several videos and reading up at the library, i also got some help on forums
i have a question: i made a game with a movieclip (that is a gun) that contained a frame called "reload". in this frame i created a movieclip which the player reloads the gun. so i wrote the actionscript with something like "if (bullets=0) { this.gotoAndStop("reload"); }". it may look right, but when my bullets are exactly 0, the frame is loaded but the movieclip with the guy reloading the gun doesn't play, it stops on the first frame. WHY?
please ignore my other response, I just discoverd that what i said is bullshit, but make sure to do exactly the same as in the vid, because it worked for me
did this one too with CS3. Thanks. I'm looking forward to working through your other tutorials. Are there any sites you would recommend for actionscript code?
Can you please make another version of the video in which you can move up, down, left, and right; also I followed your tutorial, but my character keeps animating when it's still... and when I do up and down it does the same thing...
I used sprites for the animation
So what I'm saying is that I want to make the character move, but stays still if I don't press the arrow keys.
Also I want the character facing the direction of the last key pressed (i.e. pressed up arrow key / character go up / release up arrow key / character face up idle)
The code didn't do much. Here's how I did mine. I picked a idle sprite (facing south), and made it into a symbol. Then I went inside the symbol and made 4 layers that contain positions (1 down, 2 up, 3 left, 4 right). The 5th is actions with the code [stop();] I made two frames for each. For down, 1st frame is down_still and 2nd is down_move. I did it for each of the 4 frames except the 5th. The movements are symbols while still is the idle frame direction. All of the layers are instances.
Oops, I meant I made the frames instances (i.e. down_still and down_move)
The code works but not the way I wanted. Also if my process is too much then let me know.
What I am trying to animate is a pokemon sprite character. If it's no trouble, please make a tutorial about sprite movement with arrow keys. But yeah, I messed around a bit and came back for help.
what code are you using? is it called dreamweaver cs3?... and were did you learn to do it from scratch? ex:website, youtube ect. thanks
H4ppyGoHeadshot 7 months ago
@H4ppyGoHeadshot the code is actionscript 2, the program is flash cs3 and i learnt it from watching several videos and reading up at the library, i also got some help on forums
VampieGames 7 months ago
Comment removed
H4ppyGoHeadshot 7 months ago
This has been flagged as spam show
I need help
I need help
alone and saw this video when I give you to play the next frame and nothing happens
casmmgm 7 months ago
I need help
alone and saw this video when I give you to play the next frame and nothing happens
casmmgm 7 months ago
Wow. What a willy you are
IlovePOTO3 1 year ago
@IlovePOTO3 i know!
VampieGames 1 year ago
lol i'm learning from a 4 year old ^^
KillerGuitar007 1 year ago
I did exactly the same thing but then with moving shoes and it works ;D thnx dude
Pyanapple 1 year ago
i have a question: i made a game with a movieclip (that is a gun) that contained a frame called "reload". in this frame i created a movieclip which the player reloads the gun. so i wrote the actionscript with something like "if (bullets=0) { this.gotoAndStop("reload"); }". it may look right, but when my bullets are exactly 0, the frame is loaded but the movieclip with the guy reloading the gun doesn't play, it stops on the first frame. WHY?
toshiraka 1 year ago
@toshiraka
Because you typed in gotoAndStop("reload")
It should be gotoAndPlay("reload") because otherwise it will stop at the first frame (wich is your problem)
Pyanapple 1 year ago
@toshiraka
please ignore my other response, I just discoverd that what i said is bullshit, but make sure to do exactly the same as in the vid, because it worked for me
Pyanapple 1 year ago
THANKS SOOO MUCH!
guy71173 1 year ago
if i go offscreen, how do i keep the camera on the character? :0
DanielXLunar 1 year ago
did this one too with CS3. Thanks. I'm looking forward to working through your other tutorials. Are there any sites you would recommend for actionscript code?
piattrocks 2 years ago
Dear VampieGames, I think i did everything you said, but when i click on ctrl+enter to teste my 'game' i see this error:
**Error** Scene=Scene 1, layer=Vincent, frame=1:Line 1: Clip events are permitted only for movie clip instances onClipEvent(enterFrame){
Total ActionScript Errors: 1 Reported Errors: 1
could you please help me?
Pyanapple 2 years ago
make sure its a movie clip and not a button or graphic... and make sure your not putting your script on a frame instead of the Movieclip
benjoandrichie 2 years ago
You have to put that code in the MovieClip. NOT in a from, button, or graphic.
dudeboy524 2 years ago
nice
136479abc 2 years ago
thx! this really halped! and w00t FINALLY i hear a British voice on youtube 4 once XD
therealsupermario 2 years ago
Long live britain....lol
ANYvideotutorial 2 years ago
Britain is 4 qwers
benjoandrichie 2 years ago
your qwer!
3runnerBlair 2 years ago
you know nothing about britain
it aint all tea and cricket
we do have black guys and gun crime as well
not sayin black guys a criminals but we aint all bucktooth solicitors a cockney accents we aint that much different to america!
3runnerBlair 2 years ago
Awesome tutorial this is going to be a lot of fun!!! thanks!
VandeKane 2 years ago
does this work with flash 8? because its not working for me. please help
shadowdan21 2 years ago
THX ITS WORK
Ts00TsKral00Ts 2 years ago
2:16 what for Button??
Ts00TsKral00Ts 2 years ago
I did it with my cs3 but not workin D:
ug5151 2 years ago
Nice tutorial :)
Element20200 2 years ago
thx dude. :)
isasu1 2 years ago
This has been flagged as spam show
code does not work for me
D1SH3Y 2 years ago
ok, i figured it out...
MrJastin 2 years ago
Nvm, but wen it moves, it stay still
MrJastin 2 years ago
It won't let me paste the code...
MrJastin 2 years ago
I named mine freddie. :-)
blevinsmmm 2 years ago
Will this work in Macromedia Flash Professional 8?
MichuKiller301 2 years ago
yes
rockgodlegendary 2 years ago
very very VERY good tutorial you should make more.. hell start a website??
scaperjoe 2 years ago
Hey vampie thanks for everything but now i want a jump and attack button. How can i do it
melovesdoritos 3 years ago
Can you please make another version of the video in which you can move up, down, left, and right; also I followed your tutorial, but my character keeps animating when it's still... and when I do up and down it does the same thing...
I used sprites for the animation
So what I'm saying is that I want to make the character move, but stays still if I don't press the arrow keys.
HerroRudi 3 years ago
Also I want the character facing the direction of the last key pressed (i.e. pressed up arrow key / character go up / release up arrow key / character face up idle)
HerroRudi 3 years ago
dude thats really easy, you need this code, hope you use them well,
up: _yscale=100;
down: _yscale=-100;
left: _xscale=-100;
right: _xscale=100;
VampieGames 3 years ago
The code didn't do much. Here's how I did mine. I picked a idle sprite (facing south), and made it into a symbol. Then I went inside the symbol and made 4 layers that contain positions (1 down, 2 up, 3 left, 4 right). The 5th is actions with the code [stop();] I made two frames for each. For down, 1st frame is down_still and 2nd is down_move. I did it for each of the 4 frames except the 5th. The movements are symbols while still is the idle frame direction. All of the layers are instances.
HerroRudi 3 years ago
Oops, I meant I made the frames instances (i.e. down_still and down_move)
The code works but not the way I wanted. Also if my process is too much then let me know.
What I am trying to animate is a pokemon sprite character. If it's no trouble, please make a tutorial about sprite movement with arrow keys. But yeah, I messed around a bit and came back for help.
HerroRudi 3 years ago
hey i dont get what you did in 5:00
and so now my character only moves from left to right but in the still position
melovesdoritos 2 years ago
**Error** Symbol=fred, layer=fred, frame=1:Line 1: Clip events are permitted only for movie clip instances onClipEvent(enterFrame){
Total ActionScript Errors: 1 Reported Errors: 1
i dont know what happened
rromano4444 3 years ago
you need to make the graphic *fred* a movie clip
VampieGames 3 years ago
I could see it said A square then FRED then another sqaure that said FRED_RIGHT
i only get the fred_right but i cant paste the scprit you gave on any movie clip called FRED
melovesdoritos 2 years ago
hey jamie u da best
mike5424 3 years ago
every time i do it he doesn't roll he just glides accross i have redone and redone this tutorial numerous times can you help me?
JnJvideos 3 years ago
hey do you know how to make the character move by clicking on an area and the character will go there
pivotmovieman 3 years ago
sure do :P
VampieGames 3 years ago
Thx for that tutorial ;)
MarlonBangie 3 years ago
thx :D
ziomexon 3 years ago
go to 5:46 to see what it will do!!!
VampieGames 3 years ago
LMAO :D
cocobean12096 3 years ago