I'm new to RGSS3 and basically I am trying a few things out just to learn.
I'm trying to build my own menu system where I use an icon in front of the selected item.
I already know how to draw the icon but I can't seem to re-position it.
This is what I have so far:
class Window_Quest_List < Window_Base def initialize() super(0,50,Graphics.width * 0.4,Graphics.height-50) draw_icon(386,5,10,true) end def update super check_input end def check_input if(Input.trigger?🙂DOWN)) @index = @index + 1 //Change position of the icon end if(Input.trigger?🙂UP)) @index = @index -1 //Change position of the icon end endendSo I guess that in the check_input method, I need to do something to update the position of the icon.
However I notice that the draw_icon does not give me a reference to an object that I can manipulate.
If I use a sprite it would work however I do not know how I can draw a sprite based upon an icon index...
I'm trying to build my own menu system where I use an icon in front of the selected item.
I already know how to draw the icon but I can't seem to re-position it.
This is what I have so far:
class Window_Quest_List < Window_Base def initialize() super(0,50,Graphics.width * 0.4,Graphics.height-50) draw_icon(386,5,10,true) end def update super check_input end def check_input if(Input.trigger?🙂DOWN)) @index = @index + 1 //Change position of the icon end if(Input.trigger?🙂UP)) @index = @index -1 //Change position of the icon end endendSo I guess that in the check_input method, I need to do something to update the position of the icon.
However I notice that the draw_icon does not give me a reference to an object that I can manipulate.
If I use a sprite it would work however I do not know how I can draw a sprite based upon an icon index...