NEED HELP! HOW TO BREAK THE FOURTH WALL?

M

Marshie

Guest
Recently I Have Been Trying To Break The Fourth wall in my gamemaker studio Games. Though I Need Help With Doing This. This Is What Im Trying To Do:

1. Make objects Move out of the window and the people playing can still use the window normally

2. make things in order to progress hidden in computer wether its behind the window or in the downloads i want to make my game player find things by search through there own computer to continue

3. Search For Pc Name And Say It To Them Later

Thank You :)
 
A

Arkid

Guest
Can you please make it clearer about what you want to do so more people can help? Thanks!
 
M

Marshie

Guest
To Make It Easier and more Descriptive To Say In My Points:

1. I Would Like To Know How I Can Make The Game Go To Windowed Mode And Then Have A Object (Most Likely A Character) Walk Out Of The Window And Off The Screen.

2. I Would Like To Make A Code For Progression In The Game Being Found By Looking Behind The Window.

3. I Would Like To Make A Part Where The Game Character Says Hello "PCNAME" To You.
 
A

Arkid

Guest
Im sorry but Game Maker cannot support what youre looking for. You can only use a Windows-like background for the rrom and an object which can be dragged by the mouse to look as a window. Getting the PCNAME is hard but you can ask the user for his name using a dialogue window instead. Hope this helps:D
 
M

Marshie

Guest
can you give me the code for the object that can be dragged that looks like the window?
 
can you give me the code for the object that can be dragged that looks like the window?
You will have to develop that on your own, I am afraid. That poster was suggesting that the best you can do is make your in-game rooms look like a desktop computer. I guessing that they don't have any code to offer you, I think they were just providing an idea on how you can proceed. And depending on how interactive you want your in-game desktop to be, it could be quite a bit of code to set up.

But, the idea is cool - build your own mock OS with a desktop that interacts with a game that exists in a window in the mock OS.
 

Joe Ellis

Member
I think you can get the pc name using environment_get_variable(COMPUTERNAME), though I've never tried that exact one, I found this list of environment variables a while ago https://ss64.com/nt/syntax-variables.html and the ones for getting the processor info(id, number of cores, etc.) work fine with the environment_get_variable function, it just returns the variable value as a string

As for the other points, you can save\load files anywhere on the computer with this extension http://gmc.yoyogames.com/index.php?showtopic=567528, the image\in-game resource saving/loading functions dont appear to work as it was written for an earlier version of gm, but for standard saving\loading\copying\deleting\renaming files it works perfectly so you could definitely make your own "fake windows" with it

and the 1st point, it MIGHT be possible using one of these extensions, the only way I can think of were if you could embed some kind of program that emulates Windows Explorer into the game window,(which would be fullscreen) then have a fake game window drawn over the top of the embedded windows,
https://marketplace.yoyogames.com/assets/654/embed-exe
https://marketplace.yoyogames.com/assets/1648/run-application

But I think you'd be better off making a fake windows
 
Last edited:
321looloo has some good ideas - but I think their last point of making "fake windows" is your best bet. Even if you manage to get some of the things working (like placing files, etc...) the character leaving the game window and existing on your real desktop isn't possible. As other have said, you could force a screenshot, but that sort of defeats the purpose of placing the files out there, etc...

Make your own mock desktop in the game, it will be a much better experience.
 
Top