bapereira

Elevador

Oct 15th, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. --[[
  2. Project's author: Nettoork#0000
  3. ]]--
  4.  
  5. local config = {
  6. x = 400,
  7. y = 400,
  8. velocity = 10
  9. }
  10. eventLoop = function()
  11. if config.y >= 400 or config.y <= 60 then
  12. config.velocity = -config.velocity
  13. end
  14. config.y = config.y + config.velocity
  15. tfm.exec.addPhysicObject(1, config.x, config.y, {width = 200})
  16. end
Advertisement
Add Comment
Please, Sign In to add comment