• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM [Solved] Floats in Enum

M

mikahon

Guest
Is it even possible to use floats in enum structure ? Constants in the enum that are floats just seem to return 0, is there a workaround for that ?
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
GameMaker's enums follow the standard C-like syntax, meaning that enum constructor values can only be 32-bit integers.

Depending on what in particular you are trying to accomplish, might want to use macros instead.
 
M

mikahon

Guest
Alright thanks, I wanted to set as many constants as possible outside of macros but I guess I've gotta do it.
 
Top