A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: HELP!!!

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    21

    Thumbs up

    can some one help me make obsticles.PLEASE>

  2. #2
    What kind of obsticles? you need to give more info.

  3. #3
    Junior Member
    Join Date
    Aug 2002
    Posts
    21
    not a map.Just u put action script in it and there an obsticle

  4. #4
    Name it land and put this code in the car...

    speed *= .98;
    x = Math.sin(_rotation*(Math.PI/180))*speed;
    y = Math.cos(_rotation*(Math.PI/180))*speed*-1;
    if (!_root.land.hitTest(_x+x, _y+y, true)) {
    _x += x;
    _y += y;
    } else {
    speed *= -.6;
    }

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