Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function angledGun:rotateAngledGunUp()
- local rotateUp -- like this you mean?.. doesnt seem to work here.
- function rotateAngledGunDown()
- if self.display.rotation > 0 then
- self.display.rotation = self.display.rotation - .5
- rotateUp = false
- else
- rotateUp = true
- end
- end
- if self.display.rotation < 45 and rotateUp == true then
- self.display.rotation = self.display.rotation + .5
- else
- rotateAngledGunDown()
- end
- --if I put it down here it works for one of the objects, but if I create more than one I have the --same problem
- end
Advertisement
Add Comment
Please, Sign In to add comment