Results 1 to 3 of 3

Thread: Problem

  
  1. #1
    Babkock's Avatar
    Babkock is offline Programmer -Hacks Member
    Join Date
    Jul 2009
    Location
    $PWD
    Posts
    282
    Rep Power
    64

    Default Problem

    OK, I am trying to run my own LUA script in PGE. Here's the script.
    Code:
    local verdana12 = pge.font.load(“./verdana.ttf”, 12)
    
    local green = pge.gfx.createcolor(0, 255, 0)
    
    while pge.running() do
    	pge.controls.update()
    	pge.gfx.startdrawing()
    	pge.gfx.clearscreen()
    
    	verdana12:activate()
    	verdana12:printcenter(136, green, “My name is Babkock”)
    
    	pge.gfx.enddrawing()
    	pge.gfx.swapbuffers()
    end
    When I start PGE, I get this.



    What am I doing wrong?

    My homebrew: ToneMatrix

  2. #2
    Organized_Chaos's Avatar
    Organized_Chaos is offline Senior Member -Hacks Titan
    Join Date
    May 2008
    Posts
    4,768
    Rep Power
    53961

    Default

    I'm not familiar with PGE but my guess is that you have a problem in the first line when you are setting the font.

  3. #3
    Babkock's Avatar
    Babkock is offline Programmer -Hacks Member
    Join Date
    Jul 2009
    Location
    $PWD
    Posts
    282
    Rep Power
    64

    Default

    Nevermind. I figured it out.
    My homebrew: ToneMatrix

Posting Permissions

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