You press i and the inventory opens

You press i and the inventory opens. This is one of those wonderful Written in Stone things in computer rpg’s.  Inventory is good, its filled with tiny pretty items that will help you go on and conquer the world in front of you. And it’s so simple to use! You just click an item in the inventory, and it does its magic. You drag it, and the item follows. You drop it on other slot, or on ground, and the item goes where you want it to go.  Your inventory never fails you, it always works well, fast and logically. Its easy to use, fun beautiful!

Well coding one is not as simple as using one, I may tell you…

screen_5_009

I now have items in the rows and columns, and they go there nicely, and using items works in non-inventory mode. But dragging items in inventory mode is bit challenging. Yes, I can drag and drop them, but snappping to slots, and swapping item positions when one item dropped over another is missing. I tried couple of different approaches, but didnt get it work completely.

But maybe I’ll give it a rest now, and get back to it later. There are lots of other things to work on, no fear of todo-list getting empty anytime soon.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Comments »

 
  • gabriel says:

    cool fun start! I would like to use something like this for my game.
    Its steady progressing…is the code all internal (I prefer that over external.as thats just me) OK keep workin on it!

  • admin says:

    Hi!
    My coding style is something between pure object oriented approach and “timeline coding”, so big part of the game logic is based on proper use of class structures and all such fancy stuff, but I often rely on dirty hacks to make things work fast. So there is lots of external .as classes, besides main timeline code.

 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>