So it plays an animation when I click on a button called: “SportBegin”. Now how can I play it in reverse? I read on the forum that you can set the anim.speed to -1 to play in reverse but how do I add that to this code?
You need to add the code inside the event handler I think, not sure what you are trying to do by commenting out like that.
In any case, if you want to do that, see line 22 where you commented out that event handler? You need to comment out line 33 as well, it can’t live on its own like that, hence the error.
You need to add the code inside your button event handler, much like you had it before. Just add in addition before the play() method the speed set property.