Advertisement
CaptainLepidus

Tweening Issue

Apr 4th, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Unfortunately, the following code does not tween properly as I was hoping it would.
  2.  
  3. 1 - ( ( arc / 2 ) / max( fangle( i - angle ) , 0.001 ) )
  4.  
  5. I'd like it such that:
  6.  
  7. if i == angle - arc / 2 || i == angle + arc / 2
  8. i = 0;
  9. if i == angle
  10. i = 1;
  11.  
  12. fangle just fixes angles so GM can use them: for example, -90 becomes 270 and 450 becomes 90.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement