Okay, so I'm trying to use a 96x32 icon as an overlay rather than making 3 seperate icons and coding them all just next to each other, but whenever the overlay is activated, it's automatically at the right most position rather than the middle. So like this O=overlay P=person X=blank
XXXXX
XXPXX
XXOOO
Is there a way to have it set in the middle?
ID:156637
Aug 22 2010, 10:02 am
|
|
Aug 22 2010, 10:07 am
|
|
is your person that big?, you might have to move your icon over a few pixels.
|
In response to Chaorace
|
|
Well the character is a single tile.
The overlay is 3 tiles, but I can't get the overlay to move over 1 so that my person is in the middle of it |
In response to Mallonee
|
|
Paste your code, even though i doubt it's code problem, maybe your overlay and person aren't alined.
Did you do src.overlays + = 'youriconhere.dmi' |
In response to Chaorace
|
|
mob/learn
verb Force() set category = "Abilities" switch(alert("Unleash Force?","Yes or No?","Unleash","Keep In")) if("Unleash") if(src.force_on) return else if(src.stance) src.overlays += stance_force src.force_on = 1 return else if(src.race == "Fremd") src.overlays += Fremd_force src.aura_on = 1 if("Keep In") src.overlays -= stance_force src.overlays -= Fremd_force src.force_on = 0 return |
In response to Garthor
|
|
Garthor wrote:
Use pixel_x and pixel_y. It doesn't seem to move it over a spot, it just moves the pixels |
In response to Mallonee
|
|
That's what it's suppose to do. Keep using it until you get the pixel where you want them. What would be more helpful for us to understand is if you post a screenshot.
|
In response to Chaorace
|
|
Chaorace wrote:
That's what it's suppose to do. Keep using it until you get the pixel where you want them. What would be more helpful for us to understand is if you post a screenshot. http://img834.imageshack.us/img834/9328/78309376.png I tried Pixel_x, it doesn't seem to be doing what it's supposed to though |
In response to Mallonee
|
|
try spliiting it into 3 parts 32 x 32 each, coding one under you and the other 2 on the side of you.
|
In response to Mallonee
|
|
Also, as a slightly unrelated comment, you need to become friends with HTML.
Engulf your code in [dm] [/dm] tags (the <font color = red>[</font> symbol being <font color = cyan><</font>, <font color = red>]</font> being <font color = cyan>></font>. When using an image link, take the website name (http://webs.com) and display it like so: [img src = "website name here"] |
In response to Mallonee
|
|
pixel_x is doing exactly what it's supposed to. Perhaps you need to read the Reference entry so you actually know what it's supposed to do?
|