Page 1 of 3
inventory/shop/a-life
Posted:
Sat Nov 03, 2007 12:23 pm
by j2graves
does anybody know how to make (or know any strings) about how to make an inventory and a shop where you can buy items?
I mean like, you buy an item and it automatically goes to your inventory. you access the inventory and you select which of two or three keys on the keyboard makes you able to use those items. like you put a sword in the "a" key space. now when you press the "a" key, you pull out the sword.
also I need to know how to make an a-life pogram.
ex. You raise a made up animal and teach it how to fight. feed it cirtain foods to make it better at cirtain things and then you take it to battle and it will be good at cirtain things depending on the foods you've given it.
sorry about all those many questions, but this is just about everything I have left to learn before i start my game I'm planning.
Re: inventory/shop/a-life
Posted:
Sat Nov 03, 2007 12:37 pm
by j2graves
Help please!
This is how i"ll give score to anyone who can answer:
+2 for inventory
+2 for shop
+3 for a-life
Re: inventory/shop/a-life
Posted:
Sat Nov 03, 2007 1:11 pm
by j2graves
anyone?
Re: inventory/shop/a-life
Posted:
Sun Nov 04, 2007 3:38 pm
by j2graves
please!!
Re: inventory/shop/a-life
Posted:
Sun Nov 04, 2007 3:59 pm
by Rule-Buster
if i knew i promis i would tell u but i have no clue...
Re: inventory/shop/a-life
Posted:
Sun Nov 04, 2007 6:53 pm
by j2graves
I really need all this people so please please please...
I'm getting pretty pathetic huh?
Re: inventory/shop/a-life
Posted:
Sun Nov 04, 2007 8:24 pm
by Rule-Buster
c'mon i mean really people... if u know what to do, tell him. i mean it will only take 30 seconds of your time...
Re: inventory/shop/a-life
Posted:
Tue Nov 06, 2007 2:26 am
by DollMaster
Inventory is actually the next thing i am going to make. A simple way to do that...
1)item actor. lets say an axe. when you collide with the axe you pick it up. so there will be a variable, axe=1.
2)on the inventory screen. there will be a spot. if axe=1, then there will be an axe image in that spot.
The way I am going to do it...
Stage1
variables for inventorymode, inventorycursor, inventorycursor2, equippedweapon, inventslot1, inventslot2, inventslot3, etc...
a list of values which identify what item they represent, ie 1=axe, 2=sword, 3=candle You should make some numbering conventions maybe. 1-20 weapons, 21-40 armors...this way itll make it easier for you later on.
Stage2
Create actors. When you collide with an item actor, you pick it up.
ie. You walk over an axe. Inventslot1=1. You walk over a candle, inventslot2=3.
Stage3
When you press button to go into inventory, inventorymode=1 and view shifts to inventory.
Stage4
Depending on the values for each inventslot, an image will appear reflecting it. When you are in inventory mode, inventorycursor=1. Reflecting the initial spot that the cursor is at.
Stage5
When you press the arrow keys the inventory spot will change, and thus the value of inventorycursor. Also, inventorycursor2=invenslotn. Which will equip the item in inventory.
Stage6
Add functionality to each inventory item.
Stage7 - Shop
This will be diffulcult, but basically itll be code that will fill up your inventory slots without you colliding with things.
Stage8 - Bank
I want someplace to store items when slots are filled.
And that is the route I am going to take. Unless anyone has anything to add follow this route and we will learn together.
Re: inventory/shop/a-life
Posted:
Tue Nov 06, 2007 12:07 pm
by Bee-Ant
Thats very difficult...but wait maybe I could make a demo
Re: inventory/shop/a-life
Posted:
Tue Nov 06, 2007 1:32 pm
by Bee-Ant
OK...this is the demo (Shop+Inventory)
I have no time to make a-life...
Re: inventory/shop/a-life
Posted:
Tue Nov 06, 2007 5:53 pm
by j2graves
ok, I'll try it out. if it's what I'm looking for, I'll give you the points.
Re: inventory/shop/a-life
Posted:
Tue Nov 06, 2007 7:38 pm
by j2graves
anyone? I still give 3 points for the a-life!
Re: inventory/shop/a-life
Posted:
Sat Nov 10, 2007 11:15 am
by j2graves
I still need the a-life! please!
Re: inventory/shop/a-life
Posted:
Sat Nov 10, 2007 2:17 pm
by j2graves
+3 for anyone who tells me!
Re: inventory/shop/a-life
Posted:
Sat Nov 10, 2007 2:19 pm
by Rule-Buster
wait. did anyone on this forum say how u lose a life after you are hit by an enemy?
i REALLY need 2 know!!!