ID:140212
 
Code:


Problem description:

//this is just a test for hitsugaya bankai made into a verb for testing perposes//
//but because its in iso i am having trouble figuring out the correct pixel x and y and posibably z

/*mob
var
Health=10
Maxhealth=10
Strength=10
Defense=5
mdefense=5
Exp=0
ExpGet=5
MaxExp=5
Level=1
GoldGet=10
Gold
deaths=0
kills=0
wings=0
MStrength=10*/


mob/verb/Bankai()
set category = "Fighting"
set name = "Hitsugaya Bankai"
set hidden = 1
if(usr.wings==0)
usr.wings = 1
usr.overlays += 'icons.dmi'
usr.Strength += usr.MStrength * 7000
usr.Defense += usr.mdefense * 7000
usr.Health += usr.Maxhealth * 5000
usr.overlays += /obj/wing6
usr.overlays += /obj/wing2
usr.overlays += /obj/wing3
usr.overlays += /obj/wing4
usr.overlays += /obj/wing5
view(8)<< "Bankai, Sit Upon The Frozen Heavens!!!"
else
src.Strength = src.MStrength
src.Defense = src.mdefense
usr.overlays -= /obj/wing6
usr.Health = usr.Maxhealth
usr.overlays -= /obj/wing2
usr.overlays -= /obj/wing3
usr.overlays -= /obj/wing4
usr.overlays -= /obj/wing5
src.overlays -= 'icons.dmi'
usr.wings = 0

obj
wing6
icon = 'icons.dmi'
icon_state = "1"
pixel_x = -32
wing2
icon = 'icons.dmi'
icon_state = "4"
pixel_y = 32
wing3
icon = 'icons.dmi'
icon_state = "2"
pixel_x = 32
wing4
icon = 'icons.dmi'
icon_state = "3"
pixel_x = -32
pixel_y = 32
wing5
icon = 'icons.dmi'
icon_state = "5"
pixel_x = 32
pixel_y = 32



//ty
The map is rotated 45° clockwise and then tilted at an angle (30°) so you would have to base it off the new 45 degree x and y (bassically the North [x+32 y+0] becomes the new NorthEast, northeast becomes east, and so on.)
Code goes in the "Code" box? Highlighting would help get an understanding of what's what.
In response to Pirion
could you show me how it should be written?
In response to EGUY
Code:
//this is just a test for hitsugaya bankai made into a verb for testing perposes//
//but because its in iso i am having trouble figuring out the correct pixel x and y and posibably z

/*mob
var
Health=10
Maxhealth=10
Strength=10
Defense=5
mdefense=5
Exp=0
ExpGet=5
MaxExp=5
Level=1
GoldGet=10
Gold
deaths=0
kills=0
wings=0
MStrength=10*/



mob/verb/Bankai()
set category = "Fighting"
set name = "Hitsugaya Bankai"
set hidden = 1
if(usr.wings==0)
usr.wings = 1
usr.overlays += 'icons.dmi'
usr.Strength += usr.MStrength * 7000
usr.Defense += usr.mdefense * 7000
usr.Health += usr.Maxhealth * 5000
usr.overlays += /obj/wing6
usr.overlays += /obj/wing2
usr.overlays += /obj/wing3
usr.overlays += /obj/wing4
usr.overlays += /obj/wing5
view(8)<< "Bankai, Sit Upon The Frozen Heavens!!!"
else
src.Strength = src.MStrength
src.Defense = src.mdefense
usr.overlays -= /obj/wing6
usr.Health = usr.Maxhealth
usr.overlays -= /obj/wing2
usr.overlays -= /obj/wing3
usr.overlays -= /obj/wing4
usr.overlays -= /obj/wing5
src.overlays -= 'icons.dmi'
usr.wings = 0

obj
wing6
icon = 'icons.dmi'
icon_state = "1"
pixel_x = -32
wing2
icon = 'icons.dmi'
icon_state = "4"
pixel_y = 32
wing3
icon = 'icons.dmi'
icon_state = "2"
pixel_x = 32
wing4
icon = 'icons.dmi'
icon_state = "3"
pixel_x = -32
pixel_y = 32
wing5
icon = 'icons.dmi'
icon_state = "5"
pixel_x = 32
pixel_y = 32
//there you go

In response to Alec94
You still haven't described what you need.

Yes, I see that comment. That's not a description.
In response to Garthor
Desc:the icons seems to clash together and i cannot figure out what the correct pixel_y/x/z amounts should be
In response to Alec94
Best advise I can give it make the full icon somewhere on a map using different tiles. That way you can see what should be where, and you can derive the pixel_x and y.
In response to Alec94
Ah, I see: you are trying to use objects tiled from a top-down perspective in an isometric game. In that case, you need to set their layer to TOPDOWN_LAYER (+whatever to make it appear on the correct layer) or EFFECTS_LAYER.
In response to Garthor
think you garthor
In response to Alec94
it worked like a charm