I'm trying to convert this to DBC but I'm stuck, it returns "severe exception!"
[EDIT]
Can someone test this for me, the only other thing that might be wrong is I'm not sure if memblocks use parentheses in DBC?
sync on : sync rate 60 : autocam off : color backdrop 0 : randomize timer()
for i = 1 to 5
make object sphere i, 100 : scale object i,100,16,16 : set object i,1,1,0
color object i, rgb(rnd(255),rnd(255),rnd(255)) : position object i, rnd(400)-200, rnd(400)-200, rnd(400)-200 : rotate object i, rnd(359), rnd(359), rnd(359)
make mesh from object i, i : make memblock from mesh i, i
next i
repeat
set cursor 0,0 : print "FPS: "; screen fps() : print "Ghost Mode (2-4): "; g
for i = 1 to 5
for vertex = 0 to memblock dword(i, 8) - 1
vpos = 12 + vertex * 32 : x# = memblock float(i, vpos) : y# = memblock float(i, vpos + 4) : z# = memblock float(i, vpos + 8)
x# = newxvalue(x#, wrapvalue(a# + vpos), 1) : y# = newyvalue(y#, wrapvalue(a# + vpos), 1) : z# = newzvalue(z#, wrapvalue(a# + vpos), 1)
write memblock float i, vpos, x# : write memblock float i, vpos + 4, y# : write memblock float i, vpos + 8, z#
next vertex
change mesh from memblock i, i : change mesh i, 0, i
if val(inkey$()) then g = val(inkey$())
if g then ghost object on i
next i
a# = wrapvalue(a# + 0.5) : set camera to follow 0, 0, 0, a#, 800, sin(a#) * 50, 50, 0 : sync
until mouseclick()
I am King of the noobs!