Download Construct 2 release 37

Discussion and feedback on Construct 2

Post » Mon May 30, 2011 10:09 pm

[size=200:2aghfywf]Download Construct 2 public preview 37[/size:2aghfywf]
[size=85:2aghfywf]Link to release 36[/size:2aghfywf]

New in this build - layer properties!



Layer properties allow you to set parallax and opacity on layers, plus a few other usual suspects. One thing to note is the layout background colour has been removed - you should use an opaque bottom layer instead. This, however, allows transparent canvases (if all layers are transparent), which will show the rest of the webpage underneath them.

Parallax, if you've forgotten, is great for scrolling backgrounds. It's also very handy for HUDs - just set the parallax to 0 and your UI stuff won't scroll.

Another benefit over Classic is you can now set layers to parallax in the editor, so you can preview how the objects move with the scrolling before running the game. Useful to get parallax right in some distant corner of your game.

You can also set the opacity on entire layers - this works in the HTML5 canvas as well. There's a new demo based on the platform demo here (.capx here). The art is definitely uninspiring, but it shows three layers of parallax, non-scrolling text, and 50% opacity on the main layer.

[size=150:2aghfywf]Changelog[/size:2aghfywf]
- [Add] Layer properties. You can now select a layer from the layers bar and edit properties for it in the properties bar.
- [Add] Layer properties 'Parallax in editor' (improvement over Classic): if enabled, the layout view in the Construct 2 editor parallaxes like it does in the game, so you can see how things will line up before previewing.
- [Add] Layout view: rotate handle for Sprites like in Classic
- [Change] System 'compare values' condition: changed descriptions to emphasise it does not pick any objects, and just compares two raw values.
- [Change/Remove] The layout 'background color' option has been removed because it is redundant. Instead, set the background color on the bottom layer and make sure 'transparent' is 'no'. On the other hand, if you want the canvas background to be transparent (i.e. show the rest of the web page underneath it), make sure all layers have 'transparent' set to 'yes'. Note a minor backwards incompatibility has been introduced: old projects from previous releases will consequently ignore the layout background color and assume all layers are transparent (because in those releases there were no layer properties). To restore an opaque background color set it on the bottom layer as described previously.
- [Change] Layers are now named and numbered from "Layer 0". (This will only happen in new projects - old projects are not affected.) This is to reduce confusion when using layer numbers in the event system, which use a 0-based index for layers.
- [Fix] Dragging around global/local variables sometimes removed references to the variable (with an alert) even though the things that were removed were still in the variable's scope.
- [Fix] Bug with using arrow keys to move selected event in the event sheet editor.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Mon May 30, 2011 11:23 pm

I'm glad for the addition of Force own texture, Thanks! Now I can do this:
(Move lights with keyboard and mouse)

Page
http://dl.dropbox.com/u/10316081/Constr ... index.html

Capx
http://dl.dropbox.com/u/10316081/Constr ... ample.capx
B
51
S
10
G
7
Posts: 184
Reputation: 6,825

Post » Tue May 31, 2011 12:05 am

Great example Yarfapet!

I found you can use soft shadows by using an image with a gradient alpha channel. Have a look at this:
http://www.scirra.com/labs/html5lighting/
(.capx here)
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Tue May 31, 2011 4:04 am

Hey Ash. If you load that platformer example in Chrome, while you don't have that tab open, the player sprite ends up in the middle of the platform.
B
55
S
12
G
8
Posts: 339
Reputation: 9,314


Return to Construct 2 General

Who is online

Users browsing this forum: Aphrodite and 7 guests