The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Fizzly on October 13, 2009, 11:33:37 AM

Title: Gold icon
Post by: Fizzly on October 13, 2009, 11:33:37 AM
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:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg2.vpx.pl%2Fup%2F20091013%2Fgold1.png&hash=41e7a2375d14d0363e1f819b3fdb825c3ae83662)
Want like this:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg2.vpx.pl%2Fup%2F20091013%2Fgold2.png&hash=80525ed9d3695dfedc8e836846d409104cb71e3e)
Anyone help? :)
Title: Re: Gold icon
Post by: modern algebra on October 13, 2009, 11:39:36 AM
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.
Title: Re: Gold icon
Post by: Fizzly on October 13, 2009, 12:05:40 PM
OMG... ^^' Thank you so much!