How do I copy the entire viewport to a Drawing Canvas?

Not favoritedFavorited Favorited 0 favourites
  • 3 posts
From the Asset Store
Pixel Destruction like in "Worms" (Drawing Canvas based)
  • Hi, I want to 'screencap' my game's viewport during runtime and copy it over to a Drawing Canvas object.

    In a nutshell: press a button, game sticks the current frame onto a Drawing Canvas instantly.

    I want to do this so I can stick the screen to a certain frame and then manipulate the pixels on the Drawing Canvas to create an effect.

    Any help appreciated.

  • You can make a snapshot (System action). Then load this snapshot into a sprite. Then paste the sprite onto a canvas.

    I don't know why DrawingCanvas doesn't support loading images directly, so that's the only way.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can make a snapshot (System action). Then load this snapshot into a sprite. Then paste the sprite onto a canvas.

    I don't know why DrawingCanvas doesn't support loading images directly, so that's the only way.

    This is what I eventually settled on. My whole thing with snapshotting was that there's still the buffer of snapshotting and then loading an image from URL, which can take a bit on lower-end systems from my experience.

    Thanks.

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