Added: 4 years ago
From: pbj746
Views: 16,156
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (100)

Sign In or Sign Up now to post a comment!
  • 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.

  • the script code:

    onClipEvent(enterFrame){ if(_root.char.hitTest(this)){ _root.score+=15; unloadMovie(this); }

    }

    frame script:

    score = 0;

    dynamic text 'var':

    _root.score

  • 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!

  • i have a small problem, my char can collect the money, but it doesn't count towards the score, how do i fix this?

  • Can I control how much the enemie damage me? would like to do that different enemies cause different damage

  • how about character creation? how do you do that?

  • 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

  • mine isnt workin...when i touch the coin it does nuthin

  • 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

  • have you changed the score box to dynamic text not static or input?

  • Great Now at de end how do you do with those 2 balls.

  • hey i have a problem wen i touch the coin it it tells on the score nan.what do i do?help!!!

  • 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

  • can i ask? why does when i touch the coin it doesn't put score(i put variable{var})

  • onClipEvent(enterFrame) {

    if (_root.char.hitTest(this)) {

    _root.score += 10;

    unloadMovie(this)

    }

    }

    xD jeje

  • lol a dog

  • every time i roll over them it says "NaN" how do do fix this?

  • what if i want to click the coin instead of rolling onto it?

  • Thank's man! I love you! Haha!

  • 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);

    }

    }

  • rofl I thought i heard a dog barking in the first few secs

  • 3:10 test

  • on 3:40

    what is the code?

  • umm mine are gone when i go over but the score says NaN

    wtf?????

  • 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!

  • 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

  • i think its the hitTest thingy

  • Hey when i get the money, it says NaN (i think meens Not acceptable Name)

  • NaN = Not a Number

  • omg underscore dot RRRRRRRRRRR XD

  • Terrible Mic, but good tut

  • 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??

  • 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

  • try switching the += to =+10

  • switch the += to =+

    i did that and it worked

  • 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?

  • does this work in flash 8.0 - actionscript 2.0?

  • yes

  • doesn't work

  • never mind, i got it

  • how can i keep the score from going into negatives?

  • crap utube dsn't work.

    those two are 4 BrianMorbridge

  • i cant read the script! gd12103 is awesome!

  • 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

  • Here is the code for anyone who has problems with it:

    onClipEvent(enterFrame) {

    if(_root.char.hitTest(this)) {

    _root.score +=10

    unloadMovie(this);

    }

    }

  • one problem.

    If i hit the coin and my score says 10,it says 1010

  • 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

  • Thats nice..how about you post a video tutorial to show us your awesome actionscripting skills. =/

  • coz im too busy doing my Astro Mechanics course...

    it;s a long course...:P

  • coz im too busy doing my Astro Mechanics course...

    it;s a long course...:P

  • I'm to busy doubting you.

  • I'm to busy doubting you

  • To make it easier put the ACTIONSCRIP on the more info section.......

  • dude i cant read the script!!!!!

  • great tut

  • 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

  • thx. although i couldn't read it on the videos, with people's comments this vid was helpful. thx so much. u rock

  • 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...

  • 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;

    }

    }

  • 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!

  • oh srry, not just my hp, the enemys hp to XD

  • Bark Bark XD

  • What is the code for the frame? ):

  • you should really put the instructions in the description for the video, it's impossible to follow it all.

  • 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.

  • 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

  • me too!!!!

  • 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.

  • what did he type on the last frame thing multiscore what ????

  • what did you say by the var option

  • Here is the code for anyone who has problens whith it:

    onClipEvent(enterFrame) {

    if(_root.char.hitTest(this)) {

    _root.score +=10

    unloadMovie(this);

    }

    }

  • 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

  • ir the var box?

    it was _root.score

  • i couldnt hear the whole code could u mail it to me

  • SUPER OMG THE SCRIPT THAT HE ADDED FOR THE FRAME IS score=0

    I BET UR DEAF PPL

  • Could you mail me the script you posted in the frame, plz?

  • wats the code u put in the frame?

  • 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?

  • same SOBER(amus)

  • Here is the code for anyone who has problens whith it:

    onClipEvent(enterFrame) {

    if(_root.char.hitTest(this)) { _root.score +=10 unloadMovie(this);

    }

    }

  • doesn't pbj746 SAY all the coding as he does it?

  • Yes but its hard to tell if theres brackets, etc

  • could you give my the codes?

  • Could you post the codes plz

    or just pm my file...

  • Fck I can't see anything and you don't post the script!

    What am I to do :(

  • plz post script or mail me at

    alstertheonly@hotmail(dot)co(d­ot)uk

  • me too pls ^^"

    DenisFire@gmxde

  • 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

  • post Action Script PLZ PLZ or Email me at bionicle_46@hotmail(dot)com and plz send help for INVENTORY plz TY

  • post Action Script PLZ PLZ or Email me at bionicle_46@hotmail(dot)com

  • i would but i cant

    the comment system wont let me post it anymore.. neither will the description.

  • Can you send it via YouTube mail? Or email?

    If not through youtube it's dclarke213_95@yahoo(dot)com

  • Can't you put it in the video like you did in the others? =S

  • 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...

  • you know you could just pause the movie as well.

  • sure

  • 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

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more