Transparent snapshot in NWjs

Get help using Construct 2

Post » Sat Feb 04, 2017 5:48 pm

I have created a transparent layer.
When I take snapshot in Chrome - the snapshot is transparent.
But in NWjs it is black.

How can I create a transparent snapshot in NWjs?
B
52
S
25
G
49
Posts: 139
Reputation: 28,891

Post » Sat Feb 04, 2017 11:10 pm

This is an issue I've butted heads with. Instead of using snapshots, try using a plugin called 'Paster' by r0j0hound. It's free, and really easy to use :) And it has a lot of different applications, this being just one.
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 247
Reputation: 2,318

Post » Sun Feb 05, 2017 11:32 pm

mrtumbles, thank you, but I have found the solution without using any plugins.
I changed "this.forceCanvasAlpha = false;" to "this.forceCanvasAlpha = true;" in c2runtime.js after export via NW.js)
B
52
S
25
G
49
Posts: 139
Reputation: 28,891

Post » Mon Feb 06, 2017 2:13 am

Oooooh! Noted, thanks!
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 247
Reputation: 2,318

Post » Mon Feb 06, 2017 2:14 am

(Do check out 'Paster' though - it's a really neat plugin. I uninstall almost every plugin I download pretty much instantly (not a fan of clutter) but Paster has been with me a while)
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 247
Reputation: 2,318


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 29 guests