Problem description:
I don't have a code, but this post is more of a question? Can you change the size of a object using codes? Like, I know you can change the color of an object using src.icon+=rgb(0,0,0) stuff like that. Is there a way you can do something like src.size=40x40? Or would I have to re-icon the whole thing over again?
BrickSquadron wrote:
You can get the object's icon and use icon.Scale() to change the size of said icon if you wish.- I tried that, and didn't really get it to work for the object icon? I can get it to work for the players icon, but I need it for an on-screen object. atom/movable.bound_width, and atom/movable.bound_height.- I thought those are just to identify the boundaries of the icon? What I'm trying to do is, take a 32x32 icon, and stretch it into like a 64x64 icon without having to re-icon the whole thing. |
icon.Scale() will work for objects and mobs. If it's not you're using it wrong.
|
JunK Games wrote:
icon.Scale() will work for objects and mobs. If it's not your using it wrong. How should I use it in this case? Make an example please. This is my code. obj/HUD/NewGame |
Note: Scaling icons will not look as good as if you had created a piece of unique pixel art to represent the larger icon.