Animation using the image commands is simple -- HAHA -- took me most the night to iron this one down.
I used and Variable shift - where var --> a,b,c = c,a,b
each time the script sees this it will move the numbers to the left
I included the script - its just a start though still a WIP
Edit::: Apparently you cant name your scripts certain ways - I named the script below lightning.lua and it works fine but does not do the animation
of the images - as soon as I changed the name the animation started up... WOW!!!
function striker_init(e)
LoadImages("lightning")
SetImagePosition(50,20)
a,b,c = 1,2,3 --> a = 1, b = 2, c = 3
end
function striker_main(e)
playerDist = GetPlayerDistance(e)
if playerDist > 100 then
HideImage(1)
end
if playerDist <= 100 then
-- each time it goes through it will change the numbers in a
a,b,c = c,a,b --> now a = 2, b = 3, c = 1
ShowImage(a)
end
end
Experiencing a cool Game --> Tingalls
Win 7 Home Premium, 64bit(srvPack 1),AMD FX 4100 Quad-core 3.8Ghz @ 8Gb Ram - NVIDIA GeForce GTX 750 Ti @ 2GB Ram