Box=CreateObjectBox( 2, 4, 2 )
SetObjectScale(box,-1,1,-1)
SetObjectImage(box,createImg(),1)
Box2=CreateObjectBox( 2, 4, 2 )
SetObjectScale(box2,1,1,1)
SetObjectImage(box2,createImg(),1)
SetObjectPosition(box2,5,0,0)
do
RotateObjectLocalY( Box, 2 )
RotateObjectLocalY( Box2, 2 )
Sync()
loop
function createImg()
local data as integer [144] = [
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,1,1,1,1,0,0,0,0,
0,0,1,1,1,1,1,1,1,1,0,0,
0,0,1,1,1,1,1,1,1,1,0,0,
0,1,1,1,1,1,1,1,1,1,1,0,
0,1,1,1,1,1,1,1,1,1,1,0,
0,1,1,1,1,1,1,1,1,1,1,0,
0,1,1,1,1,1,1,1,1,1,1,0,
0,0,1,1,1,1,1,1,1,1,0,0,
0,0,1,1,1,1,1,1,1,1,0,0,
0,0,0,0,1,1,1,1,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0]
dataCount=0
ClearScreen()
for y = 0 to 11
for x = 0 to 11
if data[datacount]=1 then DrawLine(x,y,x,y,255,255,255)
inc dataCount,1
next x
next y
render()
img = getImage(0,0,12,12)
SetImageTransparentColor(img,0,0,0)
endfunction img
this demonstrates difference
i
fubar