ENIGMA Forums

Outsourcing saves money => Programming Help => Topic started by: sorlok_reaves on November 10, 2014, 02:06:26 AM

Title: Constants?
Post by: sorlok_reaves on November 10, 2014, 02:06:26 AM
Do constants currently work in ENIGMA? I am having some trouble importing constants from GM8.
Title: Re: Constants?
Post by: Goombert on November 10, 2014, 02:53:12 AM
They should at least be showing in the constants frame? I don't remember if they were actually finished or not but I started working on multiple configurations and never finished because I had a complete lack of direction on how to approach it. It would help if everyone could offer their opinions on multiple configurations. The configuration drop down on the main toolbar is obviously supposed to be letting you select the current configuration which GM Studio now ties to multiple constants, though I may be moving the constants back to Game Settings and just keep it all in one frame.
Title: Re: Constants?
Post by: egofree on November 10, 2014, 08:09:12 AM
The only way to use constants in ENIGMA so far is to use enumerations :

enum {UP, DOWN, LEFT, RIGHT,NONE};

Declarations of enumerations are currently not possible in scripts or objects, however you can include them in definitions, under ENIGMA settings.
Title: Re: Constants?
Post by: sorlok_reaves on November 11, 2014, 12:01:44 AM
Thanks for the information. I'll probably try to implement this next, since I need it for An Untitled Story.