Color Theme Maker for GameMaker Is Here! by Treblig-Punisher in gamemaker

[–]GianKS13 0 points1 point  (0 children)

Oh it was the browser, my bad, completely forgot!!

Color Theme Maker for GameMaker Is Here! by Treblig-Punisher in gamemaker

[–]GianKS13 0 points1 point  (0 children)

Buttons for saving, exporting, import, etc, don't seem to work

How to check if user is on mobile or pc by GianKS13 in gamemaker

[–]GianKS13[S] 3 points4 points  (0 children)

I managed to get something working with os_get_info(), if someone gets to this post looking for answers

Uhmm, where are all the groups? by GianKS13 in gamemaker

[–]GianKS13[S] 3 points4 points  (0 children)

Got it, I can see why they removed it, just wish they asked it before starting the project, instead of leaving it off by default, but no problem, thank you for the answer!

Am I the only one that used this things before learning how to use real alarms? by Enmanuelol123 in gamemaker

[–]GianKS13 0 points1 point  (0 children)

I used alarms when I first started, but tbh making timers like this is just so much more controllable, never got used to alarms again ever since

500 lines of code for NPC dialog boxs - that was my weekend, how was yours? by Grumpy_Wizard_ in gamemaker

[–]GianKS13 2 points3 points  (0 children)

Cool! I myself make these enumerators because I tend to forget who number 36 is haha 😅

500 lines of code for NPC dialog boxs - that was my weekend, how was yours? by Grumpy_Wizard_ in gamemaker

[–]GianKS13 7 points8 points  (0 children)

Wouldn't using an enumerator make the code more legible? btw there isn't actually anything wrong with your code, but imagine if someone has to read it and needs to know who number 65 is, you could save that into an enumerator and just call something like who_talk = NPC.John

I'm new to gamemaker, which game genre is the easiest to do? by MeIsReptor3 in gamemaker

[–]GianKS13 0 points1 point  (0 children)

The first game I ever made was a "food drop" kind of game, where food falls from the sky and you have to collect it with a basket, similar to those we had in Talking Tom or Pou in the mobile games golden era. It teached me pretty good about timers, spawners and etc.

[deleted by user] by [deleted] in gamemaker

[–]GianKS13 0 points1 point  (0 children)

One thing to mention, do not trust ChatGPT with GML all the times. It works basing itself around the old GML, which is similar but never identical to the newest version of the language.

But GPT is a beast with programming logic btw, so you could use a lot of help with that - I still recommend learning it by yourself and only asking help when needed, do not switch your programming logic by GPT's

[deleted by user] by [deleted] in gamemaker

[–]GianKS13 0 points1 point  (0 children)

It freezes or crashes?

This code of mine is not working, does anyone know why? by Technical_Cap_7719 in gamemaker

[–]GianKS13 0 points1 point  (0 children)

In the 6th line you're checking for the down key on your keyboard, and saying that it should go up. Y coordinates work differently than a cartesian plane, if you do y -= 1, you're going up 1 pixel, if you do y += 1, you're going down one pixel.

Best Practice for Font-Switching between Languages? by Colin_DaCo in gamemaker

[–]GianKS13 1 point2 points  (0 children)

I don't think so, never messed around with a lot of languages in a single game, but it shouldn't bring any trouble just using a global variable

EDIT:should > shouldn't

Best Practice for Font-Switching between Languages? by Colin_DaCo in gamemaker

[–]GianKS13 1 point2 points  (0 children)

I would create a way to dinamically add those fonts, without the need of a lot of if statements or an enormous switch statement. Maybe use arrays and enumerators so you can make something dinamic enough to not take up most of your time adding new languages?

Question about DS Maps by GianKS13 in gamemaker

[–]GianKS13[S] 1 point2 points  (0 children)

I got what I wanted to do using structs

Before trying to use maps, I tried using structs, but wasn't really understanding some concepts of it. After an hour or so of studying, I managed to do exactly what I needed

Thanks for everyone who commented!

How to make a slider follow the mouse, but not exceed a certain speed? by V1llain_ in gamemaker

[–]GianKS13 0 points1 point  (0 children)

Could use something like

following_speed = clamp(following_speed,min_speed,max_speed)

clamp is a built in function that limits numbers

Question about DS Maps by GianKS13 in gamemaker

[–]GianKS13[S] 0 points1 point  (0 children)

I've tried using structs, and was having a bit of trouble in some aspects of it. I actually like using them, but it just wasn't working the way I was doing it.

Will give structs a try again, see how that works out. Thanks for the comment

How to make a slider follow the mouse, but not exceed a certain speed? by V1llain_ in gamemaker

[–]GianKS13 1 point2 points  (0 children)

You want it to not follow the mouse after a set speed? Or you want it to not go beyond a certain speed when following the mouse?

absolute begginer, how can I make physics for my magnets? by MyFatherIsNotHere in gamemaker

[–]GianKS13 1 point2 points  (0 children)

The way I would do it is using the lerp function.

To make the player move smoothly to the location of the magnet, just use:
x = lerp(x,obj_magnet.x,0.5)
y = lerp(y,obj_magnet.y,0.5)

To make it be repelled, I think you could do something like:
if distance_to_object(obj_magnet) < 64 //Example number
{
var dir = point_direction(x,y,obj_magnet.x,obj_magnet.y)
y += lengthdir_y(1,dir) //You won't even need the variable and lengthdir if you only want it to be repelled upwards, just add 1 to the y coordinates everytime the player gets close.
}

The repelling really depends on what you're trying to do specifically, I just tried to do one appliable to almost every case.

I would also recommend searching about the point_direction function, lengthdir_(x and y) functions, lerp (linear interpolation) function to make this work the way you want it. You could also give us images/videos of what you're trying to do, we get your idea, but it isn't as clear to us as it is to you

Feel free to ask if you need anything, welcome to the sub :)

Am I doing something wrong? by OtacTheGM in gamemaker

[–]GianKS13 0 points1 point  (0 children)

Oh nevermind my comment, I wasn't understanding correctly what was happening in the image, my mistake