Greetings all.
I believe this is the first time I have posted in here, so I hope my post is clear and follows the rules. :)
My problem is as follows: I have two images for each inventory item. One is the item graphic itself, with a shadow beneath it, and one is the cursor, with no shadow but a little arrow pointer. What I would like to do is set up the inventory so that when I select an inventory item, instead of making my cursor look like that item, it replaces it with the secondary image which is missing the shadow but has a little pointer.
I did a search of the forum and found some script here (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=20222.0) which I believed I would be able to implement, but unfortunately I have more inventory items than the game will allow me cursors.
I am thinking that perhaps I could create a number of views and have these replace the cursor somehow?
I am using editor version 2.70 at the moment - I checked the AGS 3.0 update list to see whether the cursors limit has been removed and I could not see it. Hoping to stick with the 2.70 editor until I get this game finished, because I am slow enough at using it as it is.
Is there something I've missed here? Any advice would be greatly appreciated. Sorry if I have rambled :).
An easy way to do it is this:
In the sprite editor, use the "change sprite number" function to modify the number of each "cursor" item to be equal to the number of the "shadow" item + 1000. So we get sprite 578 = key with shadow, sprite 1578 = key with cursor. Etc.
Now go to the code for selecting items, and add a line that says ChangeCursorGraphic (item[selected].Graphic + 1000).
You, sir, are truly awesome. My most sincere thanks for this - I am so pleased! I have not tried it yet (Seeing as I'm doing a rework of my inventory gui) but I shall and I am certain it will work!
Thankyou, thankyou!