rairai5650 Posted February 9, 2014 Author Share Posted February 9, 2014 hey guys im just asking how to make animated buttons so i try it like thisi rename it imgButtonand i did like thisFrmmain```Case 10 'Rank If Not picRank.Visible Then picCharacter.Visible = False picInventory.Visible = False picSpell.Visible = False picOptions.Visible = False picParty.Visible = False picQuestLog.Visible = False picPet.Visible = False picRank.Visible = True PlaySound Sound_ButtonClick, -1, -1```and go to mod constants and upgrade the animated buttonsthen i go to modgeneral and add this``` ' main - rank With MainButton(10) .filename = "rank" .state = 0 ' normal```then when i try it, it's say subscripted out of rangewhen i click debug it show me this``` If Not MainButton(Index).state = 2 Then ' make sure we're not clicking``` Link to comment Share on other sites More sharing options...
abhi2011 Posted February 9, 2014 Share Posted February 9, 2014 What is the value of 'index' when the error is thrown? Link to comment Share on other sites More sharing options...
Domino_ Posted February 9, 2014 Share Posted February 9, 2014 Solution = You copied button from Button(9) to Button(0) not Button(10) check that. Link to comment Share on other sites More sharing options...
Sn0w Beast Posted February 9, 2014 Share Posted February 9, 2014 or you could just use .gif files Link to comment Share on other sites More sharing options...
Domino_ Posted February 9, 2014 Share Posted February 9, 2014 > or you could just use .gif filesVb6 + gif file? o.O Then he will need to add bit more code in source to support gif.And gif is moving all the time, he need to change picture on hover. AM i right?Have u ever touched eo engine? xD Cuz thats a bad suggestion. Link to comment Share on other sites More sharing options...
Sn0w Beast Posted February 10, 2014 Share Posted February 10, 2014 Yes I have, Brink of Time uses EO2.3Didn't know you'd have to change it to support gif :P I haven't really messed with gifs yet on the EO engine. Link to comment Share on other sites More sharing options...
hisherwin Posted February 10, 2014 Share Posted February 10, 2014 Domino_ is correct.. if you don't have 0 index and you just copy and paste a picturebox or image with index, it will start on 0.. just change it on index at the category Link to comment Share on other sites More sharing options...
rairai5650 Posted February 10, 2014 Author Share Posted February 10, 2014 lolol i didn't copy it i just rename it as imgButton Link to comment Share on other sites More sharing options...
Domino_ Posted February 10, 2014 Share Posted February 10, 2014 > lolol i didn't copy it i just rename it as imgButtonhaha, here is your solution xD Link to comment Share on other sites More sharing options...
rairai5650 Posted February 13, 2014 Author Share Posted February 13, 2014 still unfix Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now