Results 1 to 5 of 5
  1. #1
    | ∞ |'s Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    Mars
    Posts
    3,323
    Reputation
    239
    Thanks
    303

    Anyone know ActionScript 2?

    Hey, I need some help with ActionScript. I'm supposed to write a script to track a movement of an object, such as a ball, using action script 2.0 (yes, my school's really outdated). Can anyone help me with this?

    I'm bad at explaining this but say an object falls, every ~5 pixels, it will create that object stationary in that location. So that way you can see the path the object takes.

  2. #2
    AQWThunder's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    X:\teapot\>sip stardaze [ENTER]
    Posts
    388
    Reputation
    24
    Thanks
    62
    Quote Originally Posted by | ∞ | View Post
    Hey, I need some help with ActionScript. I'm supposed to write a script to track a movement of an object, such as a ball, using action script 2.0 (yes, my school's really outdated). Can anyone help me with this?

    I'm bad at explaining this but say an object falls, every ~5 pixels, it will create that object stationary in that location. So that way you can see the path the object takes.
    Does it have to be ActionScript 2? Why not ActionScript 3?

  3. #3
    Euphemistic's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Jungle
    Posts
    6,811
    Reputation
    1315
    Thanks
    1,330
    My Mood
    Twisted
    ^

    If it was AS3 I could help you out -- but too bad it isn't.

  4. #4
    arunforce's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    A place for amigos
    Posts
    24,703
    Reputation
    4747
    Thanks
    12,562
    My Mood
    Yeehaw
    Path prediction?

    Write a formula for the motion of the object with respect to time, plug in time, and check if the ball or whatever collides with the boundary each frame. The moment it does, t-1 is the time to predict the path.


    function psuedoformula(time)
    {
    var new_y = ball._y + time*5;

    if (new_y > 300) //if the ball is past 300 (the boundary)
    return -1;
    else
    return new_y;
    }

    var time = 0;

    while (psuedoformula(time) != -1)
    {
    time++;
    }

    var ball2 = attachMovieClip(ball_symbol);
    ball2._alpha = 50;
    ball2._y = psuedoFormula(time-1);
    Off the top of my head.



    BRING BACK BT, BRING BACK SAGA, BRING BACK VF, BRING BACK MPGHCRAFT, BRING BACK HABAMON


  5. The Following User Says Thank You to arunforce For This Useful Post:

    | ∞ | (05-16-2014)

  6. #5
    | ∞ |'s Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    Mars
    Posts
    3,323
    Reputation
    239
    Thanks
    303
    Quote Originally Posted by AQWThunder View Post
    Does it have to be ActionScript 2? Why not ActionScript 3?
    My school requires that for some reason.

    Quote Originally Posted by arunforce View Post
    Path prediction?

    Write a formula for the motion of the object with respect to time, plug in time, and check if the ball or whatever collides with the boundary each frame. The moment it does, t-1 is the time to predict the path.



    Off the top of my head.
    Awesome thanks!

Similar Threads

  1. Does anyone know a hack for warrock dinar
    By killa017 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 05-30-2007, 06:17 PM
  2. Does anyone know why I was IP banned?
    By systemx84 in forum WarRock - International Hacks
    Replies: 2
    Last Post: 05-28-2007, 11:51 AM
  3. Anyone know how to shot with knockels?
    By EyalZamir in forum WarRock Korea Hacks
    Replies: 9
    Last Post: 05-20-2007, 12:12 PM
  4. anyone knows how to get trainer maker works?
    By xydox in forum WarRock - International Hacks
    Replies: 0
    Last Post: 05-03-2007, 09:35 AM
  5. Lookin for WOW 1 Hit kill hack anyone know how to do it
    By Spiderman in forum General Game Hacking
    Replies: 5
    Last Post: 02-10-2006, 05:18 PM