Onlineleesun's Forum Posts

  • 3 posts
  • I made a game using Construct 3.

    ripflash.net/media/memorial/index.html

    At the end of this game, there's a screenshot of the game.

    I used CanvasSnapshot event + go to url "CanvasSnapshot"

    The image can be downloaded in mobile devices.

    But It won't in Chrome (PC).

    Chrome message said "failed - network error"

    Is there any problem downloading CanvasSnapshot image with PC platform?

    Please help T_T

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you so much everyone!

    I don't have much knowledge about javascript so I tried Copyclip add-on.

    It works perfectly as what I wanted.

  • I made "COPY" button in my game.

    When the button is clicked, specific texts is copied to user's clipboard.

    I added this JS function below.

    It works perfectly in PC Web (Chrome) but it didn't work in iOS Safari on my phone/ipad :(

    The alert appears well, but there's nothing in the clipboard.

    I don't know why it dosen't work...... T_T

    var tmpTextarea = document.createElement('textarea');
    			tmpTextarea.value = 'text to copy';
    			
    			document.body.appendChild(tmpTextarea);
    			tmpTextarea.select();
    			tmpTextarea.setSelectionRange(0, 9999);		 
    			document.execCommand('copy');
    			document.body.removeChild(tmpTextarea);
    			alert('copy completed');
  • 3 posts