http://downloads.sourceforge.net/constr ... irror=osdn
Construct 0.91 is a milestone in Construct's development, introducing the ability to Python script your games with a high level of integration between scripts, events and objects. For information on Python, visit (you don't need to run the Python installer to use it in Construct - everything you need is included).
Python Scripting - Construct Wiki
To insert a script, right-click and pick 'Insert Script'. 'Enable scripting' must be enabled in application properties. You'll be prompted if it is off when you insert a script. Scripts can be inserted as sub-events to run only when an event is true, or in the main event list, where it runs on the equivalent of an Always event.
Applications using Python require the distribution of Python25.dll alongside the exported EXEs in this build. You can find it in the Construct directory. Hopefully this is a requirement we can eliminate in a future build, by packaging the DLL inside the exported EXE, but for now - don't forget it if you use Python!
The script editor includes a kind of intellisense that filters out the available functions to you as-you-type. Objects are directly accessible and modifiable in Python: if you have an object named Sprite, you will be able to modify it like so in Python scripts:
Sprite.X = 100
Sprite.Angle += 1
etc. The aim is to have all actions/expressions/conditions accessible through Python, and you should be able to find all of these through the intellisense filter in the script dialog.
The editor also makes some corrections to code as-you-type:
- Auto-indent (indentation is significant in Python)
- Adding : if forgotten on certain lines
- Substituting = (assignment) for == (equality) if accidentally typed in an if statement
- Bracket highlighting and insertion of missing brackets
These are experimental adjustments and they will either be kept, expanded or removed depending on community feedback, so let us know!
This is the first Python build, so let us know your thoughts and questions. Soon I will be posting more Python tutorials and information to help you get started.