Help
Im having a hard time getting this code to work, if anyone knows what Im doing worng, please let me know. I think it has do to with the time...
if inkey$()="t"
ctime# = (timer() / 100)
ballalive = 1
position object 2,iballx#,ibally#,iballz#
else
time# = 0
endif
time# = (timer() / 100) - ctime#
time# = time# / 10
if ballalive = 1
vix# = power# * cos(theta)
viy# = power# * sin(theta)
ballx# = vix# * time# + 0.5 * 0 * sqrt(time#)
bally# = viy# * time# + 0.5 * -10 * sqrt(time#)
newballx# = ballx#+iballx#
newbally# = bally#+ibally#
position object 2,newballx#,newbally#,ballz#
endif
Thanks for the physics post.
Rob.