I'm using the following code to move a hotspot:
Frame properties:
- Code: Select all
x=377
y=141
This are the starting coordinates of the hotspot
My procdure:
- Code: Select all
sub test(hotspotnumber,xend,yend)
If x>xend and y>yend Then
Hotspot(hotspotnumber).Move x*15,y*15
x=x-5
y=y-5
End If
End Sub
Hotspot Advanced Tab:
- Code: Select all
Action.CreateTimedEvent 0.03,"test 2,50,50",true
Ok.This works fine for me.
Now I'm thinking to do this with a plugin, but the problem is I don't know how to handle the timed event.
All I have that the hotspot jumps to the coordinates wich are given with the plugin but I want to have a slower move.
Any ideas?
thanks