Hi There, Sorry about the delay in getting this to you, this is the simplest collistion example I can do, use left + Right to move, and Space to Jump, this example will yet you jump onto a box, but is more like on a platform game.
Set Display Mode 1280,1024,32
Sync On : Sync Rate 0
Gravity# = 0.5
Make Object Sphere 1,5 : Move Object Up 1,20
Make Object Box 2,100,5,5
Make Object Box 3,5,0.1,5 : Move Object Right 3,5 : Move Object Up 3,5
Make Object Box 4,5,0.1,5 : Move Object Right 4,10 : Move Object Up 4,10
Make Object Box 5,5,0.1,5 : Move Object Right 5,15 : Move Object Up 5,15
Make Object Box 6,5,0.1,5 : Move Object Right 6,20 : Move Object Up 6,20
Make Object Box 7,5,0.1,5 : Move Object Right 7,25 : Move Object Up 7,25
Make Object Box 8,5,0.1,5 : Move Object Right 8,30 : Move Object Up 8,30
Automatic Object Collision 1,2.5,1
Position Camera 0,20,-50
Do
Move Object Down 1,Gravity# : calculate automatic collision : ` Basic Gravity
If LeftKey() = 1 Then Move Object Left 1,0.5 : calculate automatic collision : ` Moving Left
If RightKey() = 1 Then Move Object Right 1,0.5 : calculate automatic collision : ` Moving Right
` Basic Jumping
If SpaceKey() = 1 And Jump = 0 Then Jump = 1 : JumpVal = 0
If Jump = 1 : Inc JumpVal,1 : Move Object Up 1,Gravity#*2 : Calculate Automatic Collision : If JumpVal = 10 : Jump = 2 : EndIf : EndIf
If Jump = 2 : Dec JumpVal,1 : If JumpVal = 0 : Jump = 0 : EndIf : EndIf
Sync : Loop
If you use a Physics Engine like DarkPhysics or Newtons, then that will do much better collision
I'll try to contact you back on MSN to let you know i've posted it here.
Everyone Be Cool, You, Be Cool.