i did what you I did exactly what you did and typed what you did, and when i walked up to my guy and pressed space, he told me to Halt...I think i created a guard O.o
this is my code for the Blue Guy : onClipEvent (enterFrame) { distance = 55; ux = _root.char._x; uy = _root.char._y; hx = this._x; hy = this._y; if (Math.sqrt((ux-hx)*(ux-hx)+(uy -hy)*(uy-hy))<distance && Key.isDown(Key.SPACE)) { _root.helpText.text = "Hello i am going to show you how to fly around the world.If you want to stop this conversations press ALT button on ur Keyboard"; } if(Key.isDown(Key.ALT)){ _root.helpText.text = ""; } }
i've realised something that this one you need flash cs3 because i used to have flash 8 and i tried it i didn't work. i got flash cs3 and it worked creepy eh? i think flash 8 doesn't have the multiplication sign * that mite be the problem pm me for scripts!i got it working like all the rpg tutorials this good guy has made!
I got errors ')' expected" with bo symbol and "Statement must appear within on/onClipEvent handler" and "Unexpected '}' encountered" TIP s check styntax after one or two lines of script
is there a way to call an animation where your character is at. Like if i had an video clip of a man standing and then i push the right arrow key i would like to have the running animation (i already made the animation) take place of the man standing and whenever i release i want it to go back to man standing can you please help me.
this is my code for the blue guy: onClipEvent (enterFrame) { distance = 55; ux = _root.char._x; uy = _root.char._y; hx = this._x; hy = this._y; if (Math.sqrt((ux-hx)*(ux-hx)+(uy-hy)*(uy-hy))<distance && Key.isDown(Key.SPACE)) { _root.helpText.text = "Hello i am going to show you how to fly around the world."; } }
onClipEvent (enterFrame) { distance = 55; ux = _root.char._x; uy = _root.char._y; hx = this._x; hy = this._y; if (Math.sqrt((ux-hx)*(ux-hx)+(uy-hy)*(uy-hy))<distance && Key.isDown(Key.SPACE)) { _root.helpText.text = "Hi"; } } but i dont know how to make it disappear also when it starts a _level0.helpText apears
alig96, What you can do is going onto youir health bar actions. the complete action would be: onClipEvent(enterFrame){ this._xscale = _root.hp; if(_root.hp<0){ _root.hp=0; } if(_root.character.hitTest(_root.health)){ this._xscale = 100; } } BTW "health" is the instance name of my health pack item. If somebody know how to make disappear the health pack item after, tell me
Hi Guys! I find a code to make the helpText appear!Its a bit different than PBJ's one tough. 1-Do the guide(dont worry about instance name for these actions 2-add these actions to the guide: onClipEvent(enterFrame){ if(_root.character._x<160){ if(Key.isDown(Key.SPACE)){ _root.helpText.text = "HI, I will help You in your quest"; _root.character._x = 160; _root.character._y = 275; } } } //this will place your player x and y correctly and the text will appear
Guys i found a new way to do Character Interactions, Instead of making it so that you have to have like, the ux and stuff. Just make a box around the helper or interacter, and make that box have an alpha of 0, and then tell the game to make it so u have to be touching that box which is invisable around the interacter to interact. I'll make a vid of it.
Do you think you could post up the code for the text? (Or at least the last part?) ^_^ Pretty please? Or could someone please email me the code. I've spent over a half an hour trying to figure out the last part. x_x
why are you assigning the distance variable inside the enterFrame clipEvent? It should be in a onLoad clipEvent or else it will set distance to 55 each frame.
can anyone help me i made a game with hp and mp but when you cast a spell you can still cast a spell whe on 0mp then it goes into minus so can anyone help?
mine ISENTworking 4 som reson i copyed the code ir100 commeted and still it aint working HELP ME PLZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZzzzzzzzz
Sometimes when you write the code you don't move your cursor to that area so we don't see what you typed. I love your tutorials, but could you fix that pretty please. :)
Bionicle_46@hotmail(dot)com and ill send u! ohyaeh here
onClipEvent (enterFrame) { distance = 50; ux = _root.c._x; uy = _root.c._y; hx = this._x; hy = this._y; if (Math.sqrt((ux-hx)*(ux-hx)+(uy-hy)*(uy-uy))<distance && Key.isDown(Key.SPACE)) { _root.helpText.text = "Hi I know The Secrets of Ultima Strength come with me to find out. To Exit=CTRL"; } if (Key.isDown(Key.CONTROL)) { _root.helpText.text = ""; }
i did what you I did exactly what you did and typed what you did, and when i walked up to my guy and pressed space, he told me to Halt...I think i created a guard O.o
2744spartan 1 year ago
lol 1:03 HELLO LORD
TheSonny00 1 year ago
the scroll bar doesn't work
WASApeoplz 1 year ago
thanks! great vid.
tyhrblade 1 year ago
arnold30303 2 years ago 4
@arnold30303 AWESOME DUDE!!!!!!!!!!!!!!!!
halo6wizdomify 1 year ago
i've realised something that this one you need flash cs3 because i used to have flash 8 and i tried it i didn't work. i got flash cs3 and it worked creepy eh? i think flash 8 doesn't have the multiplication sign * that mite be the problem pm me for scripts!i got it working like all the rpg tutorials this good guy has made!
happyman22341 2 years ago
onkeydown always better than if(Key.isDown())
altu892 2 years ago
Fix this dude. Waaaaay too many errors!
mk12121 2 years ago
I got errors ')' expected" with bo symbol and "Statement must appear within on/onClipEvent handler" and "Unexpected '}' encountered" TIP s check styntax after one or two lines of script
RNGbladestudios 2 years ago
the code on the beginning of your flash tutorials are always different from the ones you use. FIX THIS!!!
everything else is perfect on all of your flash tutorials:)
pasokd 2 years ago
Comment removed
pasokd 2 years ago
thanks a lot !
wilayafr 2 years ago
is this for cs4? its not working
ThozmleDomre 2 years ago
actionscript 2.0 not 3.0
pasokd 2 years ago
lol you cut yourself off
XsoulniteX 2 years ago
is there a way to call an animation where your character is at. Like if i had an video clip of a man standing and then i push the right arrow key i would like to have the running animation (i already made the animation) take place of the man standing and whenever i release i want it to go back to man standing can you please help me.
technodob 2 years ago
Comment removed
SNP621 2 years ago
Comment removed
SNP621 2 years ago
what was the last line!!!?!???? :( you didnt move your mouse!!
lurviQ 2 years ago
Aaaaa,, i have the option workspace :D
mm, well, thank for the tutorial.
FeRcHoXSS 2 years ago
hey! I do not have the option Workspace .. :S
where is?
FeRcHoXSS 2 years ago
flash 8?
flash mx?
flash cs3?
flash cs4?
...
altu892 2 years ago
any flash that has actionscript 2.0. he use flash cs3
pasokd 2 years ago
CS3
RNGbladestudios 2 years ago
aaggh! dude you screwd up the camera! we cant see the text!
ianh97 2 years ago
What is the code to make the words appear, i couldnt see it....?
ZvilleCows 2 years ago
to make the words appear, you just type.
_root.helpText.text = "hello";
Reff2 2 years ago
is this AS2 or AS3?
SAINTsoldi 2 years ago
can you plz send the coDE PLZ!!!!!!!!!
PurePwnage20 2 years ago
how many parts are there? only 5? some1 answer plz
SAINTsoldi 3 years ago
there are 8
ZvilleCows 2 years ago
oran3e1 3 years ago
can you send me that please ?
PurePwnage20 2 years ago
dude Could you post the actionscript coz you didnt move the screen so i could see the as ;)
thanks
LsDesigns13 3 years ago
This has been flagged as spam show
creator548 3 years ago
**Error** Scene=Scene 1, layer=Layer 1, frame=2:Line 1: Statement block must be terminated by '}' onClipEvent(enterFrame) {
**Error** Scene=Scene 1, layer=Layer 1, frame=2:Line 9: Syntax error. }
Total ActionScript Errors: 2 Reported Errors: 2
tarey13 3 years ago
Can any1 send me the good code?
tarey13 3 years ago
Hey PBJ i saw you had a health item wat would be the script for it cuz i tried:
onClipEvent(enterFrame) {
if(_root.hp.hitTest(this)) {
if(_root.hp <50);
_root.hp = +50;
unloadMovie(this);
}
}
alig96 3 years ago
MaitreEauEau123 3 years ago
ty and btw if you want it to disipear type:
unloadMovie(this);
alig96 3 years ago
oops i put my comment as Spam =S
i wanted to say that the
"Do the guide" is actually create a man that will be a guid
MaitreEauEau123 3 years ago
for the text, you have to do like PBJ said
so add a dinamic text(instance name"helpText")
put it bottom of screen
and that's it
MaitreEauEau123 3 years ago
MaitreEauEau123 3 years ago
Do the guide is create a guide
MaitreEauEau123 3 years ago
Can Somebody Write Teh Complete Code Here PLZZ!!
IM Trying To Get It But I Cant Understand!
And BTW Congratulation PBJ746 Really Good Tutorials!!
MaitreEauEau123 3 years ago
i really need that code stat!
plz reply!
dirryl 3 years ago
wouldnt it be easier to just do a hitTest(_root.char) ?
ZayLong 3 years ago
send me the code.
FeRcHoXSS 3 years ago
i get this at 1.42 - 5.12
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Clip events are permitted only for movie clip instances onClipEvent(enterFrame) {
Total ActionScript Errors: 1 Reported Errors: 1
GGMadMan 3 years ago
because your suposed to enter the frame #
thithimimi 3 years ago
thanks :)
GGMadMan 3 years ago
man all of u ppl are lazy if u want to make a game u won't beable to put copy paste and that's it that is really easy so plz ppl don't be lazy
Renkay141 3 years ago
that made no sence at all
fishyentertainment 3 years ago
I already know that all but.. BO?! LOL
Stickman917 3 years ago
Guys i found a new way to do Character Interactions, Instead of making it so that you have to have like, the ux and stuff. Just make a box around the helper or interacter, and make that box have an alpha of 0, and then tell the game to make it so u have to be touching that box which is invisable around the interacter to interact. I'll make a vid of it.
Manifest222 3 years ago
Thanks!
Manifest222 3 years ago
....you seriously expect me to write all that crap down? PUT IT IN THE DESCRIPTION!!!
metamano 3 years ago 3
@metamano You don't actually learn unless you copy it yourself...
alexk175 1 year ago
Do you think you could post up the code for the text? (Or at least the last part?) ^_^ Pretty please? Or could someone please email me the code. I've spent over a half an hour trying to figure out the last part. x_x
Wuzzly 3 years ago
what did you say when the cam was on the right when you were typing on the left?
PivotyPivoty 3 years ago
SRSLY SOMEONE PM ME WITH THE CODE??
asaclardy 3 years ago
at 6:40 you can see the other half of the code. i just watched it yesterday
PivotyPivoty 3 years ago
thx i was confused
scottycd 3 years ago
your videos really are helping me! thx
PivotyPivoty 3 years ago
wow first time I got flash I din't understand what u wehere saying(wiriting) but now that I'm not a nob anymore I can understand IS VERY HELPFULL MAN
chttli 3 years ago
u type fast
djdawkins36 3 years ago
what script do i use if I want something to happen when a person uses the '1' key?
thejlcman 3 years ago
Scene=Scene 2, Layer=Layer 3, Frame=96: Line 7: '(' expected if Math.sqrt((ux-hx)*(ux-hx)+(uy-hy)*(uy-uy))<distan ce && Key.isDown(Key.BACKSPACE) {
is it becaouse im using flash 5?
kuromaru00 3 years ago
Clipboard Actions: Line 2: Statement must appear within onClipEvent handler OnClipEvent (enterFrame) { ??
kuromaru00 3 years ago
Wow, you should at least revise this and be better at this crap faggot.
NicholasSta 3 years ago
why are you assigning the distance variable inside the enterFrame clipEvent? It should be in a onLoad clipEvent or else it will set distance to 55 each frame.
8Blaze 3 years ago
How can we see you typing while your recording the right side while your typing on the left side?
Inzuki 3 years ago
or give us some links to sites with codes
stickmanaxis 4 years ago
can u make a tut on how to make swords and the health thing
stickmanaxis 4 years ago
whe is when sorry
tomowen101 4 years ago
can anyone help me i made a game with hp and mp but when you cast a spell you can still cast a spell whe on 0mp then it goes into minus so can anyone help?
tomowen101 4 years ago
Did you set it to MP = 0 or MP <= 0? 'Cause if the less than symbol isn't there apparently it does that...
ilovenuts 4 years ago
thankyou
tomowen101 4 years ago
wow
can you help me with casting spells?
dsgamez 3 years ago
I COMMENTED IT ISIN'T SHOWING!!!!!!!!!
i said "are you fixing tutorial 2?"
killerdoom2 4 years ago
why should he?
tutorial 2 is fine for me and many others ..
dsgamez 3 years ago
dude!!! thnx this help alot..xD!!!!!
valorit 4 years ago
mine ISENTworking 4 som reson i copyed the code ir100 commeted and still it aint working HELP ME PLZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZzzzzzzzz
UPCE 4 years ago
on the bottom line it should be Math.sqrt.helpText.txt
then its:
onClipEvent(enterFrame)( distance = 55;
ux = _root.char.x;
uy = _root.char.y;
hx = this._x
hy = this._y
if(Math.sqrt((ux-hx)*(ux-hx)+(uy-hy)*(uy-hy))<distance && Key.isDown (Key.SPACE)) (
Math.sqrt.helptxt.txt=.text= "hello!"
ryancullen95 4 years ago
dude you should do the spacing and the lines(Enter)
gunfr34k4z01d 3 years ago
Sometimes when you write the code you don't move your cursor to that area so we don't see what you typed. I love your tutorials, but could you fix that pretty please. :)
sylphmw 4 years ago 3
Um... I made mine where you could jump from your tutorial, and when I go up to the man nothing happens.
Lin3freak 4 years ago
what key did you use to make him jump
if its the space bar your going to have to change what key is pressed to talk to the man
pbj746 4 years ago
if u wanna know the code and some other...
Bionicle_46@hotmail(dot)com and ill send u! ohyaeh here
onClipEvent (enterFrame) { distance = 50; ux = _root.c._x; uy = _root.c._y; hx = this._x; hy = this._y; if (Math.sqrt((ux-hx)*(ux-hx)+(uy-hy)*(uy-uy))<distance && Key.isDown(Key.SPACE)) { _root.helpText.text = "Hi I know The Secrets of Ultima Strength come with me to find out. To Exit=CTRL"; } if (Key.isDown(Key.CONTROL)) { _root.helpText.text = ""; }
}
lr1100 4 years ago
member to use auto format!!!
lr1100 4 years ago
on find out it has to be a line up sry
lr1100 4 years ago
dude you should do the lines correctly(Enter)
gunfr34k4z01d 3 years ago
its becuase you did it wrong.
pbj746 4 years ago
HI can u give me the who Action scrip plz Bionicle_46@hotmail?(dot)com
lr1100 4 years ago