application_surface

  1. FoxyOfJungle

    GMS 2.3+ 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...
  2. DonMaklesso

    [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 -...
  3. 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...
  4. 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()...
  5. 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...
  6. EnderLost Studios

    GMS 2 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...
  7. 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...
  8. P

    GMS 2 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...
  9. 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...
  10. 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 =...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. Samuel Venable

    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...
  17. Samuel Venable

    [SOLVED] "Keep Aspect Ratio" GGS and Disabled Application Surface

    It appears the Global Game Setting for the game to keep its aspect ratio is ignored when the application_surface is disabled. So it stretches either way. But I need the application_surface disabled to help Android performance. According to the FAQ...
  18. Drenathor

    Question - Code Copying from the application_surface (is this a bug?)

    What I'm trying to achieve: I want to make a waterfall object which applies a shader to everything appearing under it so that tiles, assets and objects occluded (even partially) would have a distortion applied. What I'm Doing: I'm creating a new surface for the waterfall, copying the area...
  19. C

    Shader showing up in the corner.

    So basically I'm trying to imitate the overlay effect that Photoshop has. I'm attempting to overlay a background overtop of my game screen. Basically the shader appears in the top left corner of the screen and is somewhat smaller than the actual screen size. That red square is the background...
  20. S

    Screenshot without application_surface

    I want to make a screenshot of the players record for a facebook sharing. And i want to add the game Icon / QR on that screenshot, so what im doing is drawing the icon and QR and then im using screen_save_part to make the screenshot. But this makes it a little bit weird when you actually can se...
Top