-
Enthusiast
How to create or move object.
How to create or move object..
Somebody please help me...
-
-
Moooooooooooooooo
Re: How to create or move object.
-
Noob
Re: How to create or move object.
-
Enthusiast
Re: How to create or move object.

Originally Posted by
alphaest
nice tutorial.
+10
help le ..
-
Can't touch this!
Re: How to create or move object.
-
Novice
Re: How to create or move object.
In fact, because ".pos[1]" is sinunim to ".pos.x", ".pos[2]" is equal to ".pos.y", and ".pos[3]" is the same as ".pos.z", so you can use your radiobuttons index and...
-- this part of the code
if allBalls.count > 0 do
(
if ra1.state == 1 then s.pos.x = allBalls[allBalls.count].pos.x + sp1.value
else if ra1.state == 2 then s.pos.y = allBalls[allBalls.count].pos.y + sp1.value
else if ra1.state == 3 then s.pos.z = allBalls[allBalls.count].pos.z + sp1.value
)
-- will become shorter like this
if allBalls.count > 0 do
(
s.pos[ra1.state] = allBalls[allBalls.count].pos[ra1.state] + sp1.value
)
-- or even more shorter
if allBalls.count > 0 do
(
s.pos[ra1.state] = allBalls.count * sp1.value
)
-
Apprentice
Re: How to create or move object.
pos.x+sp1.value means it step 1 step x side..