Jump to content

How to make a href with phaser button?


ceb
 Share

Recommended Posts

Hello,

 

Phaser (or any other HTML5 game framework) can only do things inside a <canvas> so you have two options :

- Create a regular <a href="Whatever.com">link</a> and move it on top of your canvas.

- If you want to stick with a Phaser Button, you just need use it to mimic a link's behaviour, like :

function onClick(){    window.open("www.phaser.io", "_blank");}
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...