Download Construct 2 public preview 35
Link to release 34
Lots new in this build! Firstly, an early version of the Platform behavior! It's not as advanced as the old Classic one, but it should be fun to play with. Try an online demo here (.capx file here). Don't forget to add the Solid behavior to objects you want it to land on.
Secondly, the expressions panel has a little tweak where it remains semitransparent if you don't use it. That should stop it being distracting if you don't need it immediately. So at first it looks something like this:
<img src="http://www.scirra.com/construct2/releases/objpanelfading.png">
If you mouse over it or use it, it becomes fully opaque again. I think it's a nice visual reminder that you want to direct your attention to the parameters, but let me know if you find it distracting.
Thirdly, behavior expressions are done! These appear in the expressions panel in a similar way to behavior actions and conditions in the event wizard, like this:
<img src="http://www.scirra.com/construct2/releases/objpanelbehaviorexps.png">
Behavior expressions have a new syntax: Object.Behavior.Expression. For example, Player.8Direction.Speed. Behaviors also appear in autocomplete for expressions:
<img src="http://www.scirra.com/construct2/releases/behaviorautoc1.png">
...and you can autocomplete a full behavior expression as well:
<img src="http://www.scirra.com/construct2/releases/behaviorautoc2.png">
Finally, a nice little cosmetic change is behavior actions and conditions now show the behavior icon by the behavior name, a bit like this:
<img src="http://www.scirra.com/construct2/releases/behaviorevent.png">
Let me know if you have any more suggestions or ideas! I think the new syntax is much better than Classic (Player[8Direction].Speed), especially since it autocompletes fully.
Changelog
- [Feature] Behavior expressions. The syntax to use is Object.Behavior.Expression, e.g. Player.8Direction.Speed. This is an improvement over the Classic syntax (Player[8Direction].Speed) - it's a bit more readable just with dots separating. The object panel by the parameters dialog now also lists behavior expressions next to object expressions (similar to the event wizard for behavior actions and conditions). Behaviors also autocomplete like object expressions. Behavior expressions also work with instance indexing, so you can use e.g. Player(3).8Direction.Speed to get the 4th instance of Player's 8 direction movement speed.
- [Add] Platform movement behavior. This is very simple compared to the Classic platform movement, but is a start. It only lands on Solids right now.
- [Add] Object panel: the panel window now starts off semitransparent. This should draw the user's attention to the parameters dialog where their input is needed. It fades in if you move the mouse over it, and fades out if you move back, but once you use it (i.e. click on something) it doesn't fade out again.
- [Add] 8 direction: now cannot pass through solids
- [Add] Event sheet view: behavior actions and conditions now show the behavior icon next to the name