Creations Favorites Posts ID:155090
ID:155090

Is it possible to display a 32x64 player on a grid? I'm not talking about using "\icon[src]"(which I used to do on an output but changed it since it had no overlay support) but I'd like it to actually show the player along with his overlays.

I tried
 usr<

and it sorta did what I wanted. It displayed the player with his overlays but it scaled it to 32x32..

I also tried changing the style of the grid to:
IMG.icon {width: 32px; height: 64px}

yet no difference? any ideas?
 #1 Sep 22 2011, 5:49 pm anyone know if this is possible?
 #2 Sep 22 2011, 8:21 pm I've tried to do this to no avail. Use a map element instead.
 #3 Sep 22 2011, 8:38 pm In response to AbdelJN (#1) Nah it's not. Grids use the world's icon_size. It's not editable.
In response to Kyle_ZX (#3)
Yeah use a grid. And put this in the style part of it
BIG IMG.icon {width: 32px; height: 64px}

 "" 
In response to Duelmaster409 (#2)
Duelmaster409 wrote:
I've tried to do this to no avail. Use a map element instead.

But if I use a map element, won't all players appear there while creating their characters overlaying each other? Do you a know of a way so that players can only see their own character? Also, I'm not too familiar with setting players on another map element. Can you explain how to do it?

Johan411 wrote:
Yeah use a grid. And put this in the style part of it
BIG IMG.icon {width: 32px; height: 64px}

 > ""> 

Thanks, but no same effect-_-

Kyle_ZX wrote:
Nah it's not. Grids use the world's icon_size. It's not editable.

Ohh alright, that's unfortunate..
 #6 Sep 23 2011, 3:43 am In response to AbdelJN (#5) Do some research into client.screen, it does what you need.
In response to Robertbanks2 (#6)
Robertbanks2 wrote:
Do some research into client.screen, it does what you need.

Yeah I know but for some reason it isn't showing up.

  var/A='Base.dmi' src.icon=A src.Base=A var/obj/O=new/obj/HUD/Character(src.client) /O.icon=usr.icon O.overlays+=usr.overlays 

 obj HUD layer=100 Character New(client/C)//When created screen_loc = "Character:1,1" C.screen+=src `

That's what I'm currently using and it wont show up. I'm using a pane on the character creation interface that brings up the 'Character' map.
 #8 Sep 23 2011, 5:47 am In response to AbdelJN (#7) You're adding the object to client.screen BEFORE giving it an icon. Don't add it in New(), add it after you've adjusted its appearance.
 #9 Sep 23 2011, 5:51 am In response to Robertbanks2 (#8) Robertbanks2 wrote: You're adding the object to client.screen BEFORE giving it an icon. Don't add it in New(), add it after you've adjusted its appearance. Tried, same result. Even before, I had a preset icon for the HUD and nothing would show up.
 #10 Sep 23 2011, 5:54 am In response to Robertbanks2 (#8) Nevermind, my mistake. I found out that the name of the window and control were different. After changing it everything started working fine. Thanks :)
 #11 Sep 23 2011, 2:36 pm In response to AbdelJN (#5) AbdelJN wrote: Duelmaster409 wrote: I've tried to do this to no avail. Use a map element instead. But if I use a map element, won't all players appear there while creating their characters overlaying each other? Do you a know of a way so that players can only see their own character? Also, I'm not too familiar with setting players on another map element. Can you explain how to do it? uhhhhhh http://www.byond.com/members/ DreamMakers?command=view_post&post=75908
 #12 Sep 24 2011, 4:11 am In response to Duelmaster409 (#11) Duelmaster409 wrote: AbdelJN wrote: Duelmaster409 wrote: I've tried to do this to no avail. Use a map element instead. But if I use a map element, won't all players appear there while creating their characters overlaying each other? Do you a know of a way so that players can only see their own character? Also, I'm not too familiar with setting players on another map element. Can you explain how to do it? uhhhhhh http://www.byond.com/members/ DreamMakers?command=view_post&post=75908 Yeah I know, I've used it before but I forgot about it. I got it completely work now though, thanks!