A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: help rotating track as oppsed to vehicle

  1. #1
    Member
    Join Date
    Aug 2001
    Posts
    64
    hi, I want to make a racing game but I want the track to move around the car giving the illusion that the car is moving. straight awas are easy, i need help with curves. I used movie clip curves with hitest to rotate the entire track when vehicle is on the curve an the user is turning. Plain and simple I want a vehicle stationary with a moving track. Help Please!!!!!

  2. #2
    hi

    ive posted many answer to this in the past, search the boards.

    But a quick answer is, if you can move the car properly using the key, then instead of moving the car, move the terrain your driving over in the opposite direction to you would move normally.

    ie...

    if your controls to move the car where
    Code:
    _x =+ xSpeed;
    _y =+ ySpeed;
    then you would target the terrain
    Code:
    terrain._x =- xSpeed;
    terrain._y =- ySpeed;
    so all that really happens is the signs are reversed and the terrain is targeted as opposed to the main moive

    i hope this clears things up abit, but your best bet is searching the message boards

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