A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] Need help on bounce

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    15

    [F8] Need help on bounce

    I like to make a ball to bounce on one place to another by click on the area
    Any one know how to do it

    Thank you
    below is my code for move the ball left and right

    =============================================


    delta = 5;
    totaldelta = 0;
    setInterval(updateDelta, 100);

    function updateDelta()
    {
    totaldelta += delta;
    delta--;

    }


    if (totaldelta < 0)
    {
    delta = 5;
    totaldelta = 0;
    }

    ball._x += delta;

    }

  2. #2
    When in doubt ask Eager Beaver's Avatar
    Join Date
    Feb 2007
    Location
    Planet Earth
    Posts
    911
    Please see the attached FLA (F8)
    Last edited by Eager Beaver; 10-25-2007 at 02:01 PM.
    <signature removed by admin>

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center