It is very possible I'm just doing something weird. I'll shoot an email your way.
Also, I just pasted the code you posted into the demo I originally had, it still does the same weird repositioning.
Ok, so this behavior is extremely peculiar after testing it out.
In Gamemaker, you can modify a borderless window's position no problem. But if "obj_test" is spawned, or if you go to a room with "obj_test", the ability to modify the window's position gets messed up, and will bump very far if you try to modify it, even after restarting the game.
I bound the R key to restart the game AND reset the position of the window:
game_restart(); window_set_position((display_get_width()*0.5)-(window_get_width()*0.5),(display_get_height()*0.5)-(window_get_height()*0.5));
And I bound the Enter key to spawn "obj_test."
It works just fine when "obj_test" is not present. But even if you restart the game, so it doesn't exist anymore, it will only reset the inside of the window to the middle of the original window. (see video)
If you try to spawn "obj_test" after the window has been weirdly offset, it looks like it tries to create the new window at the middle of the original window, and then it crashes.
If I try to move the window relative to its own position using window_set_position(), it bumps the inside of the window far down and right. Even if I literally set the window position to itself:
window_set_position(window_get_x(),window_get_y())
it moves the inside of the window far down and far right. Same with window_set_rectangle. For some reason it doesn't like to be moved with code. Is this something that only exists in the demo?
Hi, my name's Epoch! I'm a composer who produces music mainly inspired by Minecraft, Celeste and Undertale (but I've made basically every genre). I make a lot of passion projects in my free time. I've also made a couple meme songs... JUMPSCARE i'm a youtuber on the side
I've made covers for people/worked with VGM in the past, but never professionally. (I hate marketing myself... :D)
Personal:
https://www.newgrounds.com/audio/listen/1423198
VGM:
https://www.newgrounds.com/audio/listen/1391013
https://www.newgrounds.com/audio/listen/1402023
An OST I made back in 2022:
https://www.newgrounds.com/playlist/332969/u23-ost
Minecraft type beat:
https://www.newgrounds.com/audio/listen/1472113
My style is goofy and wacky, but is fueled with passion and interlaced with some tragic elements. I think it reflects the type of story I find most interesting.
Would love to compose for a game with a heart and soul (and with people who want to passionately work on a project as well!) If you just wanna collab on a project, or need someone for an OST, just reach out; we can figure out free or paid setups :)
Spotify: https://open.spotify.com/artist/5xgHXROeMIailRYmum6FRT?si=QAC2Z8b-QYutaeYZPwvOy
YouTube Music Topic: https://www.youtube.com/channel/UCGBd899dcFfGsJuuA7ptTPQ