Writerstix77
Member
I want to make the cursor change into the image of the object that is clicked on in the inventory. In each inventory object's LMB Release event I have the command to change the cursor to each specific sprite. For example, if the Inv_Wrench_Obj is clicked, I have the code:
cursor_sprite=Inv_Wrench_Spr
window_set_cursor(cr_none)
And this works great. However, I have 26 different items I need to do this with. Rather than code all 26 of them this way, I'd like to make a parent object. But I cannot seem to figure out what to put after cursor_sprite= in order to make each object display it's own sprite as the cursor.
Any thoughts?
Thanks.
cursor_sprite=Inv_Wrench_Spr
window_set_cursor(cr_none)
And this works great. However, I have 26 different items I need to do this with. Rather than code all 26 of them this way, I'd like to make a parent object. But I cannot seem to figure out what to put after cursor_sprite= in order to make each object display it's own sprite as the cursor.
Any thoughts?
Thanks.