RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Gold icon

0 Members and 1 Guest are viewing this topic.

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

Code: [Select]
    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:

Code: [Select]
    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

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
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:
Code: [Select]
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.

***
Rep:
Level 89
OMG... ^^' Thank you so much!
Regards,
Mike