Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Author(s): Nettoork#0000, Aandreixon
- ]]--
- local config = {
- x = 400,
- y = 400,
- velocity = 10
- }
- eventLoop = function()
- if config.y >= 400 or config.y <= 60 then
- config.velocity = -config.velocity
- end
- config.y = config.y + config.velocity
- tfm.exec.addPhysicObject(1, config.x, config.y, {width = 200})
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement