sprite_create_from_screen

  1. N

    sprite_create_from_surface not working after device lock or app exit

    Hi everyone I've made a fade effect to go between rooms in my game which works fine until the device is locked or the app is left then re-entered, then the fade effect no longer works anymore after this. I think the issue is with sprite_create_from_surface because I made some objects and...
  2. S

    Legacy GM How to replicate the obsolete "sprite_create_from_screen" function

    Howdy. I used sprite_create_from_screen in a few past projects, I now see this is "obsolete" in GMS 1.4. I'm hoping this means there is an alternative, but if there is one, I can't find it. Any ideas? I see there is still a "sprite_create_from_surface" but I'd rather not start learning...
  3. RyanC

    Legacy GM sprite_create_from_surface - not working properly!

    Hi All, I'm wondering if I can get some help with saving the screen to a sprite? The following code has two issues: Exported sprite has some alpha issues with small transparent pixels. Sprite does not capture the whole screen when running the game on less than 1x1 resolution ratio. I've tried...
  4. L

    sprite_create_from_surface Not working in HTML5?

    When I run my game in HTML everything is fine up until this line of code. The result is the screen not loading anything. var w = 96; var h = 96;//sprite_get_height(sprGen1P); var mySurface = surface_create(w,h); surface_set_target(mySurface); if(HeadGEN=1){draw_sprite(sprGen1P, newpoke2-1...
  5. sercan

    Android sprite_create_from_surface problem

    var surf; surf = application_surface; surface_set_target(surf); spr_test = sprite_create_from_surface(surf,0,0,480,800,false,false,0,0); sprite_save(spr_test,0,path); surface_reset_target(); this is the code i use to get a sprite from a created surface. In created sprite, the color pixels which...
  6. David Richard

    Asset - Demo Pause Example + Screen Capture script

    One of the best pause examples on the marketplace. A very simple and FREE asset permitting you to pause your game, deactivating all instances AND to take a screenshot of the entire screen presently shown. This example easily integrates into your games with little or no change at all. 1 script...
Top