I tried including an IF loop in my create event for an object, but I think GameMaker just skips the loop ?
Edit: GameMaker DOES run an if block in the create event.
Hi, fellow devs!
Last week I've been working on item sets for my game (item sets like from Diablo/Torchlight) and I came up with two sets: Ultranid's Damnation and Ultranid's Salvation.
Damnation gives player benefits, but player constantly loses a lot of health. Salvation makes it that player...
Hi. Firstly i must say that i am just a begginer in GM, so perhaps i overlooked smth or what more likely, smth didn't understand, so I apologize in advance for my stupidity). Ok, I import my project, which is random level generator from heartbeast), from 1.4. GMs2 as usual create compatibility...
Howdy, I've recently decided to pursue an idea I've had for a while with game development.
Things to know:
I have completed a "Tutorial" game following the official top-down shooter tutorial provided by YoYoGame's YouTube channel.
I also have Spine (Essential) and will be using it for most if...
Hi all,
Currently using GMS2 to create a 2d platformer. I have found a way for the enemies to follow the player based on the players direction compared to the enemy using:
var dir
if (obj_player.x = x) dir = 0
if (obj_player.x < x) dir = -1
if (obj_player.x > x) dir = 1
if...
What I am trying to do is have my sprite face where my mouse is. Because it is pixel art, I did this by having the sprite turn when mouse_x or y was greater/lesser than x/y. Also when you did turn around, you would be walking backwards, so movement speed would go down. This is what it looks...
I'm curious as to why the game does not run when I add this code?
I'm fairly certain that it's because of this part: if (xp > (i*10)) {i+=1}
for (i=1; i<5; if (xp > (i*10)) {i+=1})
{
if (xp > (i*10))
{
lv = i;
maxxp = (i*10);
xp = 0;
}
};
If the syntax is...
I'm trying to wrap my head around the difference between layers and depth. It appears to me that layers are manageable while depth is not, being automatically determined by the engine, or something? I've read the manual but I'm still confused.
I know what a layer is, like Photoshop layers mind...
Am still very new to Game Maker Studios, and have minimal experience with programming altogther, but thought i would give it a try.
I'm Currently trying to make a game similar to Mario (something i know that can show me a lot of the basics), but have come across a problem with my collisions on...
For some reason, my game slows down the FPS counter to 45-50 and stay there for some minutes. Then it comes back to 60, but it takes 5 minutes of more.
I tryed setting the FPSs to 120 and then it stopped in 60-65.
Do you have any idea about what could be happening?
Hello, all. I've been learning how to use Gamemaker Studio 1.4 lately, and I've run into a problem I haven't been able to find the answer to by google-ing it or watching tutorials.
I've been working with for loops using the basic for loop format:
for (i=-45; i<=45; i+=1)
{
if...
I'm trying to use enumerators to make my arrays more readable. However I'm running into an issue of sorts; (the fix for which seems like a bunch of manual editing of enum fields, gross lol) the question is whether different enumerators of the same "slot" are different from each other.
So for...
This game is rather simple! The first person will ask a question, then the next person will answer with another question. This will continue until someone either can't come up with a question, or end up breaking a rule.
RULES
You cannot ask the same question that someone else has asked.
The...
I have a question I have to ask regarding memory leaks if I have a game and I create a list as (a global variable ) that I'll be needing during the whole game... must I destroy it in the end of the game. Or is it taken care as I close the game?
I'm sorry if this is a dumb question... but I...
Like the Topic say, how do you guys do it? Take for instance my player is 100 by 100 pixels in his normal mask and he needs to be 100 by 50 pixels to go under a block or obstacle; How do I change the collision without much errors like stucking etc.... If changing the collision might stuck it...
i am new to GML and am trying to learn i have tried looking at the manual and looking online for a answer idk if its because i'm just not understanding it or i am not finding the answer but i am curious if something like this would work and if not how would i get it to work
key_enter =...
Hey. I'm on Studio 1.4, and I'm building for Android.
In my room, when I set the parameters for:
View in Room
x = 0, y = 0, w = 320, h = 180
Port on Screen
x = 0, y = 0, w = 2560, h = 1440
It displays correctly in the correct aspect ratio, 16:9.
I used "show_debug_message", and got the...
Hey everyone, I'm a relatively new programmer and learner in the game maker community. I am making a simple platformer game, and so far I've gottten the basics down, like walking to both sides, jumping and even double jumping. I also have animations set to these actions and it works like a...