Main Menu
  • Welcome to The RPG Maker Resource Kit.

Gold icon

Started by Fizzly, October 13, 2009, 11:33:37 AM

0 Members and 1 Guest are viewing this topic.

Fizzly

Hello,
I need some help, again.   ::) I want to put gold icon displayed ON gold window.
First, I've tried to use this command:

    draw_icon(2, 60, 40)

...but it won't work. Icon even won't show up. O_O Then, I've tried with a picture:

    bitmap = Cache.system("Money")
    rect = Rect.new(0, 0, 32, 32)
    self.contents.blt(0, 0, bitmap, rect) 


...but this time picture has cutted edges, to fit it to the gold window. :(
Have like this:

Want like this:

Anyone help? :)
Regards,
Mike

modern algebra

The problem with the draw_icon command you used is that the y value you set is too far down. If you want it flush with the left side, then you need to have x and y both 0

So: draw_icon (2, 0, 0)

For the picture, the problem is that is is 32x32 and the window is only 24 height, so it cannot show the rest of the picture.

Fizzly

OMG... ^^' Thank you so much!
Regards,
Mike