look at it, and if you modify it a bit, you can make a pong, if you make 2 object as the object 2, and if the ball move on the Z or X axe instead of the Y
sync on
sync rate 30
make object sphere 1,5
set object collision on 1
set object collision to spheres 1
make object box 2,10,5,10
set object collision on 2
set object collision to boxes 2
position object 1,0,10,0
position object 2,0,-2.5,0
position camera -35,3,0
ballgravity# = 0.05
do
set cursor 0,0
print ballgravity#
position object 1,object position x(1),object position y(1)+ballgravity#,object position z(1)
point camera object position x(1),object position y(1),object position z(1)
dec ballgravity#,0.01
if object collision(1,2)=1 and ballgravity# < 0
ballgravity# = -0.81*ballgravity#
endif
sync
loop
I'm following John, but I'm not john.
Lol, it is funnier in french