Advertisement
alestane

Alternation 2

Dec 16th, 2012
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local phaseOne, phaseTwo --put local names into scope
  2. function phaseOne(self)
  3.     transition.to( self,  { time=1000, x = 450, onComplete = phaseTwo} )
  4. end
  5. function phaseTwo(self)
  6.     transition.to( self,  { time=1000, x = 25, onComplete = phaseOne} )
  7. end
  8.      
  9. function hangerGun:moveHangerGun()
  10.     print("1")
  11.     return phaseOne(self)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement