A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Tracing movement

  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    82

    Tracing movement

    I know this seems rather basic, but how can I trace if something is moving?

    I don't mean trace(thing._x), but like trace("hello") if thing += 5. Is this possible?

  2. #2
    Senior Member
    Join Date
    Jun 2008
    Posts
    549
    I assume you mean trace the position of the moving object. You need to place the trace() statement inside an onEnterFrame function.

  3. #3
    Member
    Join Date
    Sep 2006
    Posts
    82
    Why would you assume that when I said nothing about tracing position? Also, I was using trace as an example. I want to have something like if(thing._x += 5){ moveright=true }, but that doesn't work

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