Results 1 to 5 of 5
  1. #1
    | ∞ |'s Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    In a white van.
    Posts
    3,320
    Reputation
    239
    Thanks
    301

    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
    DreamVille
    Posts
    6,653
    Reputation
    1240
    Thanks
    1,310
    My Mood
    Twisted
    ^

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

  4. #4
    𝕡𝕠𝕔𝕜𝕖𝕥𝕤 𝕤𝕠 𝕗𝕒𝕥
    Admin
    arunforce's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    A place for amigos
    Posts
    22,696
    Reputation
    3409
    Thanks
    10,669
    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.



    v1.96 - Tutorials, Upgraded Town, Def Revamp
    v1.97 - Cutscenes/Quests, Friend List
    v1.98 - Classes, Necklace/Rings
    v1.99 - Guilds
    v2.00 - Open Beta


  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
    In a white van.
    Posts
    3,320
    Reputation
    239
    Thanks
    301
    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, 07: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, 12:51 PM
  3. Anyone know how to shot with knockels?
    By EyalZamir in forum WarRock Korea Hacks
    Replies: 9
    Last Post: 05-20-2007, 01: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, 10: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, 06:18 PM