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!
After updating gamemaker to version v2023.11.1.129 Runtime v2023.11.1.160 I get an error when loading a game save where there is a link to the enum.
In my game, everything is tied to these enumerations and has more than 1000 lines of code where they are mentioned. Before this, everything worked...
I am making a game where players can choose from a list of colors for their player to be. I am trying to store the colors a player can be in an array, and this array I think should be a constant (instead of a global variable) since it won't need to change once the game is started. However, both...
Hello. I was just working on other things in my game and did not do anything with this script. It just suddenly became a problem. The error "says enum got '0' (int) expected 'id'" Someone said it was a bug and they fixed it by restarting their computer, but that hasn't fixed this for me. Any...
Hello, is there a way to change an Enum at runtime?
Like for instance, the player starts with:
enum player_ability {
normal
}
but then like Mega Man, get's a new ability and a new option is added like:
enum player_ability {
normal,
boomerang
}
So I've been trying to add branching dialogue to my game, and I've gotten everything to work except for one thing: A specific NPC dialogue state doesn't save! What I mean is that I want the NPC to say something else after being spoken to before to give the illusion that they remember what they...
I created a ds_list inside a global variable called "global.inventario".
I succesfully created a code that make my items apear inside my inventory, the numbers rise when I get more items and decrease whe I use it, but, when it reach "0" I need it to be deleted of my ds_list.
There is the...
How do I do it? I'm trying to pick a random value from an enum for an object at the creation of that object.
Do I have to set that enum's value in the create event (to zero) and then make it random in a step event? Or can I set that random value right away in the create event.
And, what...
Just getting accustomed to the new laylout, but what I'm confused about is how enums work with this new update. This is how its currently looking in the enum script. I'm going through the manual and I can't find what function_enum_fields() does.
can someone explain what i need to do to make...
its me again, hope you guys can help me again :D . I already made everything, but this thing makes it so that i cant even test and open the game becouse its a "FATAL ERROR".
/// @desc Draw black bars
if (mode != TRANS_MODE_OFF) <---- is supposed to be a enum but it becomes a variable
{...
I have seen a guy with a similar problem but it's different for me.
for some reason the "OFF," and "NEXT," don't work. The OFF, turns into a variable and the NEXT, doesn't do anything just stays gray. Please help fast.
Code:
/// @desc Size variables and mode setup
w =...
Hi, I have an action rpg project. In the player object i have an enum with 3 states: move state, dash state and melee state. When I´m dashing or attacking the player just stops until it finish the action.
It turns out that I´m trying to make the player move when i´m attacking or dashing (before...
Found what seems like a bug in GameMaker Studio 2:
is_real() returns false when passed an enum even though enums are treated as ints in every other case I can find.
The documentation for is_real says it "returns whether a given variable is a real number (single, double or integer) or not" and...
So I've been making a TD and I've been looking at targeting systems. Atm I've been play testing with it shooting at the nearest enemy but I'd like to improve that. I found a comment that seemed very helpful but I've never used ds lists or anything like that so I am really at a loss how to...
in short i have a list of enums i save for different monsters, for a combat i have a number get randomly generated and assigned to a variable called enemy1, enemy2 etc and that determines what appears, what is the best way to check which monster in the list of enums can be compared to the number...
Quick Question Guys.
In my current project I have written a text file translator that turns text file code into real code.
Now the problem is, in the program, I have a bunch of enums, one in particular describing material. And of course I want to tell the textfile, which material it should...
Not sure if this is possible or not but I have an enum and i want a variable to change to a random string from that list. For example if i have this enum.
enum item {
none = 0,
test1 = 1,
test2 = 2,
test3 = 3,
height = 11,
}
and i want a variable to change to...
Okay so i have just started using enum's don't quite understand and i'm getting very odd behaviour from them. I'm getting this error:
Variable control.<unknown variable>(100004, -2147483648) not set before reading it.
at gml_Script_is_near_fire (line 8) - if inst.type = pType.fire
Heres...
Hi there - I recently started messing around with finite state machines, User Events, and enums to create player states. Many of you may already be familiar with this, but the way all of this works is that there's an enum for the player (let's say enum player is idle, move, pickup_item, etc.)...
I apologize for not posting example code. I've tried several approaches including enum, and switch, and posting my attempts would not be much use.
I attempted to code without them, but quickly realized it would be quite bulky with too many if statements to be optimal / manageable. I've also...