Hello All,
I hope you are all having a wonderful day. Well right to the point then. I'm creating a small demo that showcases a sphere collecting various shapes ala katamari damacy.
I've recieved some help on it already from latch and he helped me a lot, but alas, i'm stuck again and i'm seeking some guidance.
I'm still working on it, but i would like some outside feedback as well. I appreciate it guys.
oh yea, here's the code.
sync on
sync rate 60
make object sphere 1,4
color object 1,rgb(0,200,0)
position object 1,0,0,20
ghost object on 1
set object collision to spheres 1
make mesh from object 1,1
add limb 1,1,1
offset limb 1,1,0,0,21
make object cone 2,25.0
position object 2,0,0,10
scale object 2,33,10,10
color object 2,rgb(200,0,0)
make object cylinder 3,3
position object 3,4,0,5
scale object 3,33,10,5
color object 3,rgb(20,0,20)
do
if leftkey() then turn object left 1,2
if rightkey() then turn object right 1,2
if upkey() then move object 1,1
if downkey() then move object 1,-1
if object collision(1,2)=1
if object collision(1,3)=1
glue object to limb 2,1,0
position object 2,0,0,0
set object collision on 2
glue object to limb 3,1,1
position object 3,0,1,1
set object collision on 3
endif
endif
sync
loop
have a good day everyone one, and happy easter!
zombie