ID:271585
 
Um, hi, I just got into coding And I was wondering how I would set out Male and female sprite's.
you first make an icon with two icons in it once female and male all in lowercase
then put this into code

Login()
usr.icon_state = input("What gender?") in list ("male","female")
usr.Move(locate(1,1,1))
In response to Tushar20
OKay, thanks, but I've got another problem. I've added my icon's in, but ti says it can't find the file. Someone I caught up with says they have to be in the same file as my coding but my coding doesn't have a file.
Inuyashaisbest wrote:
uhhmmm try this (replace space with tab if you tab)
> mob
> male
> icon='iconmale.dmi'//change iconmale to the male base
> //icon_state="STATE" if it has a state to it
> female
> icon='iconfemale.dmi'//change iconfemale to the female base
> //icon_state="STATE" if it has a state to it
>
>

icon='icon.dmi' is basically what you use to find icons if thats anything what you mean.

What I mean is I've got this code:
mob
player
icon = 'base (fma).dmi'
</code>

And it's saying: FMA Game.dm:7:error:'base (fma).dmi':cannot find file. I was told they have to be in the same folder and I'm all confused as to what the guy who was talking to me meant... Or were you answering the first question? XD.
I swore I had changed that to say that I had figured it out XD.