This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-05-21 16:17:20

nintendo8000
Scratcher
Registered: 2007-10-03
Posts: 5

inventory items

So, I am making a point and click. (Check it out! Sam and Max:Bunny missing). It will take a while for me to make it, and I need some help. I can't figure out how to make a inventory item. I need it to work like this: You click on something in the inventory and click on something else and something will happen.

Offline

 

#2 2009-05-21 17:26:53

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: inventory items

You'll have to use variables.

Maybe make a variable for each item, and when one is clicked it activates a variable, and when two variables are activated (use yet another variable for that) it checks the variables' values and does something.


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#3 2009-05-21 19:04:26

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: inventory items

and a list to determine what you have and don't have


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#4 2009-05-21 19:10:03

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: inventory items

Make a list for the inventory and one variable for the active item.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

Board footer