Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on getRelativeSpritePositions
- repeat with n = 1 to _movie.lastChannel
- if sprite(n).member.name <> "torso" then next repeat
- torsoPos = sprite(n).loc
- exit repeat
- end repeat
- positions = []
- repeat with n = 1 to _movie.lastChannel
- if sprite(n).castLibNum <> castLib("character").number then next repeat
- positions.add(sprite(n).loc - torsoPos)
- end repeat
- return positions
- end
Add Comment
Please, Sign In to add comment