Oops, fixed in next build. Thanks for the clear repro.
The best way is to extend Construct 2 with the Javascript Plugin and Behavior SDK. The Javascript and HTML5 code is all there for you to look at after you click Export, but it's not in a format that it is easy to edit yourself. It's best to use the SDK to get custom javascript in to C2.
Develop games in your browser. Powerful, performant & highly capable.
Events cannot be translated in to any remotely useful code that you'd want to read or use. So you really are better off rewriting it from scratch in other tools (but of course it will take you a lot longer!)
Why? What do the other platforms offer as benefit? HTML5 runs on practically anything and modern browsers have fast javascript engines and hardware accelerated rendering - that's pretty hard to beat IMO!
If you move an object by events the solid behavior doesn't do anything. It only affects the built-in behaviors.
Instead, just check for collisions with collision events.
Deleting all the instances of an object does not delete the object type. If the object is still in the project bar, it's still in the project. Delete it from the project bar to completely remove it.
I actually already fixed this before this post - I thought nobody had noticed :) That'll teach me to copy and paste too quickly. Fixed in next build.
It clones the object type but does not add any instances. It should appear in the project bar - drag and drop it in to the layout to create an instance. This is by design.
You do not have permission to view this post
Add the 'scroll to' behavior.
Have you tried the beginner's guide? It covers that and will probably answer a lot of your other initial questions.
Hi planetserve, you can email your project to me at ashleyjki@scirra.com and I'll take a look.
Please note the Free edition is not allowed to be used for commercial purposes (see how licenses work). Be sure to purchase a license if you're working on a commercial project.
Member since 21 May, 2007
The official blog for all things Construct and Scirra run by our employees!
Wider technology issues from Ashley's perspective.