Jump to content


Photo

Take a screenshot?


  • Please log in to reply
2 replies to this topic

#1 Exe_Mas

Exe_Mas

    GMC Member

  • GMC Member
  • 152 posts

Posted 09 March 2012 - 12:52 AM

Hello, I have a doubt. I have been testing for a while and I didn't get to take a picture of the game and use it as a Background or Sprite for a pause menu.
I tried with surfaces, but screen_redraws doesn't work well. I tried with sprite_add and screen_save but GMS can't add external sprites, the same with sprite_create_from_screen, it doesn't work for me.
I'm out of ideas, do you have any?
Thank you very much!
  • 0

#2 cotycrg

cotycrg

    GMC Member

  • GMC Member
  • 851 posts
  • Version:GM:Studio

Posted 09 March 2012 - 01:42 AM

Why not just try using a 'pause' thing for every object?

with(all){
pause = 1;
}

Something like that. I mean, of course, make sure that every object knows what to do with that variable and such. Depending on the type of game you're making, this is much better than taking a screenshot and pausing.

EDIT: Errr thinking about it more than half a second made me realize that the above thing is really inefficient.. just use a global variable or something, haha. Like 'global.pause=1'

Edited by cotycrg, 09 March 2012 - 01:43 AM.

  • 0

#3 Exe_Mas

Exe_Mas

    GMC Member

  • GMC Member
  • 152 posts

Posted 09 March 2012 - 03:14 AM

Yes, is a good idea, but I have to program the engine all over again for only a single screenshot hehe... maybe if I can't find a solution, I will made a "special pause menu", it's not as cool as a I want, but cool enough lol.
Does anybody have another idea? Thank you so much!

Edited by Exe_Mas, 09 March 2012 - 03:18 AM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users