Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name BIZZLE LIFTER CODE SIMPLIFIED
- @inputs Mouse1 Mouse2 R
- @outputs Constant Damping Length
- @persist Length
- runOnTick(1)
- #=====================
- LifterInput=(Mouse1-Mouse2)
- Reset=(R)
- Constant=100000
- Damping=1500
- StationaryLength=100
- MinLength=0
- MaxLength=200
- RateOfChange=5
- #=====================
- if(Length==0){Length=StationaryLength}
- if(LifterInput==1){Length=Length+RateOfChange}
- if(Length>MaxLength){Length=MaxLength}
- if(LifterInput==-1){Length=Length-RateOfChange}
- if(Length<MinLength){Length=MinLength}
- if(LifterInput==0){Length=Length}
- if(Reset==1){Length=StationaryLength}
- #=====================
Advertisement
Add Comment
Please, Sign In to add comment