ID:154898
 
I'm making a battle system that only you and your opponent can see, and am wondering if there's an easier way to go about having the enemy's image move across the screen, so that only one person would see it?

    proc

Battle_Intro(mob/m)
world << "running battle intro"
world << "DEBUG: [player1.enemy[1]]"
var/mob/n = player1.enemy[1]
var/mob/enemy/opponent = new n.type
m.client.screen += opponent
opponent.layer = 30
opponent.icon = opponent.frontimage
opponent.screen_loc = "1,7"
sleep(1)
opponent.screen_loc = "1:10,7"
sleep(1)
opponent.screen_loc = "1:20,7"
sleep(1)
opponent.screen_loc = "1:32,7"
sleep(1)
opponent.screen_loc = "2:10,7"
sleep(1)
opponent.screen_loc = "2:20,7"
sleep(1)
opponent.screen_loc = "2:32,7"
sleep(1)
opponent.screen_loc = "3:10,7"
sleep(1)
opponent.screen_loc = "3:20,7"
sleep(1)
opponent.screen_loc = "3:32,7"
sleep(1)
opponent.screen_loc = "4:10,7"
sleep(1)
opponent.screen_loc = "4:20,7"
sleep(1)
opponent.screen_loc = "4:32,7"
Nevermind, it seems tolerable actually.