The Daily Click ::. Forums ::. Klik Coding Help ::. A few problems (RPG Related)
 

Post Reply  Post Oekaki 
 

Posted By Message

Jason Orme

Using Klik Products Since 1998

Registered
  24/05/2002
Points
  960

VIP Member360 OwnerWii OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimeI'm a Storm TrooperI'm on a BoatIt's-a me, Mario!
Sonic SpeedMushroomStrawberryI like Aliens!PS3 OwnerTurtle Power!I am an April Fool
11th December, 2008 at 02:54:02 -

Download
http://www.jsofts.com/rpgopensource/rpgopensource1.mfa

Here is alittle info on the file.

Arrow keys to move the player.
Left click an enemy to select it, and right click to toggle attack mode. Move near the enemy to begin combat.

Keep in mind that the combat is slow as this is designed as if this was the start of the game where you have a slow and weak weapon.

You can click the icons at the top of the screen to add items to your inventory.

Open and close your inventory by clicking the bag icon in the bottom right corner.

You can click and drag and move items around inside the inventory.

When an enemy is dead it will drop a "loot bag", right click it and select loot and the items it has dropped will appear...

The Problems

I can't find a way to transfer the items in the loot box to the inventory. I also can't find a way to make the inventory snap to grid. If anyone has a way to get this working I will be most grateful.

Thankyou!

 
www.jsofts.com

Jason Orme

Using Klik Products Since 1998

Registered
  24/05/2002
Points
  960

VIP Member360 OwnerWii OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimeI'm a Storm TrooperI'm on a BoatIt's-a me, Mario!
Sonic SpeedMushroomStrawberryI like Aliens!PS3 OwnerTurtle Power!I am an April Fool
11th December, 2008 at 23:34:16 -

Bump Bump Bump



 
www.jsofts.com

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
12th December, 2008 at 10:24:16 -

Ahhh the old snap to grid inventory...
There is a couple of ways to solve that.

The best bet would be easygrid + array.
Use separate layer for the inventory. And a separate group.

Easygrid has easy to use snap functions. while the array can hold your inventory data..
Try searching for some tutorials...

Edited by Don Luciano

 
Code me a sausage!

Jason Orme

Using Klik Products Since 1998

Registered
  24/05/2002
Points
  960

VIP Member360 OwnerWii OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimeI'm a Storm TrooperI'm on a BoatIt's-a me, Mario!
Sonic SpeedMushroomStrawberryI like Aliens!PS3 OwnerTurtle Power!I am an April Fool
12th December, 2008 at 12:15:48 -

A few people have suggested this, but I can't find a single easygrid tutorial.

 
www.jsofts.com

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
13th December, 2008 at 21:17:12 -

There isn't much to easygrid... just use it like this:

When positiong object : Set x position to snap grid from x cordinate
do the same for y
and that's pretty much it.

Also you can use set cell value to see if the current slot is free or not.
You check it with compare two general values.. : read cell value from (again grid snap from x and y) = 0 or whatever

 
Code me a sausage!
   

Post Reply



 



Advertisement

Worth A Click