Yunus Bayram Posted July 29, 2017 Share Posted July 29, 2017 hi, I have a problem The message is moving right I do it left. Thank you for your help. px = 0 function makeTurn() local x,y = guiGetScreenSize() local x = x + 50 if px >= x then px = -x setMsg() else px = px + 13 end end function setMsg() if num == #msg then num = 1 else num = num + 1 end end ---- start = setTimer(makeTurn,50,0) Link to comment
Yunus Bayram Posted July 29, 2017 Author Share Posted July 29, 2017 3 hours ago, Yunus Bayram said: up Link to comment
coNolel Posted July 29, 2017 Share Posted July 29, 2017 you should know that the screen is starting from left and up , ( left x , up y ) also if you add +50 that mean it will go left+50, so if you want it to go from right to left you should use " - " insead of " + " didnt want to talk with a clear english just to make you understand . greetings. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now