A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: move enemies over road

  1. #1
    Junior Member
    Join Date
    Jan 2011
    Location
    BM,Morroco
    Posts
    17

    move enemies over road

    hello
    I want to make this movement by code (as3)



    only by code , I mean how to make the mc move only over the green area

    thanks in advence

  2. #2
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,227
    If the green area is predrawn, probably easiest way to move around, is to use checkpoints. Put invisible points on it, for example at the curves, then use simple "move toward point" code. Once close enough, start to move toward next point.

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