*** This script rotates selected sprites by 90 degrees around board Y-axis.

for each selected sprite r00
  getsprite r00 x r01
  getsprite r00 z r02
  mul r01 16
  div r02 -16
  setsprite r00 z r01
  setsprite r00 x r02
continue