I'm having a slight problem myself. I got everything to work, the character movement, the coins and scoring, but there's this problem that driven me nuts!
I have 3 coins on the field and when my character puts up the first one it gets all of the OTHER coins' points so instead of getting 10 points from one coin I get 30 and I cannot touch the other coins.
And when I grab them it doesn't work unlike the first one! What did I do wrong to get this error? Please PM me to help resolve this issue.
Im trying to make a game and i have an enemy, money, and a health bar.
I made it so that when your health reaches zero, it goes to a screen that says "You Lose". I am wondering what I need to do that would make it go to level two when the money reaches 100.
you know, you should really be really specific about you're typing like in the begining script you put a , instead of a . and also in that script you had a S instead of a s for score, so i had to tweak with the script a bit but in fact, it did work thanks =D
it's not working for me... i've watched the video about 5 times, changed the actionscript, about 40 something times and am still trying to get this to work... if anybody could help it would be greatly appreciated!
1 question, is this only for flash CS3 or can it work on proffesianal 8. im having trouble and if anyone could help i would be obliged. i might even subscribe
This video sucks ass.. your 1st one was verry good help but you dont fucking tell us the whole script...yea... it dont help at all.... you dont even say the whole script...
Ok I managed to get this working really well, I even messed around with the codes and enabled that even the enemy and my character gets unloaded after my hp is less than or equal to 0. But the problem is score now, I want to make it so I get however many scored points I put down after I have the enemys hp go all the way down and it unloads. But that isnt happening, Im getting score while in contact with the enemy. So what I'm asking is PLZ TELL ME HOW TO GET SCORE AFTER KILLING THE ENEMY!
I caught on, finally, you have to put the name of the variable textbox (the dynamic textbox) and make it equal to 0, therefore telling the script that it is NOT a string, but a variable number. In this case the line must say: "_root.score=0;" THX PBJ, and of course, the fans.
whats the code if you want to make a shooter game, you shoot something and the score increases, how do you do that? i tried but i cant do it :(. thanks to any that can help me out.
Hey pbj, cud u mail me all the important stuff like what u put in the var box n stuff like that plz, and the inventory code aswell, cuz it was better when u wrote it
I'm having a slight problem myself. I got everything to work, the character movement, the coins and scoring, but there's this problem that driven me nuts!
I have 3 coins on the field and when my character puts up the first one it gets all of the OTHER coins' points so instead of getting 10 points from one coin I get 30 and I cannot touch the other coins.
And when I grab them it doesn't work unlike the first one! What did I do wrong to get this error? Please PM me to help resolve this issue.
VirusChris 1 year ago
the script code:
onClipEvent(enterFrame){ if(_root.char.hitTest(this)){ _root.score+=15; unloadMovie(this); }
}
frame script:
score = 0;
dynamic text 'var':
_root.score
leokful 1 year ago
hey,
Im trying to make a game and i have an enemy, money, and a health bar.
I made it so that when your health reaches zero, it goes to a screen that says "You Lose". I am wondering what I need to do that would make it go to level two when the money reaches 100.
Help would be appreciated
Thanks!
udderj 1 year ago
i have a small problem, my char can collect the money, but it doesn't count towards the score, how do i fix this?
2744spartan 1 year ago
Can I control how much the enemie damage me? would like to do that different enemies cause different damage
snattaren92 1 year ago
how about character creation? how do you do that?
SuperBisky 2 years ago
try setting in the timeline frame
Ammo = 20;(or whatever amount u want)
Score = 0;
and On(release){ instead onclipevent if u want it only on clicking of enemy but thats just a guess u can try it
Moldysquirral 2 years ago
mine isnt workin...when i touch the coin it does nuthin
zeron1231 2 years ago
you know, you should really be really specific about you're typing like in the begining script you put a , instead of a . and also in that script you had a S instead of a s for score, so i had to tweak with the script a bit but in fact, it did work thanks =D
Skedist 2 years ago
have you changed the score box to dynamic text not static or input?
activeellis 2 years ago
Great Now at de end how do you do with those 2 balls.
FlashEpics 2 years ago
hey i have a problem wen i touch the coin it it tells on the score nan.what do i do?help!!!
alonso679 2 years ago
you havnt out in the frame that your score is 0,
go to your frame and type;
score = 0
then retry and you should get it working
FLAMERAMPAGE 2 years ago
can i ask? why does when i touch the coin it doesn't put score(i put variable{var})
pcaterbas 2 years ago
onClipEvent(enterFrame) {
if (_root.char.hitTest(this)) {
_root.score += 10;
unloadMovie(this)
}
}
xD jeje
FeRcHoXSS 2 years ago
lol a dog
killerchicken750 3 years ago
every time i roll over them it says "NaN" how do do fix this?
HaLO3gamer91 3 years ago
what if i want to click the coin instead of rolling onto it?
HaLO3gamer91 3 years ago
Thank's man! I love you! Haha!
DJ2109 3 years ago
Hey Guys Any 1 whos struggling: her is wat goes on the coin:
onClipEvent(enterFrame) {
if(_root.char.hitTest(this)) {
_root.score += 10;
unloadMovie(this);
}
}
alig96 3 years ago
rofl I thought i heard a dog barking in the first few secs
Sa1Productions 3 years ago
3:10 test
10dog102 3 years ago
on 3:40
what is the code?
FeRcHoXSS 3 years ago
umm mine are gone when i go over but the score says NaN
wtf?????
animation7king 3 years ago
it's not working for me... i've watched the video about 5 times, changed the actionscript, about 40 something times and am still trying to get this to work... if anybody could help it would be greatly appreciated!
WhoCaresProductions7 3 years ago
I've been watching a shooting game tut and i was wondering how I'd make it so that when i shot the target i get a point.
on (release){ gotoAndPlay (2);
if(_root.cross.hitTest(this)){
_root.score+=15;
unloadMovie(this);
}
}
my script didnt work lol
vulcant13 3 years ago
i think its the hitTest thingy
vulcant13 3 years ago
Hey when i get the money, it says NaN (i think meens Not acceptable Name)
Manifest222 3 years ago
NaN = Not a Number
Archxonus 3 years ago
omg underscore dot RRRRRRRRRRR XD
killerz104 3 years ago
Terrible Mic, but good tut
JSKDirect 3 years ago
Wat if it all works but wen i go over one it goes up by two and then the other but it doesnt go up??
Pizzaguy0404 3 years ago
I have to admit this video is very hard to hear so i went through the trouble of finding what the script is just for you guys:
onClipEvent(enterFrame) {
if(_root.char.hitTest(this)) {
_root.score +=10
unloadMovie(this);
}
}
that is the code for the coin but i dont no why but it just goes 10 - 1010 - 101010 instead of actuall 10-20-30
;) need more help pm me
dorkisu 3 years ago 3
try switching the += to =+10
PivotyPivoty 3 years ago
switch the += to =+
i did that and it worked
PivotyPivoty 3 years ago
i need your help.
in the end, the script makes an action to "Character" which is for the currency to touch up the score, which is that code?
FeRcHoXSS 3 years ago
does this work in flash 8.0 - actionscript 2.0?
WhoCaresProductions7 3 years ago
yes
PivotyPivoty 3 years ago
doesn't work
PivotyPivoty 3 years ago
never mind, i got it
PivotyPivoty 3 years ago
how can i keep the score from going into negatives?
djdawkins36 3 years ago
crap utube dsn't work.
those two are 4 BrianMorbridge
reallylamevideos 3 years ago
i cant read the script! gd12103 is awesome!
djdawkins36 3 years ago
With this guide you will learn how to make the ultimate flash rpg game. Well-explained and very cheap, only 1 dollar!
m a k e f l a s h r p g . c o . c c
CoderSal 3 years ago
Here is the code for anyone who has problems with it:
onClipEvent(enterFrame) {
if(_root.char.hitTest(this)) {
_root.score +=10
unloadMovie(this);
}
}
gd12103 3 years ago
one problem.
If i hit the coin and my score says 10,it says 1010
BlockBusterRama 3 years ago
i know a much easier way to make a scoring system
soooooooooo much easier than this!
i also know how to do xp and leveling up and stuffs
BrianMorbridge 3 years ago
Thats nice..how about you post a video tutorial to show us your awesome actionscripting skills. =/
ChazDragoon 3 years ago
coz im too busy doing my Astro Mechanics course...
it;s a long course...:P
BrianMorbridge 3 years ago
coz im too busy doing my Astro Mechanics course...
it;s a long course...:P
BrianMorbridge 3 years ago
I'm to busy doubting you.
reallylamevideos 3 years ago
I'm to busy doubting you
reallylamevideos 3 years ago
To make it easier put the ACTIONSCRIP on the more info section.......
kuromaru00 3 years ago
dude i cant read the script!!!!!
xxmatthewii 3 years ago
great tut
esproman 3 years ago
1 question, is this only for flash CS3 or can it work on proffesianal 8. im having trouble and if anyone could help i would be obliged. i might even subscribe
thejlcman 3 years ago
thx. although i couldn't read it on the videos, with people's comments this vid was helpful. thx so much. u rock
mariofreaky 3 years ago
This video sucks ass.. your 1st one was verry good help but you dont fucking tell us the whole script...yea... it dont help at all.... you dont even say the whole script...
BackrockCo 3 years ago
dun scold ppl suck ass....especially when u r noob at actionscripts...anyways,here's another type of actionscript....
create a text (dynamic text)....in the 'var' bar, name it 'score'(or anything u like),
goes to the frame:
score=0;
now create an item(movieclip)
in it type:
onClipEvent(enterFrame){
if(_root.char.hitTest(this)){ _root.score+=10;
}
}
3dw1n94 3 years ago 6
Ok I managed to get this working really well, I even messed around with the codes and enabled that even the enemy and my character gets unloaded after my hp is less than or equal to 0. But the problem is score now, I want to make it so I get however many scored points I put down after I have the enemys hp go all the way down and it unloads. But that isnt happening, Im getting score while in contact with the enemy. So what I'm asking is PLZ TELL ME HOW TO GET SCORE AFTER KILLING THE ENEMY!
blockdrogon 3 years ago
oh srry, not just my hp, the enemys hp to XD
blockdrogon 3 years ago
Bark Bark XD
PJJMDCC 4 years ago
What is the code for the frame? ):
Inzuki 4 years ago
you should really put the instructions in the description for the video, it's impossible to follow it all.
thumtacks 4 years ago
I caught on, finally, you have to put the name of the variable textbox (the dynamic textbox) and make it equal to 0, therefore telling the script that it is NOT a string, but a variable number. In this case the line must say: "_root.score=0;" THX PBJ, and of course, the fans.
cliffordex 4 years ago
I'm confused on the whole coin thing, i put the score=0 thing in, but it still... 2+2=22 10+10=1010
=S
cliffordex 4 years ago
me too!!!!
scottykal12 3 years ago
whats the code if you want to make a shooter game, you shoot something and the score increases, how do you do that? i tried but i cant do it :(. thanks to any that can help me out.
vmistry94 4 years ago
what did he type on the last frame thing multiscore what ????
Jaych4 4 years ago
what did you say by the var option
pro1master 4 years ago
Here is the code for anyone who has problens whith it:
onClipEvent(enterFrame) {
if(_root.char.hitTest(this)) {
_root.score +=10
unloadMovie(this);
}
}
WowZues 4 years ago
Hey pbj, cud u mail me all the important stuff like what u put in the var box n stuff like that plz, and the inventory code aswell, cuz it was better when u wrote it
vidEOkid12345 4 years ago
ir the var box?
it was _root.score
FlashDuDe33 4 years ago
i couldnt hear the whole code could u mail it to me
brucele147 4 years ago
SUPER OMG THE SCRIPT THAT HE ADDED FOR THE FRAME IS score=0
I BET UR DEAF PPL
brokenheart1996 4 years ago
Could you mail me the script you posted in the frame, plz?
HDprojects 4 years ago
wats the code u put in the frame?
ryancullen95 4 years ago
I'm so close but when It goes over the coin it add the two number like letter. 2+2=22 but it is supposed to be 2+2=4 anyone know how to fix it?
firexxx555 4 years ago
same SOBER(amus)
isaaccade 4 years ago
Here is the code for anyone who has problens whith it:
onClipEvent(enterFrame) {
if(_root.char.hitTest(this)) { _root.score +=10 unloadMovie(this);
}
}
magumanu00 4 years ago
doesn't pbj746 SAY all the coding as he does it?
Luther92 4 years ago
Yes but its hard to tell if theres brackets, etc
Sian103 4 years ago
could you give my the codes?
CJNBrothers 4 years ago
Could you post the codes plz
or just pm my file...
CJNBrothers 4 years ago
Fck I can't see anything and you don't post the script!
What am I to do :(
Shanto420 4 years ago
plz post script or mail me at
alstertheonly@hotmail(dot)co(dot)uk
ATOPAlstertheonly 4 years ago
me too pls ^^"
DenisFire@gmxde
Rm2k3 4 years ago
cant see any of the script, and cant hear u saying whats needed after hitTest thing.
Mind sending the code to KickazzK@hotmail(dot)com
Kian105 4 years ago
post Action Script PLZ PLZ or Email me at bionicle_46@hotmail(dot)com and plz send help for INVENTORY plz TY
lr1100 4 years ago
post Action Script PLZ PLZ or Email me at bionicle_46@hotmail(dot)com
lr1100 4 years ago
i would but i cant
the comment system wont let me post it anymore.. neither will the description.
pbj746 4 years ago
Can you send it via YouTube mail? Or email?
If not through youtube it's dclarke213_95@yahoo(dot)com
doombunny3 4 years ago
Can't you put it in the video like you did in the others? =S
Sian103 4 years ago
hey can you post what you script text you put in the coin and what you put in the keyframe actions... i tryed pausing it but i cant read the text...
max2damax 4 years ago
you know you could just pause the movie as well.
pbj746 4 years ago
sure
pbj746 4 years ago
hey i have a hard time keeping up with what you doing and if you could like maby semd me an e-mail or message like this
video #1
--------------------
(the script used)
Video #2
-----------------
(script used)
if its not to much trouble
E-mail ryano805@yahoo(dot)com
rino152 4 years ago