Pages: 1
Author Topic: Supporting instance's new properties in the ENIGMA engine  (25,629 Views)
Offline (Unknown gender) egofree

Contributor
Joined: Jun 2013
Posts: 601
View profile
Posted on: August 26, 2014, 03:34:39 PM
The last step to complete for the new instance's properties is to create a 'pre_creation_code' property for the instance. The question is : how and when do we create this property ? I think the best way is to create this property in the LateralGm plugin. When running the application, the plugin will loop through all instances, check the new properties and create the 'pre_creation_code' property when needed (e.g if scale <> 1, if rotation > 0, etc.) . The other solution, would be to create this property each time a new project is loaded, and to modify it also each time we modify an instance property. I prefer by far the first solution. What do you think ?
Offline (Unknown gender) egofree

Contributor
Joined: Jun 2013
Posts: 601
View profile
Reply #1 Posted on: August 26, 2014, 03:38:55 PM
IsmAvatar:
If you are reading this topic, perhaps you don't know what is the 'pre_creation_code' property. If it's the case, please read this topic first : http://enigma-dev.org/forums/index.php?topic=2155.0
Offline (Unknown gender) IsmAvatar

LateralGM Developer
LGM Developer
Joined: Apr 2008
Posts: 877
View profile
Reply #2 Posted on: August 26, 2014, 04:13:57 PM
If these properties are in GM:Studio, it would be reasonable to hard-code them directly in LGM, rather than appending them to the property list.
If they are not, and are intended to only be in ENIGMA, then your solution seems sufficient. Hopefully everything is in place to make this possible.
Pages: 1