inventory/shop/a-life

Game Editor comments and discussion.

inventory/shop/a-life

Postby j2graves » Sat Nov 03, 2007 12:23 pm

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.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: inventory/shop/a-life

Postby j2graves » Sat Nov 03, 2007 12:37 pm

Help please!
This is how i"ll give score to anyone who can answer:
+2 for inventory
+2 for shop
+3 for a-life
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: inventory/shop/a-life

Postby j2graves » Sat Nov 03, 2007 1:11 pm

anyone?
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: inventory/shop/a-life

Postby j2graves » Sun Nov 04, 2007 3:38 pm

please!!
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: inventory/shop/a-life

Postby Rule-Buster » Sun Nov 04, 2007 3:59 pm

if i knew i promis i would tell u but i have no clue... :(
I'm right behind you...
http://freewebs.com/jason-buster/
User avatar
Rule-Buster
 
Posts: 219
Joined: Sat Sep 08, 2007 2:21 pm
Location: In the clouds. In the trees. In the birds. Or in my own little world.
Score: 4 Give a positive score

Re: inventory/shop/a-life

Postby j2graves » Sun Nov 04, 2007 6:53 pm

I really need all this people so please please please...

I'm getting pretty pathetic huh?
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: inventory/shop/a-life

Postby Rule-Buster » Sun Nov 04, 2007 8:24 pm

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... :(
I'm right behind you...
http://freewebs.com/jason-buster/
User avatar
Rule-Buster
 
Posts: 219
Joined: Sat Sep 08, 2007 2:21 pm
Location: In the clouds. In the trees. In the birds. Or in my own little world.
Score: 4 Give a positive score

Re: inventory/shop/a-life

Postby DollMaster » Tue Nov 06, 2007 2:26 am

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.
DollMaster
 
Posts: 65
Joined: Fri Jun 16, 2006 2:38 am
Score: 2 Give a positive score

Re: inventory/shop/a-life

Postby Bee-Ant » Tue Nov 06, 2007 12:07 pm

Thats very difficult...but wait maybe I could make a demo
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: inventory/shop/a-life

Postby Bee-Ant » Tue Nov 06, 2007 1:32 pm

OK...this is the demo (Shop+Inventory) :D
I have no time to make a-life... :(
Attachments
InventoryShopDemo.zip
(125.98 KiB) Downloaded 294 times
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: inventory/shop/a-life

Postby j2graves » Tue Nov 06, 2007 5:53 pm

ok, I'll try it out. if it's what I'm looking for, I'll give you the points.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: inventory/shop/a-life

Postby j2graves » Tue Nov 06, 2007 7:38 pm

anyone? I still give 3 points for the a-life!
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: inventory/shop/a-life

Postby j2graves » Sat Nov 10, 2007 11:15 am

I still need the a-life! please!
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: inventory/shop/a-life

Postby j2graves » Sat Nov 10, 2007 2:17 pm

+3 for anyone who tells me!
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: inventory/shop/a-life

Postby Rule-Buster » Sat Nov 10, 2007 2:19 pm

wait. did anyone on this forum say how u lose a life after you are hit by an enemy?

i REALLY need 2 know!!!
I'm right behind you...
http://freewebs.com/jason-buster/
User avatar
Rule-Buster
 
Posts: 219
Joined: Sat Sep 08, 2007 2:21 pm
Location: In the clouds. In the trees. In the birds. Or in my own little world.
Score: 4 Give a positive score

Next

Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron