Is possible to load external HTML5 canvas?

0 favourites
  • 3 posts
From the Asset Store
Pixel Destruction like in "Worms" (Drawing Canvas based)
  • There a 2 types of canvas are:

    1- The Game: It's typical C2 canvas. It doesn't require to update the game, also it can be played on offline.

    2- The Updated Random Content: like news, ads, extras, bonus, etc. that can be changed content while is connecting the internet, otherwise if there no internet connected, it will be ignored.

    When you play as platformer, when you enter next layout or a store building, then it starts to download an external HTML5 canvas, it may be an pop up window or inside of The Game canvas.

    Is that possible?

  • I don't know of a way to include another html5 canvas.

    But for what you described why couldn't you use the Ajax object, to tell the game what ad to display, news, and so on.

    For ads (depending on the type) you could load them into a sprite object as animations (for multiple ads) (One frame per animation, unless animated) then you'd have the ajax get an id or name for the ad to display, and what page it would link too. Then you would just need an event to display the information when you wanted it to.

    News would be the same way, just use the Ajax object to get the text from a webpage (php or asp) and set the data to display inside a text area.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Sandcrawler, thanks for reply, according your idea... i never used Ajax object over the canvas, but i'm going to make one and i will upload them on my shared hosting server.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)