How to create or move object.

Results 1 to 7 of 7
  1. #1
    Enthusiast gilakentang is offline
    MemberRank
    Feb 2011 Join Date
    43Posts

    smile How to create or move object.

    How to create or move object..
    Somebody please help me...


  2. #2
    Moooooooooooooooo alphaest is offline
    MemberRank
    Jul 2006 Join Date
    WorldLocation
    2,026Posts

    Re: How to create or move object.

    Nice tutorial.

    +10

  3. #3
    Noob IzzdihaR is offline
    MemberRank
    Jun 2010 Join Date
    MALAYSIA!!!!!!!Location
    633Posts

    Re: How to create or move object.

    i give 10 start LOL :P

  4. #4
    Enthusiast gilakentang is offline
    MemberRank
    Feb 2011 Join Date
    43Posts

    Re: How to create or move object.

    Quote Originally Posted by alphaest View Post
    nice tutorial.

    +10
    help le ..

  5. #5
    Can't touch this! KaitoDaumoto is offline
    MemberRank
    Jul 2008 Join Date
    Balik PulauLocation
    1,442Posts

    Re: How to create or move object.

    + 100 stars xD

  6. #6
    Novice adamricky is offline
    MemberRank
    Aug 2011 Join Date
    1Posts

    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
    )

  7. #7
    Apprentice vitorex is offline
    MemberRank
    Jun 2011 Join Date
    14Posts

    Re: How to create or move object.

    pos.x+sp1.value means it step 1 step x side..



Advertisement