Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Use of InventoryScrollOffset? Or maybe not?  (Read 2795 times)

0 Members and 1 Guest are viewing this topic.

Kaz

  • Arberth Studios
  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 228
  • The story is the game
    • View Profile
    • Info on 'Rhiannon' & 'Coven'
Use of InventoryScrollOffset? Or maybe not?
« on: August 05, 2008, 10:54:21 AM »

Hi

At the end of each chapter, I purge the inventory to get rid of stuff the player no longer needs. Sometimes though, this means that the next time the player looks at the inventory, it is scrolled to the right, showing only the purged cells, suggesting that the inventory is empty.

I need to reset the inventory somehow after the purge, so it displays starting at the leftmost object. I suspect this may be something to do with Game.InventoryScrollOffset, but neither this forum or the docs seem to indicate how that might be used. Is it as simple as Game.InventoryScrollOffset = 0? Or is it more convoluted depending on how many items are in the inventory?

Or am I completely off the mark?

Thanks
 
Logged
\"Fans of popular horror adventures like Scratches and Barrow Hill should start bracing themselves for another haunting experience, as independent developer Arberth Studios has announced production on its debut title Rhiannon - Curse of the Four Branches.\" - AdventureGamers.com

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Use of InventoryScrollOffset? Or maybe not?
« Reply #1 on: August 05, 2008, 12:19:18 PM »

I presume your solution is correct.

Game.InventoryScrollOffset = 0;
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Kaz

  • Arberth Studios
  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 228
  • The story is the game
    • View Profile
    • Info on 'Rhiannon' & 'Coven'
Re: Use of InventoryScrollOffset? Or maybe not?
« Reply #2 on: August 05, 2008, 10:46:46 PM »

Thanks MM

Re Julia - only two screens - the suspense is killing me - more screens!!!!! :D
Logged
\"Fans of popular horror adventures like Scratches and Barrow Hill should start bracing themselves for another haunting experience, as independent developer Arberth Studios has announced production on its debut title Rhiannon - Curse of the Four Branches.\" - AdventureGamers.com
 

Page created in 0.046 seconds with 23 queries.