Dear users,I have been developing a 3 reel slot machine for game practice.
And I have constructed a reel which is a movie clip consisting of reel symbols which are also movieclip.
And I have placed a bar and used tween animation to move the reel.
I used hitTestObject to find the contact between the bar and the reel like
if(bar1.hitTestObject(reels)
{
trace(“hit”);
}
Now How can I get the instance name of the symbols that has contacted the bar after the motion tween stop.
I can use reels.coin to find whether the bar has contacted the coin symbol or not.
But I want to get the instance name coin if it has hit the bar.
To implement this what should I do