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

Link to this comment:

Share to:

All Comments (374)

Sign In or Sign Up now to post a comment!
  • this is the crappy video ever

  • PUT THE GODAM CODE IN DESCRIPTION OR GET A BETTER CAM!!!

    i cant read the small written crap on ur computer... great tutorials tho :P

  • Can you tell me how I can make it to where I can buy an item and then itll apear in the inventory?I got the shop down so i know that but i wanna make the potion go in the inventory when bought

  • dude can you PLEASE put the code in the description so i can just copy/paste? i tried the codes u tell me to put in like 20 times and i end up with like 9 errors, thank you

  • What do you put in the action script I can't see!

  • @marthak2 Never Mind, I see.

  • since when the .found considered as a syntax?

  • fucking terrible

    vid sucks no explanations that help

    your voice is fucked up

    your site is in spanish or french and doesnt load compeltely

  • What do you type at 3:06 ??

  • @Omegamanuel you type in "stop();" but with outthe "" but it still dont work!! he should of put codes in description so we can copy and paste them. ive been trying to get this to work fro ages but i still cant do it!! pls help !!pbj746!!

  • This video sucks, put code in description and MAKE SURE IT IS RIGHT, I copied what i believe to be the EXACT code and it doesn't work. it says syntax errer with item._x = eval ("itemSlot") + currentslotnum)._x; and item._y = eval ("itemSlot") + currentslotnum)._y; you fail

  • function addToslot (item) { if (!item.found) { item._x = eval ("itemSlot" + currentslotnum)._x; item._y = eval ("itemSlot" + currentslotnum)._y; item.found = true; currentslotnum++; }

  • Comment removed

  • Comment removed

  • can you put the codes in the description?

  • code in annonation was wrong

  • this is by far the shittiest tutorial ever

  • do we call it itemslops? wtf it isnt working!

  • can u show the codes and everything cuz u caNT see anything

  • I have macromedia flash pro. 8. will this work with that?

  • @hedgehoggy147 It should, he is using flash pro 7. so yes, it would should/would work.

  • im not using cs3 and this works.....i hope the rest of the parts will be ok

  • how to make spawn menu?

  • does this wor for flash 8?

  • @luizsdocp

    sure

    it work in flash 8

    

  • i keep getting syntax errors on the main frame script says that the literal of line 5 could not be properly terminated

  • i cant understand this?!!!1

  • oh my fucking god you need to place annotions on the codes please

  • ......i cant get anybodys inventory system to work, ive tried several kinds..i have a stick figure @ 10.25 line size and he jst wont hitTest anything...i dont kno why...any suggestions??

  • you lost my vote on this one ya suck sucken sucker

  • I cant see wat it stand in 3:20?? Stop(3;????

  • Thank You! :D

  • in episode 1 i put the code for walking but it didnt work so i dont know wat program u used so can anyone tells me? i use FP8

  • in main timeline put actionscript :

    function addToSlot (item) {

    if (!item.found) {

    item._x = eval ("itemSlot) + currentslotnum)._x;

    item._y = eval ("itemSlot) + currentslotnum)._y;

    }

  • How come the item won't dissipear or pick up, ive checked all of the instance names and codes are all checked but it wont do anything

  • how to make walls

  • suckz

  • This bastard stole the code from a tutorial on Flashkit and remade it into his own. Worst of all he didn't give credit to the author.

  • @gamefreak1000000

    Actually, from Flashkit, the code was posted in 2008, this was posted in 2007... so you were wrong. Good job getting your facts straight.

  • There's more than one tutorial you moron, so how about YOU get your facts straight.

  • eh, okay, first of all, the amount of the tutorials DOESN'T matter, all that matters (according to your first comment) is that you think pbj746 stole this from someone else, so what you just said has nothing to do with what YOU want to know... confusion.

    Secondly, pbj746 gets his code theory from a book, how do I know this? I ASKED HIM. This is extremely simple code, 95% of game developers know this.

    Lastly, if your gonna argue, argue off of what you debate, not other peoples knowings.

  • @Manifest222 shhh, just watch

  • @Manifest222 what book is this from?

    i have been looking for a good Flash CS4 game coding book

  • @Manifest222

    What Book?

  • @gamefreak1000000 lol

    even if it's true - it's a simple code, you don't need uber brains for this. :>

  • wow mine picks it up but doesnt go to the slot...??

  • you should make a tutorial on how to use the items

  • the code won't work!!!!!!

  • this video sucks. You need to show the code close up cause the audio is bad and you cannot see what your typing.

  • man its hard to do with u saying the commands, i liked ur other vid for moving and jumping where it was close up.. u shud make this one like that... (Y) good vid tho

  • i don't hear all the code! i'm not so good at english, send the codes! :)

  • when he sais what sounds like: "evow", hes saying this: "eval";

  • Comment removed

  • can you send me are codes please

  • actionscript2 sucks

  • so does ur tutorials faggot

  • pfft, erick you have anger issues man.

  • hey all script works perfect. had some troubles letting it work, but eventualy step by stepits got in right order. pay atention to layers for stuff apearing in slots(bags) make them alpha 50% or so and you will see em there :P

  • how do you use the weapons in your inventory?

  • mine says when i test the movie

    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 6: Syntax error.  }

    Total ActionScript Errors: 5 Reported Errors: 5

  • what is the error???

  • the code in ur "flash rpg tutorial codes released' dont work

    wuld yu plz just write in in the desc =.="

  • Dude, I know It's easier to just explain vocally, but PLEASE just write down the script for it using annotations. PLEASE?

  • Actually this does work, he just screwed up this tutorial bad. So allow me to explain; Actionscript is very, VERY, case sensitive, so be sure to double check your instance names. Second, be sure to review the codes good, because there's a good chance that you could've made a mistake. If you're still stuck, PM me and I'll give you the code for the item slot.

  • It doesn't work man.

  • as2 or as3?

  • AS2

  • can you make a tutorial so when the player clicks the item in the inventory he holds it

  • put the codes in the discription

  • dude put the fucking codes in the desc , i got em all rong cause of you!

  • can u make screen wiht script you writed at 3:02 pleasE?

  • i followed your scripts, not the one in the beginning of the video, those dont work. but the other ones work

  • **Error** Scene=Scene 1, layer=Main, frame=2:Line 3: String literal was not properly terminated item._x = eval("itemSlot) + currentslotnum)._x;

    **Error** Scene=Scene 1, layer=Main, frame=2:Line 4: ')' or ',' expected item._y = eval("itemSlot) + currentslotnum)._y;

    **Error** Scene=Scene 1, layer=Main, frame=2:Line 5: ')' or ',' expected  item.found = true;

    Total ActionScript Errors: 3 Reported Errors: 3

    fail..

  • are you using as2 or as3

  • Good tutorial, although the errors in the bubbles make it very difficult to code.

    I have tried the way posted in the vid aswell as corrections posted on other comments, but I still have no luck.

  • *Good*

    lol

  • Got tut, but you had a lot of typing mistakes in the bubble, in the beging and you didn't include certain lines of code.

  • where is part one?

  • can somebody give me the code that he uses?

  • can anyone help me put this code the right way?

    function addToSlot (item {

    if (!item.found) {

    item._x=eval ("itemSlot) + currentslotnum)._x;

    item._y=eval ("itemSlot) + currentslotnum)._y; if (!item.found) {

    }

    i can't get it to work

  • see the ("itemSlot) ?? name it to ("itemslot") or whatever your itemslots instance name is. just without adding the number..

  • This would be quite helpful if you didn't teach bad habits via casual typos.

  • function addToSlot (item {

    if (!item.found) {

    item._x=eval ("itemSlot) + currentslotnum)._x;  item._y=eval ("itemSlot) + currentslotnum)._y; item.found=true;

    }

  • lol epic fail, got 7 errors

  • ok when i was adding the scores the item didnt show up but then i re did it and it went to the slot weird huh?

  • when I collect the item it just goes away and not in the item slot

  • make sure that the slots are on a lower layer than the items

  • after adding actionscript into frame 1 as asked:

    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: String literal was not properly terminated item._x = eval ("itemSlot) + currentslotnum)._x;

    (next post down)

  • **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 4: ')' or ',' expected item._y = eval ("itemSlot) + currentslotnum)._x;

    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 5: ')' or ',' expected item.found = true;

    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement block must be terminated by '}' function addToSlot(item){

    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 6: Syntax error. }

    Total ActionScript Errors: 5 Reported Errors: 5

  • its case sensitive :)

  • spart puting the codes in the descreption!!!!!!

  • it dont work 4 me cuz it sez somits wrong wid

    da function addToSlot(item) { thing so it don't work

  • youngskater10-

    when he says (item) he means whatever your item's instance name is in parenthesis. for example: if one of my items had an instance name of "orb", then i would put: addToSlot(orb){

  • you left script info out and therefore your script dosnt work, please revise these errors

  • ur fucking code sucks dick man fix it or...just fucking delete this video

  • i want like stick rpg yeah its not like any rpgs. How about charm? Strength Smarts

    also fightting turns???.

  • it's the instance names that are messing everyone up and for the "itemSlot" part of the code:

    item._x = eval ("itemslot) + (currentslotnum")._x;

    item._y = eval ("itemslot) + (currentslotnum")._y;

    be sure to use itemSlot or itemslot...whatever you called your symbol

  • i didnt work for the inventory and item thing

  • ok what is the right code then?

  • Inventory code i use: currentslotnum = 1; stop; function addToSlot(item){ if(!item.found){ item._x = eval ("itemslot) + (currentslotnum")._x; item._y = eval ("itemslot) + (currentslotnum")._y; item.found=true; currentslotnum ++ } }
  • Mine little item WONT GO UPP TO THE FCK SLOT!!!!!!! HELP! heres my codes i use, send me new if they are wrong!

    Item:

    onClipEvent (enterFrame) {

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

    _root.addToSlot(this);

    }

    }

  • Ok the code you provided for the inventory in the video doesn't work

  • heres the correct working code for the inventory without any errors currentslotnum = 1; stop; function addToSlot(item){ if(!item.found){ item._x = eval ("itemslot) + (currentslotnum")._x; item._y = eval ("itemslot) + (currentslotnum")._y; item.found=true; currentslotnum ++ } }
  • it has errors

  • mine wont go up and down, whats that for codes?

  • onClipEvent(enterFrame){

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

    _root.addToSlot(this);

    }

    }

    Where should i put in the " ???? HEEELP!!

  • when my character picks up the items they just disaper, help me and i'll subscribe to you.

  • dude you rock. Subed!

  • will this work on flash 8

  • yes but this video has all the codes wrong

  • do you know how a Mc_man can subroot to another frame when it touches another mc like.. Mc_door?

  • I lol'd. You forgot a " in your code.

  • onClipEvent(enterFrame){

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

    _root.addToSlot(this);

    }

    }

    this is my item but it doesn't seem to work... can you help

  • I apologize, the code isn´t the working one, the next post is the right one!!!

  • I got it!!! Here is the working code, tested and 100% working!!!: onClipEvent(enterFrame){ currentslotnum = 1; stop(); function addToslot(item) { if(!item.found) { item._x = eval ("itemSlot" + currentslotnum)._x; item._y = eval ("itemSlot" + currentslotnum)._y; item.found=true; currentslotnum++; } } }
  • thank you!

  • i love you...

  • ???

    you're a man or woman

  • Everything works but when i collect items they just dissapear.

  • same

  • ITEM CODE: onClipEvent(enterFrame) {

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

    _root.money +=10

    unloadMovie(this);

    }

    }

  • ive dont it and it says errors wich ive commented b4 and also my character doesnt pick up the items and i have named the instent name char and t still doesnt pick them up

  • help me i have errors

    **Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 1: '(' expected  on currentslotnum = 1;

    **Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 3: ')' expected function addToSlot1(item){if(!item.foun d){item._x=Itemslot1._x; item._y=Itemslot1._y; item.found=true;currentslotnum ++;}}

    how do i resolve this any sugestions

  • read anntonation at beggining it gives proper codes

  • ive put those codes in and it still dont work

  • wow thats amazing! i wanna be a game designer when i grow up and you a real inspiration to me :P

  • man give me a answer! why doesnt the scripts work! i even checked your tutorial codes thing and the link in the vid and STILL it doesnt work!!! how do i get the dammit script to WORK;(?

  • maybe you have and old version of flash or and older than his,

  • OLD? i got NEWER version and ALL the scripts should have worked its a mystery that they wont work and ye i checked my spelling 14 times i downlaoded RPG code notebook thing copied and still wrong:o

  • what the hell are the item commands?

  • bah i just CANT get it to work!! i tried 100 more times and the scripts dont work! please tell me what to do

  • i dont get it to work! i wrote all the scripts and drawed exactly like you did (after i failed one time) i drawed item slots but still wont work i but in all the scripts double checked and all but wont work... please help:o

  • What is the instance name of the slots man?

  • how do u put the item slots in the frame below the items like he does in the video

  • send me the code.

  • This one works currentslotnum = 1; stop(); function addToSlot(item) { if(!item.found) { item._x = eval ("itemSlot" + currentslotnum)._x; item._y = eval ("itemSlot" + currentslotnum)._y; item.found=true; currentslotnum++; } }
  • i have an idea put the script on the drscription!!!

  • i have an idea DO IT YOUR SELF

  • thanks for tLKIING

  • **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: String literal was not properly terminated item._x=eval("itemSlot)+curren­tslotnum._x;

    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 4: ')' or ',' expected item._y=eval("itemSlot)+curren­tslotnum._y:

    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 5: ')' or ',' expected

     item.found=true;

  • i'm getting errors on line 3. the output message says:

    Scene=Scene 1, Layer=Layer 1, Frame=1: Line 3: ';' expected Function addToSlot(item){

  • the function shouldn't be capitalized, ill post the script right here. currentslotnum = 1; stop(); function addToslot(item) { if(!item.found) { item._x = ("itemSlot"+currentslotnum)._x­; item._y = ("itemSlot"+currentslotnum)._y­; currentslotnum++; item.found = true; } }
  • When i copy/paste that script this comes -->

    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 5: There is no property with the name '_x'. item._x = ("itemSlot"+currentslotnum)._x ;

    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 6: There is no property with the name '_y'. item._y = ("itemSlot"+currentslotnum)._y ;

    Total ActionScript Errors: 2 Reported Errors:

  • seems almost like you were using actionscript 3.0

  • there is and actuall way to do this...I can't explain it

  • this is the actual way to do this retard.

  • for some reason my inventory wont work. can u check my script to see if its right or not??? Frame: currentslotnum = 1; stop(); function addToSlot(item){ if(!item.found){ item._x = eval (itemSlot) + currentslotnum._x; item._y = eval (itemSlot) + currentslotnum._y; item.found = true; } }
  • item:

    onClipEvent(enterFrame){

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

    _root.addToSlot(this);

    }

    }

  • the addtoslot should be like this:

    addToslot

    Not addToSlot,

    capitals mess up everything.

  • put this in. currentslotnum = 1; stop(); function addToslot(item) { if(!item.found) { item._x = ("itemSlot"+currentslotnum)._x­; item._y = ("itemSlot"+currentslotnum)._y­; currentslotnum++; item.found = true; } }
  • It didint work

  • the name on the character is character

  • then i put in the cood in the begining it is

    2 syntkax errors in the lines 6-7 on currentslotnum

    pbj746 can you give me the coode again plese. =)

  • what instance did he name the character???

  • char

  • code?

  • when I try the code I get two syntax errors on lines 6 & 7.

  • Omg post the dam code!

  • Nvm sorry

  • yeah, pbj you're forgetting to tell everyone about instances

  • when i try it it shows me this:

    1026: Constructor functions must be instance methods.

  • Turn the instance of the items into: item

    I guess

  • how do i put the boxes in a different layer?

  • post the damn script dude i love ur rpg vids but u need to post the scripts

  • my guy wont pick up items

  • i did everything you said and its not working do you type anything into the inventory boxes actions?

  • LAYER 1: currentslotnum = 1; stop (); function addToslot (item) { if (!item.found) { item._x = eval ("itemSlot" + currentslotnum)._x; item._y = eval ("itemSlot" + currentslotnum)._y; item.found = true; currentslotnum++; } } THERE YOU GO!!! ~Adamthegreat15 =] =] =]
  • thank you so much! you rock dude!

  • np man

  • thx dude. these really helped