ID:1292640
Jun 14 2013, 2:22 pm
|
|
hey guys noobish programmer here. A quick need of help. If i have more than 1 icon that can be used for mob/Player, how do i let the game know that the mob selected from my character selection proc. After I implemented my character selection procc my game screen is black. Im guessing the game doesnt know what icon to use. Any advice?
|
There's multiple ways you can perform this. If the icon relies on a variable, you need to use an if() statement. If it's simply at random, use the predefined pick() proc.
if() Ex: pick() Ex: |
Thedeadwarrior123, can you provide us with some of your code, so we know what you're doing, and potentially provide better help?
|
If you have more than one potential icon for mob/Player, you can set the icon of the player's mob/Player instance during character creation by changing it's 'icon' variable. See http://www.byond.com/docs/ref/info.html#/atom/var/icon