ID:155518
 
If i was making an object that used overlay images for the front and back of it, how would i get the overlays to change locations when the object changes directions?

For example, in this, how can i get the boats front and back overlays to shift when the boat changes direction?

Do i have to delete and remake the overlays every time the boat moves or something?

obj/Boat
icon = 'Boat.dmi'
icon_state = "Middle"
New()
overlays += image('Boat.dmi',icon_state = "Front", pixel_x = 64)
overlays += image('Boat.dmi',icon_state = "Back", pixel_x = -64)
Test()
proc
Test()
walk_towards(src,locate("Destination"),5)
Make your overlay icon only 1 icon_state
and set your front icon as North & back icon as South
You'd have to make seperate objects; But may I ask why you don't just use big icons?
In response to Ill Im
edit: found a way to do it w/ image.