Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Moving Items At The Same Time

  1. #11
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Just a quick thought before I leave for work again...

    why not use variables, locally. Give each button a value.

    moveStatus = 0;

    Then on the actual buttons:

    (say on _right1):
    Code:
    on(press){
       moveStatus = 1;
    }
    (say on _right2):
    Code:
    on(press){
       moveStatus = 2;
    }
    Then:
    Code:
    on(release){
       if (moveStatus == 1){
         //_right1 through _right 5 .originalX + 1.5;
           else if(moveStatus ==2){
                   //_right1 moves left, 2 through 5 .originalX +1.5;
    //etc.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  2. #12
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by BLiZZaRD
    Just a quick thought before I leave for work again...

    why not use variables, locally. Give each button a value.

    moveStatus = 0;

    Then on the actual buttons:

    (say on _right1):
    Code:
    on(press){
       moveStatus = 1;
    }
    (say on _right2):
    Code:
    on(press){
       moveStatus = 2;
    }
    Then:
    Code:
    on(release){
       if (moveStatus == 1){
         //_right1 through _right 5 .originalX + 1.5;
           else if(moveStatus ==2){
                   //_right1 moves left, 2 through 5 .originalX +1.5;
    //etc.
    So would I be changing all my code around?

  3. #13
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    No, nothing moved, just amended to. I will try to get back to you shortly with a proper code to try out.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  4. #14
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    I am stuck buddy. I have grow increasingly busy with paying clients on my sites. I should be able to get back to this in a few hours, unless you have a solution.

    Sorry for the delay!
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •