As titled really. here is my working code:
load object "lev2.dbo",2 `line 184
set object light 2,1
set object texture 2,1,1
position object 2, 0,0,0
rem all level objects are group 1 (second entity)
` sc_setupComplexObject 2,1,6
`============================================
`main char
load object "char.dbo",1
`sparkys========================================
`sc_setupObject 1,0,1
`===============================================
do
control camera using arrowkeys 0,10,5
sync
loop
if memblock exist(1) then delete memblock 1
here is the code that crashes:
load object "lev2.dbo",2 `line 184
set object light 2,1
set object texture 2,1,1
position object 2, 0,0,0
rem all level objects are group 1 (second entity)
sc_setupComplexObject 2,1,6
`============================================
`main char
load object "char.dbo",1
`sparkys========================================
sc_setupObject 1,0,1
`===============================================
do
control camera using arrowkeys 0,10,5
sync
loop
if memblock exist(1) then delete memblock 1
(only difference being the:
sc_setupComplexObject 2,1,6 )
i took the :
sc_setupComplexObject 2,1,6
directly from a tutorial on this forum (which was quite good)
Simmilarly the tutorial on the forum all about sparkys wouldnt run either - i can compile with no worries, but then i get a breif black screen, followed by it closing itself down and returning me to my ide.
Any ideas? (yes the SC_Collision.dll is in the project directory where the exe resides)
Cheers
Paul