Posted 24 March 2014 - 04:43 PM
Ok so I have this code: http://pastebin.com/00rKNwWc
I dont have any idea how to make the animation go smoother unless I reduce the sleep time to 0.00001 which is obviously bugging the glasses.
Maybe you can help me , guys?
The animation method:
I dont have any idea how to make the animation go smoother unless I reduce the sleep time to 0.00001 which is obviously bugging the glasses.
Maybe you can help me , guys?
The animation method:
- m = peripheral.wrap("top") – which is the terminal glasses bridge
- modem = peripheral.wrap("left") – which is the modem
- width = 150
- height = 50
- function animation()
- for i = 1,50 do
- m.clear()
- m.addBox(10, 10, width, height, 0xFFFFFF, 0.5)
- width = width - 3
- height = height - 1
- sleep(0.1)
- end
- for i = 1,50 do
- m.clear()
- m.addBox(10, 10, width, height, 0xFFFFFF, 0.5)
- width = width + 3
- height = height + 1
- sleep(0.1)
- end
- end