It can happen that PEd2 uses different variables for object transformations than
you have in your project. Before starting to use PEd2, we recommend you to check
if the variables are matching, otherwise you would not be able to use the editor.
To do so, go to script PEd_Macros
and you should see a short list of macros that
substitute for variable names.
Macro | Description |
---|---|
PEd_POS_X |
Instance position on X axis. |
PEd_POS_Y |
Instance position on Y axis. |
PEd_POS_Z* |
Instance position on Z axis. |
PEd_ROT_X* |
Instance rotation around X axis. |
PEd_ROT_Y* |
Instance rotation around Y axis. |
PEd_ROT_Z |
Instance rotation around Z axis. |
PEd_SCALE_X |
Instance scale on X axis. |
PEd_SCALE_Y |
Instance scale on Y axis. |
PEd_SCALE_Z* |
Instance scale on Z axis. |
PEd_COLOR |
Instance color. |
PEd_ALPHA |
Instance alpha. |
These variables are automatically saved into level files. Any other additional variable has to be written into instance's creation code. Writing variables into the creation code is done in PEd_InstanceAutocompleteCode and their loading in PEd_VariableAssign.
* - Additional variables, necessary only for 3D transformations. If you are using PEd2 for creating 2D levels, you can leave these constants as they are.
Copyright © 2024, BlueBurn. Built on September 03, 2024 using GMDoc.