Results 1 to 2 of 2

Thread: extremely anoyed

  
  1. #1
    Xskorpion is offline -Hacks Newbie
    Join Date
    Nov 2005
    Posts
    10
    Rep Power
    0

    Default

    :evil:


    Code:
    pink = Color.new(255, 0 , 153)
    blue = Color.new(0 , 153, 255)
    orange = Color.new(255, 102, 0)
    gray = Color.new(153, 153, 153)
    red = Color.new(255, 0, 0)
    green = Color.new(0, 255, 0)
    black = Color.new(0, 0, 0)
    white = Color.new(255, 255, 255)
    
    screen:print(194, 136, "Loading: 0%", blue)
    screen.flip()
    player = Image.load("player.png")
    screen:clear()
    screen:print(194, 136, "Loading: 20%", blue)
    screen.flip()
    screen:clear()
    screen:print(194, 136, "Loading: 40%", blue)
    screen.flip()
    screen:clear()
    screen:print(194, 136, "Loading: 60%", blue)
    screen.flip()
    map = Image.load("map.png")
    screen:clear()
    screen:print(194, 136, "Loading: 80%", blue)
    screen.flip()
    screen:clear()
    screen:print(194, 136, "Loading: 90%", blue)
    screen.flip()
    screen:clear()
    screen:print(194, 136, "Loading: 100%", blue)
    screen.flip()
    screen.waitVblankStart(60)
    
    y = -272
    x = 0
    
    for y < 272 then
      y = y + 1
      screen:blit(x,y, map)
      System.sleep(500)
    end      
    screen:blit(239,271, player)
    end
    Right now I'm just trying to get 2 pics on the screen (simple right?) whats going wrong???

    Error: index.lua:37: '=' or 'in' expected near '<'

    WTF

    Thanks in advance


  2. #2
    romero126 is offline -Hacks Neophyte
    Join Date
    Jan 2006
    Posts
    81
    Rep Power
    14

    Default

    for y < 272 then






    ?????
    try
    while y < 272 do


    -- stuff here
    end

    or
    for y = -272, 272 do
    -- stuff here
    end

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •