I am trying to figure out a easer way, trying to lesson my code load,
So I have a system to when you are at a certin range you then paste a image at that new location.
So I'm Shure there is a easy way to put this in a array or to simplify it.
Any help is appreciated.
if player().health>0 then paste sprite 2,screen width()-image width(1)+1135,screen HEIGHT ()-image HEIGHT (1)+322
if player().health>10 then paste sprite 3,screen width()-image width(1)+1140,screen HEIGHT ()-image HEIGHT (1)+322
if player().health>20 then paste sprite 4,screen width()-image width(1)+1145,screen HEIGHT ()-image HEIGHT (1)+322
if player().health>30 then paste sprite 5,screen width()-image width(1)+1150,screen HEIGHT ()-image HEIGHT (1)+322
if player().health>40 then paste sprite 6,screen width()-image width(1)+1155,screen HEIGHT ()-image HEIGHT (1)+322
if player().health>50 then paste sprite 7,screen width()-image width(1)+1160,screen HEIGHT ()-image HEIGHT (1)+322
if player().health>60 then paste sprite 8,screen width()-image width(1)+1165,screen HEIGHT ()-image HEIGHT (1)+322
if player().health>70 then paste sprite 9,screen width()-image width(1)+1170,screen HEIGHT ()-image HEIGHT (1)+322
if player().health>80 then paste sprite 10,screen width()-image width(1)+1175,screen HEIGHT ()-image HEIGHT (1)+322
if player().health>90 then paste sprite 11,screen width()-image width(1)+1180,screen HEIGHT ()-image HEIGHT (1)+322
if player().faith>0 then paste sprite 12,screen width()-image width(1)+1370,screen HEIGHT ()-image HEIGHT (1)+322
if player().faith>10 then paste sprite 13,screen width()-image width(1)+1375,screen HEIGHT ()-image HEIGHT (1)+322
if player().faith>20 then paste sprite 14,screen width()-image width(1)+1380,screen HEIGHT ()-image HEIGHT (1)+322
if player().faith>30 then paste sprite 15,screen width()-image width(1)+1385,screen HEIGHT ()-image HEIGHT (1)+322
if player().faith>40 then paste sprite 16,screen width()-image width(1)+1390,screen HEIGHT ()-image HEIGHT (1)+322
if player().faith>50 then paste sprite 17,screen width()-image width(1)+1395,screen HEIGHT ()-image HEIGHT (1)+322
if player().faith>60 then paste sprite 18,screen width()-image width(1)+1400,screen HEIGHT ()-image HEIGHT (1)+322
if player().faith>70 then paste sprite 19,screen width()-image width(1)+1405,screen HEIGHT ()-image HEIGHT (1)+322
if player().faith>80 then paste sprite 20,screen width()-image width(1)+1410,screen HEIGHT ()-image HEIGHT (1)+322
if player().faith>90 then paste sprite 21,screen width()-image width(1)+1415,screen HEIGHT ()-image HEIGHT (1)+322
if player().power>0 then paste sprite 22,screen width()-image width(1)+1650,screen HEIGHT ()-image HEIGHT (1)+322
if player().power>10 then paste sprite 23,screen width()-image width(1)+1655,screen HEIGHT ()-image HEIGHT (1)+322
if player().power>20 then paste sprite 24,screen width()-image width(1)+1660,screen HEIGHT ()-image HEIGHT (1)+322
if player().power>30 then paste sprite 25,screen width()-image width(1)+1665,screen HEIGHT ()-image HEIGHT (1)+322
if player().power>40 then paste sprite 26,screen width()-image width(1)+1670,screen HEIGHT ()-image HEIGHT (1)+322
if player().power>50 then paste sprite 27,screen width()-image width(1)+1675,screen HEIGHT ()-image HEIGHT (1)+322
if player().power>60 then paste sprite 28,screen width()-image width(1)+1680,screen HEIGHT ()-image HEIGHT (1)+322
if player().power>70 then paste sprite 29,screen width()-image width(1)+1685,screen HEIGHT ()-image HEIGHT (1)+322
if player().power>80 then paste sprite 30,screen width()-image width(1)+1690,screen HEIGHT ()-image HEIGHT (1)+322
if player().power>90 then paste sprite 31,screen width()-image width(1)+1695,screen HEIGHT ()-image HEIGHT (1)+322