"Taking photo" of an area and turn it into Sprite

Get help using Construct 2

Post » Thu Nov 07, 2013 4:20 pm

If I am to develop a game for Node Webkit Desktop, do I have a function that I can basically obtain a portion of my game screen and use it as sprite?

For instance, take this video as an example: http://www.youtube.com/watch?v=eQLWoHoUuoc

At 2:03, the game simply takes a snapshot and place it on a newspaper.

For me, I just want to take a snapshot of a frame at a particular moment and then show this snapshot. Is this possible?
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Thu Nov 07, 2013 5:51 pm

[QUOTE=keroberos] If I am to develop a game for Node Webkit Desktop, do I have a function that I can basically obtain a portion of my game screen and use it as sprite?

For instance, take this video as an example: http://www.youtube.com/watch?v=eQLWoHoUuoc

At 2:03, the game simply takes a snapshot and place it on a newspaper.

For me, I just want to take a snapshot of a frame at a particular moment and then show this snapshot. Is this possible?[/QUOTE]

The system Action : "Snapshot canvas" can do it, It'll save the picture in the system expression CanvasSnapshot after On canvas snapshot condition triggers

The picture is a Data URI, so you can load it into a sprite Via the "Load from URL : CanvasSnapshot"

Source:

Here
Also here
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests