Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Unexpected variable/ background

    Work In Progress
    3
    4
    284
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Codemaster201 0
      Codemaster201 0 last edited by

      76BCC6B9-BE72-4805-9EE2-A3569A4B8EF4.jpeg
      Lin9 what am I missing?

      1 Reply Last reply Reply Quote 0
      • Kat
        Kat Fuze Team last edited by

        It looks like you have a misplaced bracket at the start of line 8. If you remove that and then edit line 9 to:

        drawImage( background, -screenx, -screeny, screenh / imageSize( background ).y )
        

        that should work, I think :)

        1 Reply Last reply Reply Quote 0
        • Dave
          Dave Fuze Team last edited by Dave

          I looks like you've got an unnecessary bracket at the start of line of 8, and a missing comma and missing bracket on line 9.

          You also have named the variable on line 3 as sceeny when I think you meant screenY - your program should read:

          background = loadImage("Selavi Games/bedroom") // No need for the false 
          screenx = 0
          screeny = 0
          
          loop
              clear()
              screenw = gwidth()
              screenh = gheight()
              drawImage(background, screenx, -screeny, screenh/imagesize(background).y)
              update()
          repeat
          

          Hope this helps.

          1 Reply Last reply Reply Quote 0
          • Codemaster201 0
            Codemaster201 0 last edited by

            Thank guys for all your help, I got working.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post