[quote="Tony Coleman"][/quote]
You could have used 'this' if you wrote the code like this
function DisplayPath()
{
this.FollowPath(Path1, 4, false, false, 0, 100)
}
function DisplayRotate()
{
this.Rotate(360,4)
}
function ShowAnimations()
{
fork(DisplayPath, Star1)
fork(DisplayRotate, Star1)
}
This way you could reuse the DisplayPath() and DisplayRotate() functions again but with different objects e.g.
fork(DisplayPath, Square1)
fork(DisplayRotate, Square1)
------------
Thanks for this Tony,
I found that I could combine actions in your fork example at the end...
{
fork(DisplayPath, Square1)
fork(DisplayRotate, Square1)
fork(DisplayPath, Star1)
fork(DisplayRotate, Star1)
}
// then even the following worked..
{
fork(DisplayPath, Square1)
fork(DisplayRotate, Square1)
wait(1)
fork(DisplayPath, Star1)
fork(DisplayRotate, Star1)
}
// I experimented thus more...
{
fork(DisplayPath, Square1)
fork(DisplayRotate, Square1)
fork(DisplayPath, Star1)
if (MyVariable = 0)
{ fork(DisplayRotate, Star1) }
}
Thanks for all your help.