All Questions


Dave Kok([email protected])

TurretMultiShoot not working because the overwritten function name is different

I finished the TurretMultiShot code and to my surprise it wasn't working. After some time I noticed that the original function name is "on_Timer_timeout", but the lesson uses "_on_Timer_timout", with a leading underscore, to overwrite the function. Is that intentional? It wasn't clear, at least for me, and made me struggle a bit.

  • Nathan Lovato replied
    I just checked the lessons and I can't find a place where it lacks the leading underscore. It's always _on_Timer_timeout in the series. Could have you made a typo when typing the code perhaps?