Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- snapshot:rotate(_currentAngle) didn't work, so.....
- if _directionNumber == 1 then
- if _previousDirection == 2 then
- snapshot:rotate(-90)
- end
- if _previousDirection == 3 then
- snapshot:rotate(180)
- end
- if _previousDirection == 4 then
- snapshot:rotate(90)
- end
- end
- if _directionNumber == 2 then
- if _previousDirection ==1 then
- snapshot:rotate( 90 )
- elseif _previousDirection ==4 then
- snapshot:rotate( -180 )
- elseif _previousDirection ==3 then
- snapshot:rotate( -90 )
- end
- end
- if _directionNumber == 3 then
- if _previousDirection == 2 then
- snapshot:rotate(90)
- end
- if _previousDirection == 4 then
- snapshot:rotate(-90)
- end
- if _previousDirection == 1 then
- snapshot:rotate(180)
- end
- end
- if _directionNumber == 4 then
- if _previousDirection == 3 then
- snapshot:rotate(90)
- end
- if _previousDirection == 1 then
- snapshot:rotate(-90)
- end
- if _previousDirection == 2 then
- snapshot:rotate(180)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement