Okay,
I fixed the code. You said you were using DLL version 2.01 and the code I just built runs perfect for the 2.01 version.
Here it is:
#constant Type_Ellip=1
#constant Type_Mesh=2
#constant ELLIP_2_ELLIP=1
#constant Ellip_2_Poly=2
#constant Resp_stick=1
#constant RESP_SLIDE=2
#constant RESP_SLIDE_NO_SLOPES=3
#constant RESP_SLIDE_NO_GRAV=4
#constant RESP_NONE=5
#constant DYN_NO_RESP=1
#constant dyn_resp=2
#constant DYN_RESP_LOCK=3
#constant DYN_RESP_LOCK_NOTURN=4
sync on
StartCollisionPRO()
StartCollisionDebugPRO()
SetCollisionsPRO(Type_Ellip,Type_Mesh, Ellip_2_Poly,Resp_stick,dyn_resp)
rem SetCollisionsPRO(Type_Ellip,Type_Ellip,Ellip_2_Poly,Resp_stick,dyn_resp)
pong_ball =1
pong_pad1 =2
pong_pad2 =3
rem Make object box 3,39,2,39:Color object 3,RGB(255,255,255):Position object 3,0,-2,0
make object sphere pong_ball,4:Color object pong_ball,RGB(128,0,0):yrotate object pong_ball,-90
make object box pong_pad1,2,2,6:color object pong_pad1,rgb(255,128,0):position object pong_pad1,-18,0,0
make object box pong_pad2,2,2,6:color object pong_pad2,rgb(0,128,0):position object pong_pad2,18,0,0
CollisionTypePRO(pong_ball,type_ellip)
SetObjRadiusPRO( pong_ball, 2, 2, 2 )
collisionTypePRO(pong_pad1,Type_Mesh)
collisionTypePRO(pong_pad2,Type_Mesh)
Color backdrop RGB(155,155,255)
rem Make object box 3,39,2,39:Color object 3,RGB(255,255,255):Position object 3,0,-2,0
Position camera -30,30,-30:Point camera 0,0,-5:yrotate camera 45
Do
rem Move object 4,0.5
If upkey()=1 AND object position z(pong_ball) < 16 then position object pong_ball,object position x(pong_ball),object position y(pong_ball),object position z(pong_ball) + 1
If downkey()=1 AND object position z(pong_ball) > -16 then position object pong_ball,object position x(pong_ball),object position y(pong_ball),object position z(pong_ball) - 1
If leftkey()=1 AND object position z(pong_ball) < 16 then position object pong_ball,object position x(pong_ball) - 1, object position y(pong_ball),object position z(pong_ball)
If rightkey()=1 AND object position z(pong_ball) > -16 then position object pong_ball, object position x(pong_ball) + 1, object position y(pong_ball),object position z(pong_ball)
RunCollisionPRO()
collcount = CountCollisionsPRO(pong_ball)
for coll=1 to collcount
hitobj = CollisionHitObj(pong_ball,coll)
if hitobj = pong_pad1 then text 0,0,"hit pad 1"
if hitobj = pong_pad2 then text 0,12,"hit pad 2"
next coll
sync
Loop
Copy/Paste exactly as it is there. If it doesn't work then you're probably using the 2.03 version. Also, make sure you have the most recent patch of DBP installed.