@Yodaman Jer
Your collision didn't work because of the collision type you set on the objects. You can only use
get object collision x()
get object collision y()
get object collision z()
if you create an object collision box or static collision box around the object.
Here's a correction of your example with just a change in the collision type though I'm not sure what you were doing with the teleportation:
Set Display Mode 1024,768,32
Sync On
Sync Rate 60
Autocam Off
Rem make teleporter object
Make object cube 2,10
Color object 2,rgb(80,100,230)
Position object 2,0,0,10
set object collision on 2
make object collision box 2,-5,-5,-5,5,5,5,0
Rem make platform
Make object box 3,4,1,20
Position object 3,0,0,0
`Set object collision to boxes 3
set object collision on 3
make object collision box 3,-2,-.5,-10,2,.5,10,0
Rem make character
Make object sphere 1,1
Color object 1,rgb(0,55,255)
Position object 1,0,10,0
`Set object collision to spheres 1
set object collision on 1
make object collision box 1,-.5,-.5,-.5,.5,.5,.5,0
Rem main loop
Do
Rem TELEPORTATION
if object collision(1,2) then position object 1,0,10,0
`controls
if upkey()=1 then move object 1,0.23
if downkey()=1 then move object 1,-0.23
if leftkey()=1 then yrotate object 1,wrapvalue(object angle y(1)-1.5)
if rightkey()=1 then yrotate object 1,wrapvalue(object angle y(1)+1.5)
if spacekey()=1 and playergrav#=0 then playergrav#=0.30 : play sound 4
`get current object position
posx#=object position x(1)
posy#=object position y(1)
posz#=object position z(1)
` gravity
playergrav#=playergrav#-0.01
posy#=posy#+playergrav#
`sliding collision
position object 1,posx#,posy#,posz#
if object collision(1,0)>0
dec posx#,get object collision x()
dec posy#,get object collision y()
dec posz#,get object collision z()
playergrav#=-0.0
endif
`set size for controlled object
s#=object size y(1)/2.0
`update with new object position
position object 1,posx#,posy#,posz#
`camera
angle#=object angle y(1)
camdist#=10.5 : camhigh#=posy#+2.5 : camfade#=12.5
set camera to follow posx#,posy#,posz#,angle#,camdist#,camhigh#,camfade#,1
xrotate camera 10
`end loop
sync
loop
Enjoy your day.