Jump to content

[HELP]Left message


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...