I have arrows..and I want the arrows to change. The LEFT arrow is already on the frame...I want the user to go from the one that is there..to
UP
RIGHT
DOWN
LEFT AGAIN..which is a picture..the first one is not..
I have FOUR hotspots...they should all do the same...Picture 4 handles on a dresser...and a hotspot on each... And each handle goes from UP RIGHT DOWN LEFT..etc..
I have tried this one..and it works to change the arrows...but i'ts not working with the code..
I think this is so the user can only press it so many times.....I want the user to be able to go around as many times as they want..but i'm sure i used this before..to do that..
I have t his in all four hotspots..only set up slightly different..
- Code: Select all
myvariable = myvariable - 1
If myvariable = -1 then Action.LoadAPicture Hotspot(1), "Up_arrow.bmp"
If myvariable = -2 then Action.LoadAPicture Hotspot(1), "Arrow_right.bmp"
If myvariable = -3 then Action.LoadAPicture Hotspot(1), "Down_arrow.bmp"
If myvariable = -4 then Action.LoadAPicture Hotspot(1), "Left_arrow.bmp"
If myvariable = -4 then my variable = 0
If myvariable = -2 Then
Arrow1 = 1
Else
Arrow1 = 0
End If
Is there a variation to this..so i can use it for what i want..
THanks..in advance..
EDIT..
I have changed mycode to this..but for some reason...it is skipping the first UP arrow in each hotspot..If i change the select case to CASE 1 as opposed to CASE 0 it works..the UP arrow is included ...but the code to get out doens't work..
- Code: Select all
If myvariable>0 Then
box1=0
End If
If myvariable=4 Then
myvariable=0
End If
Select Case myvariable
Case 0
arrow="Up_arrow.bmp"
Case 1
arrow="Arrow_Right.bmp"
box1=1
Case 2
color="Down_Arrow.bmp"
Case 3
arrow="Left_Arrow.bmp"
End Select
Action.LoadAPicture Hotspot(1), arrow
myvariable=myvariable+1
Second hotspot
- Code: Select all
box2=0
If myvariable2=4 Then
myvariable2=0
End If
Select Case myvariable2
Case 0
arrow="Up_Arrow.bmp"
box2=1
Case 1
arrow="Arrow_right.bmp"
Case 2
arrow="Down_arrow.bmp"
Case 3
arrow="Left_Arrow.bmp"
End Select
Action.LoadAPicture Hotspot(2), arrow
myvariable2=myvariable2+1
THird and fourth are pretty much the same...they skip the UP arrow
In my frame Properties i have this..
- Code: Select all
myvariable=1
box1=1
myvariable2=1
myvariable3=1
myvariable4=1
THanks to anyone who can look at this..Or offer an alternative please.. and thanks..