Pages: 1
  Print  
Author Topic: Constants?  (Read 24318 times)
Offline (Unknown gender) sorlok_reaves
Posted on: November 09, 2014, 09:06:26 pm
Contributor
Joined: Dec 2013
Posts: 260

View Profile
Do constants currently work in ENIGMA? I am having some trouble importing constants from GM8.
Logged
Offline (Male) Goombert
Reply #1 Posted on: November 09, 2014, 09:53:12 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2991

View Profile
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.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) egofree
Reply #2 Posted on: November 10, 2014, 03:09:12 am
Contributor
Joined: Jun 2013
Posts: 601

View Profile Email
The only way to use constants in ENIGMA so far is to use enumerations :

Code: [Select]
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.
Logged
Offline (Unknown gender) sorlok_reaves
Reply #3 Posted on: November 10, 2014, 07:01:44 pm
Contributor
Joined: Dec 2013
Posts: 260

View Profile
Thanks for the information. I'll probably try to implement this next, since I need it for An Untitled Story.
Logged
Pages: 1
  Print