Ok this might be bloody obvious but for some reason something that seems this simple is stumping me, all i want to do is make it so when an object say a sphere comes into contact with say... a box, i want the sphere to expand slowly, now i figured something like this would work :-
make matrix 1,1000,1000,25,25
make object sphere 1,20
make object cube 2,40
position object 2,800,20,500
x#=500
z#=500
set object collision to polygons 1
sync on
do
position object 1,x#,10,z#
if upkey()=1 then z#=z#+1
if downkey()=1 then z#=z#-1
if leftkey()=1 then x#=x#-1
if rightkey()=1 then x#=x#+1
position camera x#,500,z#-50
point camera x#,10,z#
if object collision (2,1)>0
For R=100 to 500
if object collision (1,2)>0
scale object 1,R,R,R
endif
Next R
endif
sync
loop
bit it seems i was wrong, the sphere just expands instantly and i want it to be a gradual thing, I tried using
Step but anything lower than 1 doesn't do anything and 1 just leads to instant resize. This seems to me like such a simple thing but i just can't get my head around it and it's making me feel kinda dumb. Any ideas?