I am basically a noobie to the actionscript world and I have only touched base with the basics. However I have learned a lot on my own. (I know this isnt much of an accomplishment seein as how the commands are in English) Anyway, to get to the point.
I am making a basic game where you explore different parts of a school and I am basically making fun of the teachers at my school. The point of the game is to get detentions (maybe) if not I would still need to know how to hold other items the user finds.
Does anybody know how to do this? I want to be able to click and object and then its in an inventory. Help is appreciated.
Well thanks…I will like to try this out as soon as possible the only problem is my computer has a virus. I’m in school right now and they dont have a flash program. However i have some other questions that maybe people here could be of help to. I’m glad I found this site because it’s hard to find a good flash/actionscript one.
Anyway, since I can’t test to see that you’re right (BlackSpirit) I will move on to further questions assuming you are correct. Can you use the mouse release action on a movie clip? I want to make an options bar for the game and I want it so that when click it expands and the border of one of the symbols with in it dissappears. Also if anybody knows of any other ways to do an inventory it may help because I can’t test to see if this one is a definite yes.
BlackSpirit I have a questioin. Suppose this is correct, your actionscript I mean. Could the user acess a screen showing the items added to the inventory? Also once you click this item, how do you make it dissappear so that the movie clip is only in the array, not in the main game? -btw I have figured out just by your script that i am a true noobie…
maybe you should start with an easier game just to learn
BlackSpirit, the code doesnt work but thanks neway.
ok i think i figured it out by myself. but its not complex or efficient. im using _visible to make the objects visible once the player presses the button. same with the inventory screen…now all i need is that menu
yeah u could use _visble lol id probaly recommend unloadmovieclip i think if have questions like that u should just read through the action script dictionary in the help section of flash itselfs very useful
yea i have done that but sometimes the wording is not what im looking for, yet later i find that it was what i needed. i dont think macromedia did very well in their help and tutorial sections. but about the unloadmovieclip, do u need to use loadmovieclip first or can u just movie it onto the screen?
Here, I uploaded an inventory I made up, graphics are non existant, but its the code that matters.
Clicking on the circles add them to the inventory, clicking on the items in the inventory put them to "ground"
Uses attachmovie, so no need to duplicate items from off screen, uses removemovieclip as well. So it’ll keep the speed up.
ok thanks ill check it out
yea i have been using _visible but my game is starting to slow down in some areas so once i read ur script it may clarify much of what i know
its not letting me download
wierd, I just downloaded it. Works fine.
not me it gives me a false download place cant u put it on a site or something? well whatever ill keep trying
nvm its all cleared up. i didnt know u had to rename it.
rename it? I just rightcliked and saved target as…
ok im looking at ur script and u have a couple things to explain, sorry. do u have aim? cuz i never understood this i stuff and i just need to learn what this stuff is
nah, dont have aim. got messenger though.
just list the things you dont understand and ill talk you through. I should have put more comments in my code. Commenting is kinda boring