Could you run this code to see if it works on your computer? It should show a white cube on a large green box. You can move/rotate the box with the WASD keys.
sync on : sync rate 60
backdrop on : color backdrop 0
autocam off
type pData
id as integer
endtype
objplayer as pData
objPlayer.id = 100
make object cube objPlayer.id,10
color object objPlayer.id,rgb(255,0,0)
set object light objPlayer.id, 0 : sc_setupobject objPlayer.id, 0, 0
make object box 1,1000,10,1000
position object 1,0,-10,0
set object ambience 1,rgb(0,220,0) : color object 1,rgb(0,200,0)
speed# = 4.0
x# = object position x(objPlayer.id)
y# = object position y(objPlayer.id)
z# = object position z(objPlayer.id)
position camera x#,y# + 15.0,z# - 100
point camera x#,y#,z#
repeat
` W key moves box forward
if keystate(17) = 1 then move object objPlayer.id,speed# : sc_updateobject objPlayer.id
` S key moves box backward
if keystate(31) = 1 then move object objPlayer.id,-speed# : sc_updateobject objPlayer.id
` A key rotates box left
if keystate(30) = 1
y# = object angle y(objPlayer.id)
y# = wrapvalue(y# - 1.0)
yrotate object objPlayer.id,y#
sc_updateobject objPlayer.id
endif
` D key rotates box right
if keystate(32) = 1
y# = object angle y(objPlayer.id)
y# = wrapvalue(y# + 1.0)
yrotate object objPlayer.id,y#
sc_updateobject objPlayer.id
endif
x# = object position x(objPlayer.id)
y# = object position y(objPlayer.id)
z# = object position z(objPlayer.id)
position camera x#,y# + 15.0,z# - 100
point camera x#,y#,z#
sync
until spacekey() = 1
delete object objPlayer.id
end
If it works, then the problem is in your code or the model itself. If it doesn't work, then I would suggest deleting and re-installing Sparky's.