I'm messing around with an intro script which enables the player to choose the level they want to go to, the idea is to paste a picture of said level/levels on a background and then just use the mouse to choose, problem is atm the level sprite isn't appearing on top of the background?
can this be done I'm sure it worked on the survival scripts?
here's what I have so far (not activated the mouse yet)
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
function choose_level_init(e)
--Hide(e)
intro_icon_posX = 0
intro_icon_posy = 0
intro_icon_sizeX = 100
intro_icon_sizey = 100
intro_sprite = LoadImage("scriptbank\\images\\hunter\\boar.png")
intro_icon = CreateSprite(intro_sprite)
SetSpriteSize (intro_icon,intro_icon_sizeX,intro_icon_sizey)
SetSpriteDepth (intro_sprite, -50)
SetSpritePosition(intro_icon,300,300)
level1_icon_posX = 0
level1_icon_posy = 0
level1_icon_sizeX = 100
level1_icon_sizey =100
level1_sprite = LoadImage("scriptbank\\images\\hunter\\1.png")
level1_icon = CreateSprite(level1_sprite)
SetSpriteSize (level1_icon,level1_icon_sizeX,intro_icon_sizey)
SetSpriteDepth (level1_sprite, 100)
SetSpritePosition(level1_icon,300,300)
function choose_level_main(e)
PasteSpritePosition(intro_icon, intro_icon_posX, intro_icon_posy)
PasteSpritePosition(intro_icon, level1_icon_posX, level1_icon_posy)
--TextColor(45,23,1,"Choose Your Level",0,0,10)
end
end
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
XFX R5 2gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel
I only smile because i have absolutely no idea whats going on