Sceptile_Master
Member
Just 2 quick questions. First is: how do I skip passing an argument when using a method (I don't know if my naming of stuff is right because I'm working out ruby by messing with it... going quite well so far as I have some very basic programming experience). I'll try and explain it better with an example.
Taken from Window_gold module as an example
Okay let's say I just want the height and width and to match the size of the text I'm drawing (can I do that by leaving it blank?) and I want the text to be left aligned. I'm not to sure about the width and height arguments but the alignment ones default is left aligned so I don't want to pass an argument to it so how do I skip that argument... if I just leave it blank it gives me an error.
And second question I don't know if it's a scripting issue but I think it is. I have a bitmap image I have imported and want to know how to choose its transparent color. How do I do this?
Help is much appreciated. Thanks.
Taken from Window_gold module as an example
Code:
self.contents.draw_text(4, 0, 120-cx-2, 32, $game_party.gold.to_s, 2)
Okay let's say I just want the height and width and to match the size of the text I'm drawing (can I do that by leaving it blank?) and I want the text to be left aligned. I'm not to sure about the width and height arguments but the alignment ones default is left aligned so I don't want to pass an argument to it so how do I skip that argument... if I just leave it blank it gives me an error.
And second question I don't know if it's a scripting issue but I think it is. I have a bitmap image I have imported and want to know how to choose its transparent color. How do I do this?
Help is much appreciated. Thanks.