ID:2026894
Jan 29 2016, 8:13 pm
|
|
I'm looking for a way to resize icons in-game. There is an easy way to do this by giving value to a built in proc im sure. But I can't remember the name.
|
Jan 29 2016, 8:27 pm
|
|
It depends what you're after, you can use icon.Scale(), matrix.Scale(), and world.icon_size -- depending on what you're going for.
|
Yes Im sure icon.scale() was it. Something simple like this
mob/verb/resize() var/x = input(src,"Size") as num var/icon/A=new/icon('gohan 2.dmi') if(A)A.Scale(x,x) I just want to change expand a mobs icon in-game. And be able to revert it back to normal. This isn't working. Why |
You'd need to set the icon to A.
But you can do: var/matrix/m = matrix() You can even use animate() to shrink/grow them visually. |