| View previous topic :: View next topic |
| Author |
Message |
Mak0
Joined: 27 Jan 2005 Posts: 36
|
Posted: Mon Aug 01, 2005 4:37 am Post subject: LUA blitImage help |
|
|
Im trying to simply laod and blit a PNG to screen but I get "error: script.lua:2 attempt to call global 'screenFrame' (a nil value)"
Here's my code, could someone who knows LUA explain to me what i'm doing wrong?
| Code: | image01 = loadImage("image.png")
screenFrame(1, 1)
screenFrame(1, 0)
blitImage(0, 0, image01) |
|
|
| Back to top |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Mon Aug 01, 2005 10:01 am Post subject: Re: LUA blitImage help |
|
|
The screenFrame function is not available any more, starting with Lua Player 0.3 (see README in the current version). The current version is Lua Player 0.4, with which it should work like this:
| Code: |
image01 = loadImage("image.png")
blitImage(0, 0, image01)
waitVblankStart()
flipScreen()
|
|
|
| Back to top |
|
 |
Mak0
Joined: 27 Jan 2005 Posts: 36
|
Posted: Mon Aug 01, 2005 10:57 am Post subject: |
|
|
| worked like a charm. thanks. |
|
| Back to top |
|
 |
|