LUA Image loading problem
Moderators: Shine, Insert_witty_name
-
- Posts: 3
- Joined: Thu Dec 14, 2006 5:08 am
- Contact:
LUA Image loading problem
I have written a script which loads 81 images, but the script player sends an error: Too much images
How can I fix this?
----------Script Begin------------
aa = Image.load("001.jpg")
ab = Image.load("002.jpg")
ac = Image.load("003.jpg")
ad = Image.load("004.jpg")
ae = Image.load("005.jpg")
af = Image.load("006.jpg")
ag = Image.load("007.jpg")
ah = Image.load("008.jpg")
ai = Image.load("009.jpg")
aj = Image.load("010.jpg")
ak = Image.load("011.jpg")
al = Image.load("012.jpg")
am = Image.load("013.jpg")
an = Image.load("014.jpg")
ao = Image.load("015.jpg")
ap = Image.load("016.jpg")
aq = Image.load("017.jpg")
ar = Image.load("018.jpg")
as = Image.load("019.jpg")
at = Image.load("020.jpg")
au = Image.load("021.jpg")
av = Image.load("022.jpg")
aw = Image.load("023.jpg")
ax = Image.load("024.jpg")
ay = Image.load("025.jpg")
az = Image.load("026.jpg")
ba = Image.load("027.jpg")
bb = Image.load("028.jpg")
bc = Image.load("029.jpg")
bd = Image.load("030.jpg")
be = Image.load("031.jpg")
bf = Image.load("032.jpg")
bg = Image.load("033.jpg")
bh = Image.load("034.jpg")
bi = Image.load("035.jpg")
bj = Image.load("036.jpg")
bk = Image.load("037.jpg")
bl = Image.load("038.jpg")
bm = Image.load("039.jpg")
bn = Image.load("040.jpg")
bo = Image.load("041.jpg")
bp = Image.load("042.jpg")
bq = Image.load("043.jpg")
br = Image.load("044.jpg")
bs = Image.load("045.jpg")
bt = Image.load("046.jpg")
bu = Image.load("047.jpg")
bv = Image.load("048.jpg")
bw = Image.load("049.jpg")
bx = Image.load("050.jpg")
by = Image.load("051.jpg")
bz = Image.load("052.jpg")
ca = Image.load("053.jpg")
cb = Image.load("054.jpg")
cc = Image.load("055.jpg")
cd = Image.load("056.jpg")
ce = Image.load("057.jpg")
cf = Image.load("058.jpg")
cg = Image.load("059.jpg")
ch = Image.load("060.jpg")
ci = Image.load("061.jpg")
cj = Image.load("062.jpg")
ck = Image.load("063.jpg")
cl = Image.load("064.jpg")
cm = Image.load("065.jpg")
cn = Image.load("066.jpg")
co = Image.load("067.jpg")
cp = Image.load("068.jpg")
cq = Image.load("069.jpg")
cr = Image.load("070.jpg")
cs = Image.load("071.jpg")
ct = Image.load("072.jpg")
cu = Image.load("073.jpg")
cv = Image.load("074.jpg")
cw = Image.load("075.jpg")
cx = Image.load("076.jpg")
cy = Image.load("077.jpg")
cz = Image.load("078.jpg")
da = Image.load("079.jpg")
db = Image.load("080.jpg")
dc = Image.load("081.jpg")
----------Script End------------
Thx for Helping!
How can I fix this?
----------Script Begin------------
aa = Image.load("001.jpg")
ab = Image.load("002.jpg")
ac = Image.load("003.jpg")
ad = Image.load("004.jpg")
ae = Image.load("005.jpg")
af = Image.load("006.jpg")
ag = Image.load("007.jpg")
ah = Image.load("008.jpg")
ai = Image.load("009.jpg")
aj = Image.load("010.jpg")
ak = Image.load("011.jpg")
al = Image.load("012.jpg")
am = Image.load("013.jpg")
an = Image.load("014.jpg")
ao = Image.load("015.jpg")
ap = Image.load("016.jpg")
aq = Image.load("017.jpg")
ar = Image.load("018.jpg")
as = Image.load("019.jpg")
at = Image.load("020.jpg")
au = Image.load("021.jpg")
av = Image.load("022.jpg")
aw = Image.load("023.jpg")
ax = Image.load("024.jpg")
ay = Image.load("025.jpg")
az = Image.load("026.jpg")
ba = Image.load("027.jpg")
bb = Image.load("028.jpg")
bc = Image.load("029.jpg")
bd = Image.load("030.jpg")
be = Image.load("031.jpg")
bf = Image.load("032.jpg")
bg = Image.load("033.jpg")
bh = Image.load("034.jpg")
bi = Image.load("035.jpg")
bj = Image.load("036.jpg")
bk = Image.load("037.jpg")
bl = Image.load("038.jpg")
bm = Image.load("039.jpg")
bn = Image.load("040.jpg")
bo = Image.load("041.jpg")
bp = Image.load("042.jpg")
bq = Image.load("043.jpg")
br = Image.load("044.jpg")
bs = Image.load("045.jpg")
bt = Image.load("046.jpg")
bu = Image.load("047.jpg")
bv = Image.load("048.jpg")
bw = Image.load("049.jpg")
bx = Image.load("050.jpg")
by = Image.load("051.jpg")
bz = Image.load("052.jpg")
ca = Image.load("053.jpg")
cb = Image.load("054.jpg")
cc = Image.load("055.jpg")
cd = Image.load("056.jpg")
ce = Image.load("057.jpg")
cf = Image.load("058.jpg")
cg = Image.load("059.jpg")
ch = Image.load("060.jpg")
ci = Image.load("061.jpg")
cj = Image.load("062.jpg")
ck = Image.load("063.jpg")
cl = Image.load("064.jpg")
cm = Image.load("065.jpg")
cn = Image.load("066.jpg")
co = Image.load("067.jpg")
cp = Image.load("068.jpg")
cq = Image.load("069.jpg")
cr = Image.load("070.jpg")
cs = Image.load("071.jpg")
ct = Image.load("072.jpg")
cu = Image.load("073.jpg")
cv = Image.load("074.jpg")
cw = Image.load("075.jpg")
cx = Image.load("076.jpg")
cy = Image.load("077.jpg")
cz = Image.load("078.jpg")
da = Image.load("079.jpg")
db = Image.load("080.jpg")
dc = Image.load("081.jpg")
----------Script End------------
Thx for Helping!
visit my site (will be updated)
www.wiredcore.at
www.wiredcore.at
You are loading too many and too much at a time, in to the RAM.
load only what you need, and/or garbage collect the ones you no longer need by setting them to nil.
You might wanna use a set of variables for the 001,jpg or/and the rest
for example
imagenumber = 0
imagenumber + 1 == imagenumber
or use Arrrays
group the pictures you wishes to use first in to a group, load that group.
when you no longer needed, remove group, load a new one.
`Mesmer
load only what you need, and/or garbage collect the ones you no longer need by setting them to nil.
You might wanna use a set of variables for the 001,jpg or/and the rest
for example
imagenumber = 0
imagenumber + 1 == imagenumber
or use Arrrays
group the pictures you wishes to use first in to a group, load that group.
when you no longer needed, remove group, load a new one.
`Mesmer
-
- Posts: 3
- Joined: Thu Dec 14, 2006 5:08 am
- Contact:
Thx for your answer!
But that is the problem > I need all images. Cause this should be an animation application. blend from 001 to 002 to 003 and so on. Each Jpeg file uses 16-17kB space.
Or supports lua gif animations or video files?
If it is possible, so let me know.
Thx for Helping
But that is the problem > I need all images. Cause this should be an animation application. blend from 001 to 002 to 003 and so on. Each Jpeg file uses 16-17kB space.
Or supports lua gif animations or video files?
If it is possible, so let me know.
Thx for Helping
visit my site (will be updated)
www.wiredcore.at
www.wiredcore.at
Ah Ic, this An animation app.
well, since you can only displace 1 image at a time, since it's an animation.
lets think about it this way.
you load image 1 ~ 5.
show 1, wait .2 seconds. show 2. and so on.
(Just a example above.)
soon as you finished showing jpg 1. set it to nil, garbage collect it.
load jpg 6.
and when you hit the last image, you wanna loop it back and load 1 again?
hope that helped ^ ^
`Mesmer
well, since you can only displace 1 image at a time, since it's an animation.
lets think about it this way.
you load image 1 ~ 5.
show 1, wait .2 seconds. show 2. and so on.
(Just a example above.)
soon as you finished showing jpg 1. set it to nil, garbage collect it.
load jpg 6.
and when you hit the last image, you wanna loop it back and load 1 again?
hope that helped ^ ^
`Mesmer
-
- Posts: 3
- Joined: Thu Dec 14, 2006 5:08 am
- Contact:
At first thx for answering so fast!
I show you the code so you can see what I mean:
-------------index start--------------------
aa = Image.load("001.jpg")
ab = Image.load("002.jpg")
ac = Image.load("003.jpg")
ad = Image.load("004.jpg")
ae = Image.load("005.jpg")
af = Image.load("006.jpg")
ag = Image.load("007.jpg")
ah = Image.load("008.jpg")
ai = Image.load("009.jpg")
aj = Image.load("010.jpg")
ak = Image.load("011.jpg")
al = Image.load("012.jpg")
am = Image.load("013.jpg")
an = Image.load("014.jpg")
ao = Image.load("015.jpg")
ap = Image.load("016.jpg")
aq = Image.load("017.jpg")
ar = Image.load("018.jpg")
as = Image.load("019.jpg")
at = Image.load("020.jpg")
au = Image.load("021.jpg")
av = Image.load("022.jpg")
aw = Image.load("023.jpg")
ax = Image.load("024.jpg")
ay = Image.load("025.jpg")
az = Image.load("026.jpg")
ba = Image.load("027.jpg")
bb = Image.load("028.jpg")
bc = Image.load("029.jpg")
bd = Image.load("030.jpg")
be = Image.load("031.jpg")
bf = Image.load("032.jpg")
bg = Image.load("033.jpg")
bh = Image.load("034.jpg")
bi = Image.load("035.jpg")
bj = Image.load("036.jpg")
bk = Image.load("037.jpg")
bl = Image.load("038.jpg")
bm = Image.load("039.jpg")
bn = Image.load("040.jpg")
bo = Image.load("041.jpg")
bp = Image.load("042.jpg")
bq = Image.load("043.jpg")
br = Image.load("044.jpg")
bs = Image.load("045.jpg")
bt = Image.load("046.jpg")
bu = Image.load("047.jpg")
bv = Image.load("048.jpg")
bw = Image.load("049.jpg")
bx = Image.load("050.jpg")
by = Image.load("051.jpg")
bz = Image.load("052.jpg")
ca = Image.load("053.jpg")
cb = Image.load("054.jpg")
cc = Image.load("055.jpg")
cd = Image.load("056.jpg")
ce = Image.load("057.jpg")
cf = Image.load("058.jpg")
cg = Image.load("059.jpg")
ch = Image.load("060.jpg")
ci = Image.load("061.jpg")
cj = Image.load("062.jpg")
ck = Image.load("063.jpg")
cl = Image.load("064.jpg")
cm = Image.load("065.jpg")
cn = Image.load("066.jpg")
co = Image.load("067.jpg")
cp = Image.load("068.jpg")
cq = Image.load("069.jpg")
cr = Image.load("070.jpg")
cs = Image.load("071.jpg")
ct = Image.load("072.jpg")
cu = Image.load("073.jpg")
cv = Image.load("074.jpg")
cw = Image.load("075.jpg")
cx = Image.load("076.jpg")
cy = Image.load("077.jpg")
cz = Image.load("078.jpg")
da = Image.load("079.jpg")
db = Image.load("080.jpg")
dc = Image.load("081.jpg")
red = Color.new(255, 0, 0)
screen:print(194, 136, "Loading: 0%", red)
screen.flip()
screen:clear()
screen:print(194, 136, "Loading: 10%", red)
screen.flip()
screen.waitVblankStart(20 )
screen:clear()
screen:print(194, 136, "Loading: 20%", red)
screen.flip()
screen.waitVblankStart(20 )
screen:clear()
screen:print(194, 136, "Loading: 40%", red)
screen.flip()
screen.waitVblankStart(20 )
screen:clear()
screen:print(194, 136, "Loading: 80%", red)
screen.flip()
screen.waitVblankStart(20 )
screen:clear()
screen:print(194, 136, "Loading: 100%", red)
screen.flip()
screen.waitVblankStart(20 )
while true do
screen:blit(0, 0, aa, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ab, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ac, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ad, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ae, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, af, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ag, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ah, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ai, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, aj, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ak, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, al, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, am, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, an, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ao, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ap, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, aq, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ar, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, as, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, at, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, au, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, av, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, aw, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ax, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ay, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, az, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ba, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bb, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bc, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bd, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, be, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bf, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bg, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bh, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bi, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bj, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bk, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bl, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bm, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bn, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bo, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bp, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bq, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, br, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bs, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bt, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bu, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bv, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bw, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bx, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, by, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bz, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ca, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cb, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cc, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cd, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ce, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cf, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cg, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ch, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ci, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cj, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ck, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cl, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cm, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cn, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, co, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cp, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cq, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cr, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cs, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ct, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cu, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cv, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cw, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cx, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cy, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cz, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, da, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, db, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, dc, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, db, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, da, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cz, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cy, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cx, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cw, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cv, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cu, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ct, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cs, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cr, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cq, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cp, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, co, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cn, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cm, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cl, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ck, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cj, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ci, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ch, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cg, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cf, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ce, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cd, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cc, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cb, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ca, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bz, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, by, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bx, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bw, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bv, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bu, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bt, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bs, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, br, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bq, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bp, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bo, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bn, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bm, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bl, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bk, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bj, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bi, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bh, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bg, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bf, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, be, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bd, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bc, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bb, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ba, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, az, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ay, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ax, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, aw, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, av, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, au, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, at, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, as, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ar, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, aq, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ap, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ao, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, an, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, am, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, al, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ak, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, aj, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ai, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ah, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ag, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, af, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ae, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ad, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ac, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ab, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
end
-------------index end--------------------
Image Properties: 480x272pix
Size: 15-17kb
24BPP
81 Images
THX, mcstylez
I show you the code so you can see what I mean:
-------------index start--------------------
aa = Image.load("001.jpg")
ab = Image.load("002.jpg")
ac = Image.load("003.jpg")
ad = Image.load("004.jpg")
ae = Image.load("005.jpg")
af = Image.load("006.jpg")
ag = Image.load("007.jpg")
ah = Image.load("008.jpg")
ai = Image.load("009.jpg")
aj = Image.load("010.jpg")
ak = Image.load("011.jpg")
al = Image.load("012.jpg")
am = Image.load("013.jpg")
an = Image.load("014.jpg")
ao = Image.load("015.jpg")
ap = Image.load("016.jpg")
aq = Image.load("017.jpg")
ar = Image.load("018.jpg")
as = Image.load("019.jpg")
at = Image.load("020.jpg")
au = Image.load("021.jpg")
av = Image.load("022.jpg")
aw = Image.load("023.jpg")
ax = Image.load("024.jpg")
ay = Image.load("025.jpg")
az = Image.load("026.jpg")
ba = Image.load("027.jpg")
bb = Image.load("028.jpg")
bc = Image.load("029.jpg")
bd = Image.load("030.jpg")
be = Image.load("031.jpg")
bf = Image.load("032.jpg")
bg = Image.load("033.jpg")
bh = Image.load("034.jpg")
bi = Image.load("035.jpg")
bj = Image.load("036.jpg")
bk = Image.load("037.jpg")
bl = Image.load("038.jpg")
bm = Image.load("039.jpg")
bn = Image.load("040.jpg")
bo = Image.load("041.jpg")
bp = Image.load("042.jpg")
bq = Image.load("043.jpg")
br = Image.load("044.jpg")
bs = Image.load("045.jpg")
bt = Image.load("046.jpg")
bu = Image.load("047.jpg")
bv = Image.load("048.jpg")
bw = Image.load("049.jpg")
bx = Image.load("050.jpg")
by = Image.load("051.jpg")
bz = Image.load("052.jpg")
ca = Image.load("053.jpg")
cb = Image.load("054.jpg")
cc = Image.load("055.jpg")
cd = Image.load("056.jpg")
ce = Image.load("057.jpg")
cf = Image.load("058.jpg")
cg = Image.load("059.jpg")
ch = Image.load("060.jpg")
ci = Image.load("061.jpg")
cj = Image.load("062.jpg")
ck = Image.load("063.jpg")
cl = Image.load("064.jpg")
cm = Image.load("065.jpg")
cn = Image.load("066.jpg")
co = Image.load("067.jpg")
cp = Image.load("068.jpg")
cq = Image.load("069.jpg")
cr = Image.load("070.jpg")
cs = Image.load("071.jpg")
ct = Image.load("072.jpg")
cu = Image.load("073.jpg")
cv = Image.load("074.jpg")
cw = Image.load("075.jpg")
cx = Image.load("076.jpg")
cy = Image.load("077.jpg")
cz = Image.load("078.jpg")
da = Image.load("079.jpg")
db = Image.load("080.jpg")
dc = Image.load("081.jpg")
red = Color.new(255, 0, 0)
screen:print(194, 136, "Loading: 0%", red)
screen.flip()
screen:clear()
screen:print(194, 136, "Loading: 10%", red)
screen.flip()
screen.waitVblankStart(20 )
screen:clear()
screen:print(194, 136, "Loading: 20%", red)
screen.flip()
screen.waitVblankStart(20 )
screen:clear()
screen:print(194, 136, "Loading: 40%", red)
screen.flip()
screen.waitVblankStart(20 )
screen:clear()
screen:print(194, 136, "Loading: 80%", red)
screen.flip()
screen.waitVblankStart(20 )
screen:clear()
screen:print(194, 136, "Loading: 100%", red)
screen.flip()
screen.waitVblankStart(20 )
while true do
screen:blit(0, 0, aa, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ab, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ac, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ad, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ae, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, af, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ag, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ah, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ai, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, aj, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ak, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, al, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, am, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, an, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ao, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ap, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, aq, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ar, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, as, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, at, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, au, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, av, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, aw, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ax, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ay, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, az, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ba, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bb, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bc, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bd, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, be, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bf, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bg, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bh, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bi, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bj, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bk, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bl, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bm, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bn, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bo, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bp, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bq, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, br, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bs, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bt, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bu, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bv, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bw, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bx, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, by, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bz, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ca, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cb, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cc, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cd, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ce, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cf, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cg, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ch, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ci, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cj, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ck, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cl, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cm, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cn, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, co, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cp, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cq, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cr, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cs, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ct, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cu, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cv, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cw, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cx, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cy, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cz, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, da, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, db, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, dc, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, db, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, da, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cz, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cy, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cx, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cw, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cv, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cu, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ct, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cs, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cr, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cq, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cp, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, co, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cn, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cm, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cl, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ck, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cj, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ci, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ch, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cg, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cf, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ce, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cd, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cc, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, cb, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ca, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bz, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, by, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bx, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bw, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bv, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bu, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bt, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bs, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, br, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bq, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bp, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bo, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bn, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bm, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bl, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bk, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bj, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bi, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bh, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bg, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bf, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, be, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bd, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bc, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, bb, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ba, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, az, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ay, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ax, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, aw, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, av, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, au, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, at, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, as, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ar, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, aq, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ap, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ao, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, an, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, am, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, al, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ak, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, aj, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ai, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ah, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ag, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, af, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ae, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ad, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ac, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
screen:blit(0, 0, ab, false)
screen.waitVblankStart()
screen.flip()
screen.waitVblankStart(6 )
end
-------------index end--------------------
Image Properties: 480x272pix
Size: 15-17kb
24BPP
81 Images
THX, mcstylez
visit my site (will be updated)
www.wiredcore.at
www.wiredcore.at
Ok, let me see if I can explain this. the Ideal is to load say the first 5 pictures, and reload ImgA(explain below) to 6.jpg after it's displayed.
ImgCounter = "5"
ImgA = Image.load("1.jpg")
ImgB = Image.load("2.jpg")
ImgC = Image.load("3.jpg")
ImgD = Image.load("4.jpg")
ImgE = Image.load("5.jpg")
^ The code above will load say 5 pictures first. which will be our base, because this is an animation LUA only 1 picture will be displayed at a time, but we will need the next few pictures in RAM in order to play it out smoothly.
note: If 5 is not enough, you can increase the number according to image size as long as you don't run of RAM executing this program. remember to increase ImageCounter according to the number of images you are loading up in the start up of the code.
next step is to actually play this animation.
(In this space above the main loop [while true] you can add your loading 10%, 20% code here.)
while true do
screen:blit(0, 0, ImgA, false)
screen.waitVblankStart(6)
screen.flip()
ImgA = nil ------> Since ImgA is already displayed, we can now remove it and free up some ram.
screen:blit(0, 0, ImgB, false)
screen.waitVblankStart(6)
screen.flip()
ImgB = nil ----> same as above ex. ImgA
ImageCounter = ImageCounter + 1
ImgB = Image.load(ImageCounter".jpg") -----> We started with 5 images, which means 1 + 5 = 6 :P Then we will make ImgA load 6.jpg
screen:blit(0, 0, ImgC, false)
screen.waitVblankStart(6)
screen.flip()
ImgC = nil[/i] ----> same as above ex. ImgA
ImageCounter = ImageCounter + 1
ImgC = Image.load(ImageCounter".jpg") -----> Then we will make ImgA load 7.jpg
This will keep going.
for example, you have total of 96 Picutres.
you can add an [if statement]
if ImageCounter > 96
break
end.
that will end your animation code.
hope that helped
`Mesmer
ImgCounter = "5"
ImgA = Image.load("1.jpg")
ImgB = Image.load("2.jpg")
ImgC = Image.load("3.jpg")
ImgD = Image.load("4.jpg")
ImgE = Image.load("5.jpg")
^ The code above will load say 5 pictures first. which will be our base, because this is an animation LUA only 1 picture will be displayed at a time, but we will need the next few pictures in RAM in order to play it out smoothly.
note: If 5 is not enough, you can increase the number according to image size as long as you don't run of RAM executing this program. remember to increase ImageCounter according to the number of images you are loading up in the start up of the code.
next step is to actually play this animation.
(In this space above the main loop [while true] you can add your loading 10%, 20% code here.)
while true do
screen:blit(0, 0, ImgA, false)
screen.waitVblankStart(6)
screen.flip()
ImgA = nil ------> Since ImgA is already displayed, we can now remove it and free up some ram.
screen:blit(0, 0, ImgB, false)
screen.waitVblankStart(6)
screen.flip()
ImgB = nil ----> same as above ex. ImgA
ImageCounter = ImageCounter + 1
ImgB = Image.load(ImageCounter".jpg") -----> We started with 5 images, which means 1 + 5 = 6 :P Then we will make ImgA load 6.jpg
screen:blit(0, 0, ImgC, false)
screen.waitVblankStart(6)
screen.flip()
ImgC = nil[/i] ----> same as above ex. ImgA
ImageCounter = ImageCounter + 1
ImgC = Image.load(ImageCounter".jpg") -----> Then we will make ImgA load 7.jpg
This will keep going.
for example, you have total of 96 Picutres.
you can add an [if statement]
if ImageCounter > 96
break
end.
that will end your animation code.
hope that helped
`Mesmer
No because LUA will see it as one file. It will "paste" all the dofile's into one file so to speak and run that. It's just very hard to have a good animation in LUA.
Only thing I can think of is what I said earlier, as one big image with all the smaller one in it, is smaller in filesize then all the smaller images sperately.
As these images are all JPG's, it is possible to put more into one big image as a JPG can be bigger then 512x512 pixels.
Only thing I can think of is what I said earlier, as one big image with all the smaller one in it, is smaller in filesize then all the smaller images sperately.
As these images are all JPG's, it is possible to put more into one big image as a JPG can be bigger then 512x512 pixels.