Snapshot Canvas

Get help using Construct 2

Post » Sun Sep 09, 2012 10:40 pm

Actually, I found a way to fix it. You need to position and size the sprite in terms of the viewport, rather than the window size. You should get in the habit of always using the viewport expressions (ViewportLeft, ViewportTop, ViewportRight, ViewportBottom) rather than the window size expressions because the window size is kind of irrelevant when the display has been scaled.

https://dl.dropbox.com/u/15217362/FixedCanvasSnapshot.capx
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Mon Sep 10, 2012 3:01 am

After changing the last code to Viewport it worked perfectly! Wow, thanks Ashley!



My last question is how to reset CanvasSnapshot to clear? When I reposition the flowers and take another snapshot it uses the old snapshot and not the updated one.


B
31
S
6
G
4
Posts: 160
Reputation: 5,998

Post » Mon Sep 10, 2012 5:52 am

Ok. I was able to clear the snapshot by spawning and destroying the sprite from a dummy sprite.

TapSlideFixedB

Every now and then I get a black empty capture though.
B
31
S
6
G
4
Posts: 160
Reputation: 5,998

Post » Sun Feb 10, 2013 8:47 pm

[QUOTE=Animmaniac] I made an example some time ago but using the Canvas plugin instead of the snapshot feature:

Swipe Layouts Example

I guess it's also possible to do it taking a snapshot and dynamically loading it into a sprite, but I haven't tried yet.[/QUOTE]


Anyway to make it work when the fullscreen setttings is set to Scale or Integer Scale , because it seems to break the sliding as it seems to slide only to a certain level only and also cocoonJS launcher atleast requires some form of fullscreen settings like the the scale or crop.

Please advise as i needed it urgent for another project.
B
16
S
4
Posts: 248
Reputation: 2,267

Post » Sun Jun 23, 2013 6:54 pm

Exactly what i wanted to do! Thank you!!
B
3
Posts: 5
Reputation: 208

Post » Wed Sep 18, 2013 7:29 pm

Can I go to Random Layout with Swipe Style?
B
11
S
2
G
2
Posts: 62
Reputation: 2,153

Previous

Return to How do I....?

Who is online

Users browsing this forum: Kagubro and 21 guests