Download Construct 2 release 43

Discussion and feedback on Construct 2

Post » Sun Jun 19, 2011 2:08 am

[size=200:33odamrl]Download Construct 2 public preview 43[/size:33odamrl]
[size=85:33odamrl]Link to release 42[/size:33odamrl]

New this build: time scaling and five new behaviors!

Time scaling is as per Classic. If you haven't used it before, you can create slow motion effects by setting the time scale to 0.5 (half speed). It's also great for making a pause function - set the time scale to 0 and everything stops, but events are still running.

A new time scaling feature for C2 is you can set individual object's time scales. For example, you can have the entire game go in to super-slo-mo (time scale 0.2), and keep your player on normal time (time scale 1.0). The whole world is going slow but you can run round at full speed!

Four of the new behaviors are pretty straightforward, but there's also the custom movement. This is a fairly basic version of the Classic one but hopefully should cover essential features. I'm afraid it's also not well tested - Davo wrote the original in Classic so I'm not familiar with the code, and haven't tried everything out yet. Try it out and let me know if you have any problems or if there are glaring omissions.

Here's a little demo using the custom movement to make an asteroids type space movement: custom movement demo.

Image editor on the way, honest! :)

[size=150:33odamrl]Changelog[/size:33odamrl]
- [Feature] Time scaling. New system actions: Set time scale, Set object time scale, Restore object time scale. New system expression 'wallclocktime', which is the game time unaffected by any time scaling that may have happened (the ordinary 'time' expression increments at a different rate if the time scale is not 1.0). New object expression 'dt' to return dt at the object's own time scale.
- [Add] 'Custom movement' behavior. Trimmed down version of the Classic behavior.
- [Add] 'Scroll To' behavior, which automatically scrolls to an object. If added to multiple objects, it scrolls to the mid-point of all those objects (the average of their positions). Also has a 'Shake screen' action.
- [Add] 'Destroy outside layout' behavior, which simply destroys the object if it leaves the layout area.
- [Add] 'Bound to layout' behavior, which stops the object leaving the layout area.
- [Add] 'Wrap' behavior, as per Classic, makes objects reappear on the opposite side of a layout when they leave.
- [Add] Array: 'For Each element', as per Classic
- [Fix] Previewing with Firefox sometimes opened different tabs with "C:\Documents", "and", "settings\..."
- [Fix] Error messageboxes during export/preview sometimes opened under the main window which was confusing - now they're always on top
- [Fix] Mouse object: detecting clicks/mouseovers on objects on a parallaxing layer did not work
- [Fix] Using shift+enter to write a multiline comment didn't expand the comment to be big enough to fit all the text
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Jun 19, 2011 2:16 am

[quote:grfftlhb]Set object time scale[/quote:grfftlhb]
This will be epic in future games :D


ps. Ashley, I see C2 is one the very right way! Can you more/less estimate how many more build will be there for C2 to get close to CC in functionallity?
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Sun Jun 19, 2011 2:37 am

Oh, thank you
I alredy apllied the time scale to a game i was doing. And the fix to clicks in parallax is great, that will make work other things that are in the game.
I only want to ask something. if its posible to change the keys of the behaviors, like in classic. Thanks.

Edit: Thats weird, maybe i missundertood, but it doesnt work for me the clicks in paralax layers.
B
16
S
3
G
6
Posts: 19
Reputation: 3,204

Post » Sun Jun 19, 2011 2:59 am

"A new time scaling feature for C2 is you can set individual object's time scales. For example, you can have the entire game go in to super-slo-mo (time scale 0.2), and keep your player on normal time (time scale 1.0). The whole world is going slow but you can run round at full speed!"

You have no idea how badly I've wanted that feature XD I never thought it was possible. Great update!
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sun Jun 19, 2011 3:39 am

Yesssss! :D
Ash, you rock.
B
55
S
12
G
8
Posts: 339
Reputation: 9,314

Post » Sun Jun 19, 2011 3:54 am

[quote="arandaschimpf":15o4x1tn]Edit: Thats weird, maybe i missundertood, but it doesnt work for me the clicks in paralax layers.[/quote:15o4x1tn]
I thought I fixed this, can you post a .capx where it doesn't seem to be working?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Jun 19, 2011 7:27 am

Nicely done! Though, there are a few ommisions concerning the Custom Movement Behaviour...

I tried replicating Davo's "Sonic-style movement" method, and some things stopped me right in my tracks:

- "Push out of Solid" is not only locked into "solid", but also does not allow you to put in a number for an angle. I've got two sensors, both of them require a "push out of solid" action with the angle based off "PlayerSprite.Angle + 180", but the actions as they are now make this impossible.
- There is also no "change motion angle" action. EDIT: Turns out there is. DERP.
- There is no "bounce off <object>" action.
- Also, I think we need to be able to pick by behaviors, because I discovered that you can't pick "solid" when you're trying to determine if an object is overlapping something that is "solid". Families won't cut it either for this problem, because families are limited to a single object type.
- Plus, it would be a good idea to an action that allows you to move horizontally/vertically while also setting an angle of orientation. I haven't discovered if such an action is actually necessary for what I'm trying to do, yet, but I think it may very well be.
B
94
S
37
G
11
Posts: 404
Reputation: 11,275

Post » Sun Jun 19, 2011 1:34 pm

Hey Ash. I can't seem to get the 'CurrentXYZ' expressions to work. Here's a cap... Should this make a grid of tiles, or am I missing something?

http://dl.dropbox.com/u/1378330/array.capx
B
55
S
12
G
8
Posts: 339
Reputation: 9,314

Post » Mon Jun 20, 2011 9:17 am

You're doing a great job, can't wait to see the first stable release !
B
72
S
15
G
4
Posts: 311
Reputation: 11,609

Post » Mon Jun 20, 2011 11:39 am

[quote="Candescence":jv1gb52e]- There is also no "change motion angle" action.[/quote:jv1gb52e]
Isn't that equivalent to the "Angle of motion: Set" action? I changed some terminology along the way to try and make it clearer. As for the other points, I'll see if I can add the omissions for the next release.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Next

Return to Construct 2 General

Who is online

Users browsing this forum: bilgekaan, Davioware and 2 guests