In order to render sprites in 3d you need to use SPVAR with SP% (see pic for example). The first line sets a sprite to SP%. The first three SPVAR lines controls x,y,z coordinates in the 2d map. The last SPVAR line controls height.