• 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!

application_surface

  1. Durgal

    SOLVED Surface Drawing GML worked in 1.4 but not 2.0

    I get the following error when trying to draw to the application_surface, which did not occur in 1.4 but does occur in 2.0 since I've imported my project. "Trying to set texture that is also bound as depth buffer - bailing..." I've scoured the internet and have tried to mitigate the error...
  2. S

    Issue with draw_clear_alpha and draw_surface_ext application_surface

    Hey, I'm currently following a video to create a lighting system in my game, and to make sure the lighting doesn't affect the background, the video tells me to hide the background in the room and then in the post draw event, use the draw_clear_alpha function to draw a teal background and then...
  3. Itaisinger

    GameMaker copying the application surface for a pause screen gives weird results

    Hey. I've got a tutorial object that acts like a pause menu, it saves the application surface and then draws is as background, after disabling all instances. the problem is that some spesific draws just look weird after the copy, like they are drawn in some different blend mode or low alpha...
  4. chirpy

    Android application_surface_enable(false) ?

    I've read somewhere in some old thread saying that lower-end or older Android devices simply hate application_surface. Is this still true nowadays? It does seem so because some of my old test devices keep showing me <30 fps despite slightly newer devices have solid 60. If it's still preferrable...
  5. FoxyOfJungle

    surface_save(application_surface) alpha blending problem...

    Hi! #1 - I have this code in the Step Event of an object: if keyboard_check_pressed(vk_space) { surface_save(application_surface, "ImageFile.png"); } #2 - Result: As you can see, there is a color difference in anything with transparency (like the shadow of the player) between the...
  6. D

    [SOLVED] Sending surface over network

    Hi, I've been trying to send an application_surface in a buffer (I'm using a server-client system) and displaying it in the client's game so that he would "see what the server sees" but this doesn't seem to work. It doesn't crash or anything just nothing happens. Here's the code: // Server -...
  7. M

    Legacy GM Ports (view_wport and view_hport) are broken, don't affect aspect ratio or resolution at all

    So as my title suggests I'm experiencing issues with view_wport and view_hport which I have never experienced before. I've used GMS 1.X for a few thousand hours across the last years and when writing a framework for handling scaling today I found this issue. For performance reasons I've...
  8. S

    Windows Windows 10 Update has broken application_surface resizing?

    So I am using some very simple code to set the application_surface to be the same size as my window. if (window_get_fullscreen()) { if (surface_get_width(application_surface) != display_get_width()) { surface_resize(application_surface, display_get_width()...
  9. Fluury

    Get size of "scaled" view / How to achieve pixel perfect scaling with free window scaling

    Heya. Following Issue: Similar to Nuclear Throne I'd like to allow the player to freely resize the window to their liking while keeping the area within the window the same - this means we get Black Bars. These are fine, what however isn't fine is the game's sprites getting all crusty...
  10. EnderLost Studios

    GameMaker application_surface resize

    So, I've got a pallet swapping shader. I'm running this in the Post draw event so I can use application_surface. Now the issue is, the application_surface is 400w by 250y and that's great! This puts a lot less work on the pallet swapper to change every pixel. Of course, after this, I use...
  11. Y

    (solved) Copying app surface drawn other translucent rectangle

    I got problem when I copy application_surface to surf_pause which is used to pause game. When pausing game by pressing P key, it remain afterimage on surf_pause I thought that this remain because surf_pause is translucent I have known that even if draw translucent box where alpha value is 1...
  12. P

    GameMaker Redrawing Application Surface causes Lag upon Resizing Window

    The game I'm currently developing requires a camera system where the graphics never scale up, and resizing the window increases the amount of the room you can see instead of the size of the graphics [it's a top-down single-player puzzle game, justifying this sort of camera]. I have already made...
  13. J

    [Solved] Screen Flash When Disabling Auto Draw of Application Surface

    Hi, I have a screen object which is handling how the game appears on the display. In the create event I have: window_set_fullscreen(true); application_surface_draw_enable(false); texture_set_interpolation(false); display_reset(0,true); And in the draw gui begin event...
  14. MartinK12

    Question - Code [SOLVED] Pause menu with background sprite from application_surface

    Hi guys, I'm playing with the tutorial for GMS2 and I added to the game obj_pausemenu with this code: 1. In the CREATE event: pause = 0; 2. In the DRAW event: var camx = camera_get_view_x(view_camera[0]); var camy = camera_get_view_y(view_camera[0]); var camw =...
  15. D

    Fixing Distorted Pixels?

    Hi! I started working with Game Maker just the other day. So far the experience has been completely engrossing, I love it! And so I thought it would be a good idea to join this forum. I am currently working on my very first project. It is still no more than an experiment really, where I get to...
  16. B

    Question - Code application_surface will return the texture page

    I've tried a couple times to draw the application surface or just a section of the application surface but every time i reference it, it doesn't return the surface, instead it returns the games actually texture page as shown bellow. Just to verify the bellow is the games texture page itself...
  17. Mool

    Android Shader does not work at android

    Hello, i have a little problem with my shaders. If i apply shaders to my sprites or backgrounds, then nothing happens. But if a apply the same shader to the application_surface, then they work. So the Post draw works, but the normal draw event not. On windows everything is fine. #Huawei...
  18. L

    Legacy GM [Solved]Help pause background problem

    My game has some performance problem in old android, ios phone. (Galaxy 5 ok but galaxy4 has some lag) So I used below function. application_surface_enable(false); Then it boosts fps significantly! But I used application_surface for making pause. I got a error for no existence...
  19. gnysek

    Question - Code [SOLVED] Alpha issue when drawing application_surface manually

    I've just noticed (but this happens probably even before GMS2), that there is issue with drawing application_surface manually. When I enable it, and draw manually in Post-draw event, sprites which have alpha-transparency are blended in a strange way (like transparency between 1 - 254 is divided...
  20. S

    GML Stretching the game contents down (without application_surface)

    Hey guys. With the following code, in the "Draw GUI" event, of a persistent, top-most object, created in the first room of your game, you can make your game contents stay the same resolution on your screen, regardless of whether the game is in fullscreen, and regardless of the window's size. Be...
Top