Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to make animated buttons?


rairai5650
 Share

Recommended Posts

hey guys im just asking how to make animated buttons so i try it like this

i rename it imgButton

and i did like this

Frmmain

```

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 buttons

then 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 range

when 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

> or you could just use .gif files

Vb6 + 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...