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
@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
......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??
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.
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
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
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.
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){
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 ++ } }
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
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;(?
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
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
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; } }
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; } }
this is the crappy video ever
ayon49 5 months ago
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
kdizzletotheshizzle 6 months ago
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
MrEpicFlashes 8 months ago
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
KurzajaMan 10 months ago
What do you put in the action script I can't see!
marthak2 1 year ago
@marthak2 Never Mind, I see.
marthak2 1 year ago
since when the .found considered as a syntax?
just121591 1 year ago
fucking terrible
vid sucks no explanations that help
your voice is fucked up
your site is in spanish or french and doesnt load compeltely
bigfanowarriors 1 year ago
What do you type at 3:06 ??
Omegamanuel 1 year ago
@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!!
ihackedz 1 year ago
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
santagotback101 1 year ago
function addToslot (item) { if (!item.found) { item._x = eval ("itemSlot" + currentslotnum)._x; item._y = eval ("itemSlot" + currentslotnum)._y; item.found = true; currentslotnum++; }
Nostic111 1 year ago
This has been flagged as spam show
The Correct code IS.
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++; }
}
And for the items its
onClipEvent(enterFrame) { if(_root.character.hitTest (this)){ _root.addToSlot (this); }
}
This should the the correct code, and worked for me :)
totallymady 1 year ago
Comment removed
totallymady 1 year ago
Comment removed
totallymady 1 year ago
Comment removed
totallymady 1 year ago
Comment removed
totallymady 1 year ago
Comment removed
totallymady 1 year ago
Comment removed
totallymady 1 year ago
Comment removed
totallymady 1 year ago
can you put the codes in the description?
2744spartan 1 year ago
code in annonation was wrong
zallazum 1 year ago
this is by far the shittiest tutorial ever
MrAnonymous9898 1 year ago
do we call it itemslops? wtf it isnt working!
MrAnonymous9898 1 year ago
can u show the codes and everything cuz u caNT see anything
aqworldsprince 1 year ago
I have macromedia flash pro. 8. will this work with that?
hedgehoggy147 1 year ago
@hedgehoggy147 It should, he is using flash pro 7. so yes, it would should/would work.
inoshikasakunaru 1 year ago
im not using cs3 and this works.....i hope the rest of the parts will be ok
unoriginality1 1 year ago
how to make spawn menu?
efrepall 1 year ago
does this wor for flash 8?
luizsdocp 1 year ago
@luizsdocp
sure
it work in flash 8
efrepall 1 year ago
i keep getting syntax errors on the main frame script says that the literal of line 5 could not be properly terminated
dylloop 1 year ago
i cant understand this?!!!1
crazysonyXya 1 year ago
oh my fucking god you need to place annotions on the codes please
swithblade15 1 year ago
......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??
YoshiJumper 1 year ago
you lost my vote on this one ya suck sucken sucker
TAXME1 1 year ago
I cant see wat it stand in 3:20?? Stop(3;????
trollkarl3 1 year ago
Thank You! :D
nuggetdeboner 1 year ago
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
FlashTheHedgehog234 1 year ago
in main timeline put actionscript :
function addToSlot (item) {
if (!item.found) {
item._x = eval ("itemSlot) + currentslotnum)._x;
item._y = eval ("itemSlot) + currentslotnum)._y;
}
MajorAlbo 1 year ago
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
bennythebull9 2 years ago
how to make walls
123dojjan 2 years ago
suckz
bobwii111 2 years ago
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 2 years ago
@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.
Manifest222 1 year ago
There's more than one tutorial you moron, so how about YOU get your facts straight.
gamefreak1000000 1 year ago
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 1 year ago 10
@Manifest222 shhh, just watch
Hadyy13 1 year ago
@Manifest222 what book is this from?
i have been looking for a good Flash CS4 game coding book
Brucy6666 1 year ago
@Manifest222
What Book?
Dorian00001 6 months ago
@gamefreak1000000 lol
even if it's true - it's a simple code, you don't need uber brains for this. :>
Seryosin 1 year ago
wow mine picks it up but doesnt go to the slot...??
prokid585 2 years ago
you should make a tutorial on how to use the items
coolzidedown 2 years ago
the code won't work!!!!!!
lowfundsfilms 2 years ago
this video sucks. You need to show the code close up cause the audio is bad and you cannot see what your typing.
Kador11 2 years ago 5
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
BalymTube 2 years ago
i don't hear all the code! i'm not so good at english, send the codes! :)
MrAbbe800 2 years ago
when he sais what sounds like: "evow", hes saying this: "eval";
Manifest222 2 years ago
Comment removed
zeron1231 2 years ago
can you send me are codes please
yefferman 2 years ago
actionscript2 sucks
Manifest222 2 years ago
so does ur tutorials faggot
PivotyPivoty 2 years ago 2
pfft, erick you have anger issues man.
Manifest222 2 years ago
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
Raggnarr13 2 years ago
how do you use the weapons in your inventory?
FlyingSquirrellss 2 years ago 2
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
jackoisher 2 years ago
what is the error???
altu892 2 years ago
the code in ur "flash rpg tutorial codes released' dont work
wuld yu plz just write in in the desc =.="
XdBoredXd 2 years ago 3
Dude, I know It's easier to just explain vocally, but PLEASE just write down the script for it using annotations. PLEASE?
linkdamasta 2 years ago
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.
gamefreak1000000 2 years ago
It doesn't work man.
Yamato97 2 years ago
as2 or as3?
1hitthug 2 years ago
AS2
gamefreak1000000 2 years ago
can you make a tutorial so when the player clicks the item in the inventory he holds it
gamemak0r 2 years ago
put the codes in the discription
gozfan 2 years ago
dude put the fucking codes in the desc , i got em all rong cause of you!
revz999 2 years ago
can u make screen wiht script you writed at 3:02 pleasE?
mazaisvilijs 2 years ago
i followed your scripts, not the one in the beginning of the video, those dont work. but the other ones work
lurviQ 2 years ago
**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..
lurviQ 2 years ago
are you using as2 or as3
animatermasterz 2 years ago
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.
parkergdizzle 2 years ago
*Good*
lol
tntxplode 2 years ago
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.
tntxplode 2 years ago
where is part one?
zchryfrk 2 years ago
can somebody give me the code that he uses?
shadock15 2 years ago
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
eamon000 2 years ago
see the ("itemSlot) ?? name it to ("itemslot") or whatever your itemslots instance name is. just without adding the number..
lurviQ 2 years ago
This would be quite helpful if you didn't teach bad habits via casual typos.
ninjacandy 3 years ago
function addToSlot (item {
if (!item.found) {
item._x=eval ("itemSlot) + currentslotnum)._x; item._y=eval ("itemSlot) + currentslotnum)._y; item.found=true;
}
kolomansritu 3 years ago
lol epic fail, got 7 errors
darrenshan97 3 years ago
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?
WhitexStorm 3 years ago
when I collect the item it just goes away and not in the item slot
youngskater10 3 years ago
make sure that the slots are on a lower layer than the items
finalninja0 2 years ago
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)
hjbnkjkhjkh 3 years ago
**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
hjbnkjkhjkh 3 years ago
its case sensitive :)
activeellis 3 years ago
spart puting the codes in the descreption!!!!!!
ianh97 3 years ago
it dont work 4 me cuz it sez somits wrong wid
da function addToSlot(item) { thing so it don't work
youngskater10 3 years ago
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){
isk8boards 3 years ago
you left script info out and therefore your script dosnt work, please revise these errors
savary101 3 years ago
ur fucking code sucks dick man fix it or...just fucking delete this video
aspcajaye 3 years ago
i want like stick rpg yeah its not like any rpgs. How about charm? Strength Smarts
also fightting turns???.
stickoanimation 3 years ago
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
TheBellicFoundation 3 years ago
i didnt work for the inventory and item thing
SmellyMonkeyFeces 3 years ago
ok what is the right code then?
plasmagames 3 years ago
Lyserinc 3 years ago
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);
}
}
Lyserinc 3 years ago
Ok the code you provided for the inventory in the video doesn't work
plasmagames 3 years ago
plasmagames 3 years ago
it has errors
cubbychambers 3 years ago
mine wont go up and down, whats that for codes?
Lyserinc 3 years ago
onClipEvent(enterFrame){
if(_root.char.hitTest(this)){
_root.addToSlot(this);
}
}
Where should i put in the " ???? HEEELP!!
Lyserinc 3 years ago
when my character picks up the items they just disaper, help me and i'll subscribe to you.
PCheats 3 years ago
dude you rock. Subed!
DJ2109 3 years ago
will this work on flash 8
metatoys 3 years ago
yes but this video has all the codes wrong
cubbychambers 3 years ago
do you know how a Mc_man can subroot to another frame when it touches another mc like.. Mc_door?
Marcusdsmith 3 years ago
I lol'd. You forgot a " in your code.
PieManTheHero 3 years ago
onClipEvent(enterFrame){
if(_root.char.hitTest(this)){
_root.addToSlot(this);
}
}
this is my item but it doesn't seem to work... can you help
StellaOctangula 3 years ago
I apologize, the code isn´t the working one, the next post is the right one!!!
erik8bis 3 years ago
erik8bis 3 years ago
thank you!
DJ2109 3 years ago
i love you...
Renikor 2 years ago
???
you're a man or woman
yefferman 2 years ago
Everything works but when i collect items they just dissapear.
randomer411 3 years ago
same
hardyzzone 3 years ago
ITEM CODE: onClipEvent(enterFrame) {
if(_root.char.hitTest(this)) {
_root.money +=10
unloadMovie(this);
}
}
thecreator559 3 years ago
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
jonathan687 3 years ago
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
jonathan687 3 years ago
read anntonation at beggining it gives proper codes
10dog102 3 years ago
ive put those codes in and it still dont work
jonathan687 3 years ago
wow thats amazing! i wanna be a game designer when i grow up and you a real inspiration to me :P
danieboy777 3 years ago
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;(?
WoWRoleplayer 3 years ago
maybe you have and old version of flash or and older than his,
aandre311 3 years ago
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
WoWRoleplayer 3 years ago
what the hell are the item commands?
wowitscormaccc 3 years ago
bah i just CANT get it to work!! i tried 100 more times and the scripts dont work! please tell me what to do
WoWRoleplayer 3 years ago
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
WoWRoleplayer 3 years ago
What is the instance name of the slots man?
mnpg198255 3 years ago
how do u put the item slots in the frame below the items like he does in the video
BobbyH012 3 years ago
send me the code.
FeRcHoXSS 3 years ago
GGPivot 3 years ago
i have an idea put the script on the drscription!!!
MrMakeman 3 years ago
i have an idea DO IT YOUR SELF
HaLO3gamer91 3 years ago
thanks for tLKIING
animation7king 3 years ago
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: String literal was not properly terminated item._x=eval("itemSlot)+currentslotnum._x;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 4: ')' or ',' expected item._y=eval("itemSlot)+currentslotnum._y:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 5: ')' or ',' expected
item.found=true;
dec20056 3 years ago
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){
booboo881122 3 years ago
Manifest222 3 years ago
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:
GGPivot 3 years ago
seems almost like you were using actionscript 3.0
Manifest222 3 years ago
there is and actuall way to do this...I can't explain it
Renkay141 3 years ago
this is the actual way to do this retard.
Manifest222 3 years ago
wolfgangab3 3 years ago
item:
onClipEvent(enterFrame){
if(_root.char.hitTest(this)){
_root.addToSlot(this);
}
}
wolfgangab3 3 years ago
the addtoslot should be like this:
addToslot
Not addToSlot,
capitals mess up everything.
Manifest222 3 years ago
Manifest222 3 years ago
It didint work
GGPivot 3 years ago
the name on the character is character
filalf 3 years ago
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. =)
filalf 3 years ago
what instance did he name the character???
lusslenut 3 years ago
char
JSKDirect 3 years ago
code?
wizkid291 3 years ago
when I try the code I get two syntax errors on lines 6 & 7.
shintashi 3 years ago
Omg post the dam code!
tony401cp 3 years ago 2
Nvm sorry
Arrroza 3 years ago
yeah, pbj you're forgetting to tell everyone about instances
Arrroza 3 years ago
when i try it it shows me this:
1026: Constructor functions must be instance methods.
killerz104 3 years ago
Turn the instance of the items into: item
I guess
Arrroza 3 years ago
how do i put the boxes in a different layer?
JDPRODUCTIONS11 3 years ago
post the damn script dude i love ur rpg vids but u need to post the scripts
aspcajaye 3 years ago
my guy wont pick up items
thisismepass 3 years ago
i did everything you said and its not working do you type anything into the inventory boxes actions?
Elionardo 3 years ago
adamthegreat15 3 years ago
thank you so much! you rock dude!
PivotyPivoty 3 years ago
np man
adamthegreat15 3 years ago
thx dude. these really helped
stickdude566 3 years ago