So, when i try to make a new object; a sphere for example, it only says "the object already exist at line blabla" and it's the same damn line i wrote it. any ideas?
code goes like this;
sync on
sync rate 60
rem Toolbar
load image "MainToolBar.bmp",1
load image "MatSize1.bmp",2
load image "MatSize2.bmp",3
load image "MousePointer.bmp",4
load image "plusY.bmp",5
sprite 1, 550,-30,1
sprite 2, 570,20,2
sprite 3, 570,80,3
sprite 5,570,140,5
sprite 4,mousex(),mousey(),4
Make matrix 1,1000,1000,20,20
rem ---------------------------------------------
make object cube 1,30
rem ---------------------------------------------
do
objSelect=0
my=mousey()
mx=mousex()
mz=mousez()
set cursor 0,0
if pick object(mx,my,1,1)=1
scale object 1,50,50,50
yrotate object 1, object angle y (1)-0.9
set cursor 295,20
print "cube"
else
scale object 1,30,30,30
endif
if pick object(mx,my,1,1)=1 and mouseclick() = 1
objSelect = 1
endif
if objselect = 1
endif
rem ---------------------------------------------- rem
hide mouse
sprite 4,mousex(),mousey(), 4
control camera using arrowkeys 0,10,2
rem Objectin lisäys
rem KOKO 1
if sprite hit (4,2) and matrix exist(2) and mouseclick()=1
delete matrix 2
make matrix 1, 1000,1000,20,20
endif
rem KOKO 2
if sprite hit (4,3) and matrix exist(1) and mouseclick()=1
delete matrix 1
make matrix 2, 2000,2000,40,40
endif
rem MATRIKSIEN PÄIVITTÄMINEN
if matrix exist(1) then update matrix 1
if matrix exist(2) then update matrix 2
sync
loop