Hello. I recently jumped back on the programming scene to get back into the swing of things now that I have more free time on my hands. But my question is this...
Q. If you create an icon larger than the standard 32x32 size..say 96x96, and you give the specified icon a density, will it only effect the 32x32 spot in the bottom left-hand corner? When I launched the projectile at a dense object/icon, the bottom-left corner would be the only spot it stopped on. Because as I was experimenting, this seemed to be the case. And does it also apply for copying and pasting? I've spent countless hours working with this and putting in projectile proc's, etc. Also, when using the icon as a projectile, I noticed that it was offset. In the front of the character icon, (when it launched), facing SOUTH, would be the bottom left-hand corner. And I told the projectile to launch in front of the character icon. I was assuming the new version of BYOND would automatically center a large icon and give the density to the middle of the icon state... But I guess to some degree that wouldn't make sense..since you can't find an even middle with an odd icon size. Any help would be greatly appreciated. Just need to know where the "density" covers, basically.
ID:155829
Mar 8 2011, 5:16 pm
|
|
In response to Ripiz
|
|
Copying and pasting an icon being developed seperately from BYOND's engine. I prefer to use a seperate engine for custom icons. I just did a simple copy and paste for a random 96x96 icon and it centered it this time..so I'm assuming if I were to place a density on it, then just as you said, it would be in the center? But not for a 32x32 map icon size...So then let's say I make a movie state and the tile size for the first state is 96x96, that of course will make the rest of the states 96x96. Therefore, copying and pasting different states of the icon that are smaller, say 32x32, then it will NOT center it..(of course it wouldn't automatically center something that isn't in the icon perimeters of the original size in a movie state.) But to continue... let's say I copy/paste a 32x32 icon in the second movie state slot, of course it won't center it automatically, but will that affect the placement of the density even if the first slot in the movie state had the 96x96 icon?
Again, I'm just coming back on the BYOND scene after a few years of abscence, so bare with me, I might sound like a moron at times. Another question I have would be..when you say map icon size 32x32..do you mean my ACTUAL map icons? Or is this some kind of setting? Had a thought..so my map icon sizes have to equal a character or projectile icon size for the density to be placed correctly? I would like to avoid placing extra density spots on a projectile..or even a stationary icon state. I hope I didn't make this too confusing. I'm barely keeping up with myself..(lack of sleep) Update* Tested a few things...I noticed when I placed a 96x96 obj on the non-dense turf on the map, the 96x96 projectile hit it dead center and passed it on the sides, meaning the density was placed in the center. Perfect. But when I tried a similar scenario with a 32x32 obj, I had to move to the right, then facing the obj with one 32x32 space off, (as I assumed the pixel offset would be exactly what you said), and the projectile made contact with the obj. I guess this means I'm gonna have to make a seperate density turf to cover the objs anyway. Makes it more simplified in the long run. My goal was to get the density in the spots I needed for the projectiles and objs so the pixel offset doesn't interfere with the game experience. That copy/paste question still remains though, I don't want that density moving around and effecting the pixel offset just because I bring a different size into the movie, or just because I'm copying and pasting IN the different movie icon states. |
Copy/pasting what?
Same as before, it works in tiled way, If you use 96x96 icon in 32x32 icon size system, only one tile is dense, others are just overlays with pixel offsets.