Here I go. I'm at it again :box: Another stump in the mud..
Here's my problem. I'm trying to create text to appear icons to tell you which inventory you're about to select. The problem isn't getting the text to appear. It's more like getting rid of the old text. You see.. I either end up having the same text everywhere. Or all the text adds up together. When I try disposing it I get the "Bitmap gone error" of course.
I even ended up getting RGSS has encountered a problem and must close XD
Never seen that before..
Well here's what I'm trying to do
If I do it this way I end up with all the text jumbling up as I increase in index
if I do it this way I end up with all text being "all items"
I've tried disposing the previous text with a @selector_position_window.self.contents.dispose and met with a savage error of mass carnage.
Please help me oh masters of scripting, so that I, grasshopper, may attain more knowledge.
:angel:
Here's my problem. I'm trying to create text to appear icons to tell you which inventory you're about to select. The problem isn't getting the text to appear. It's more like getting rid of the old text. You see.. I either end up having the same text everywhere. Or all the text adds up together. When I try disposing it I get the "Bitmap gone error" of course.
I even ended up getting RGSS has encountered a problem and must close XD
Never seen that before..
Well here's what I'm trying to do
Code:
case @selector_position
when 1 # on all items
text = "All Items"
@selector_position_window.contents.draw_text(0, 40, 120, 32, text, 0)
@selector_position_window.x = 250
when 2 # on recovery items
text = "Recovery"
@selector_position_window.contents.draw_text(0, 40, 120, 32, text, 0)
@selector_position_window.x = 290
when 3 # on Food items
text = "Food"
@selector_position_window.contents.draw_text(0, 40, 120, 32, text, 0)
@selector_position_window.x = 340
# and so on........................
Code:
case @selector_position
when 1 # on all items
text = "All Items"
@selector_position_window.contents.draw_text(0, 40, 120, 32, text, 0)
@selector_position_window.x = 250
when 2 # on recovery items
text = "Recovery"
@selector_position_window.x = 290
when 3 # on Food items
text = "Food"
@selector_position_window.x = 340
# and so on........................
I've tried disposing the previous text with a @selector_position_window.self.contents.dispose and met with a savage error of mass carnage.
Please help me oh masters of scripting, so that I, grasshopper, may attain more knowledge.
:angel: