studdDev

Members
  • Content count

    3
  • Joined

  • Last visited

  1. [Help] Access function in html file

    @mattstyles thanks for the info, this is our first game in HTML 5 and i am pretty much a noob when it comes to HTML. Thank you for all your tips, will surely consider them
  2. [Help] Access function in html file

    Thanks @mattstyles, but ShowAds(); and window.ShowAds(); is throwing a cannot find property error. but i found a work around. if (window.hasOwnProperty('ShowAds')) { window['ShowAds'].call(); } and seems to be working fine. Thanks again for your help
  3. [Help] Access function in html file

    Hello there, I am relatively new to game development. I have defined a function ShowAds() within the html index file <script type="text/javascript"> var version = 'dev', libs = [ ]; var game = new StuddGames.AppBoot(); function ShowAds() { console.log("Show Ad"); } </script> is there a way i can call this function from typescript within the game code? Thanks for your help