Pages: 1
Author Topic: Constants?  (28,188 Views)
Offline (Unknown gender) sorlok_reaves

Contributor
Joined: Dec 2013
Posts: 260
View profile
Posted on: November 10, 2014, 02:06:26 AM
Do constants currently work in ENIGMA? I am having some trouble importing constants from GM8.
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #1 Posted 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.
Offline (Unknown gender) egofree

Contributor
Joined: Jun 2013
Posts: 601
View profile
Reply #2 Posted 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.
Offline (Unknown gender) sorlok_reaves

Contributor
Joined: Dec 2013
Posts: 260
View profile
Reply #3 Posted 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.
Pages: 1