Skip to main content
Participating Frequently
April 21, 2011
Answered

Detect a movieclip's += direction?

  • April 21, 2011
  • 1 reply
  • 301 views

Hello,

I want to know how if a movieclip is going += ._y or -=._y


Thanks.

This topic has been closed for replies.
Correct answer Ned Murphy

Without providing for it otherwise, you would need to continually test whether the current _y value is greater than or less than the previous _y value.

I'd probably prepare something such that I'd have a variable assigned values to tell me that status which would be set any time I specify ._y += or ._y -=

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
April 21, 2011

Without providing for it otherwise, you would need to continually test whether the current _y value is greater than or less than the previous _y value.

I'd probably prepare something such that I'd have a variable assigned values to tell me that status which would be set any time I specify ._y += or ._y -=