Jump to content


Photo

HELP!


  • Please log in to reply
5 replies to this topic

#1 Graphic Galore!

Graphic Galore!

    GMC Member

  • New Member
  • 68 posts
  • Version:GM8

Posted 24 April 2012 - 11:26 PM

Can some one PLEASE help!?! i need to know how too let you save a pic as .jpg or .png! please help! ASAP! :sad:
  • 0

#2 The2Banned2One

The2Banned2One

    BANNED

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

Posted 25 April 2012 - 02:23 AM

Do you want a screenshot to be taken of the game screen or do you want to save a sprite you made in the editor?
  • 0

#3 creativebunch

creativebunch

    The Bunchiest

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

Posted 25 April 2012 - 02:46 AM

Yeah we really need more information. Are you wanting to let the player save the picture? (And I don't think GameMaker can save in jpg)
  • 0

#4 creativebunch

creativebunch

    The Bunchiest

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

Posted 25 April 2012 - 02:56 AM

Saying the exact same thing is exactly what I didn't want you to do.
  • 0

#5 Graphic Galore!

Graphic Galore!

    GMC Member

  • New Member
  • 68 posts
  • Version:GM8

Posted 25 April 2012 - 04:32 PM

Do you want a screenshot to be taken of the game screen or do you want to save a sprite you made in the editor?

No i made a program that lets you draw sprites and backgrounds and i need to let them save as a jpg,png what they made!

Edited by Graphic Galore!, 25 April 2012 - 04:34 PM.

  • 0

#6 GameGeisha

GameGeisha

    GameGeisha

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

Posted 25 April 2012 - 07:10 PM

No i made a program that lets you draw sprites and backgrounds and i need to let them save as a jpg,png what they made!

Once the sprites and backgrounds are drawn onto the screen, you can use these functions to save the resulting on-screen image into a PNG file:

screen_save(fname) Saves a png image of the screen in the given filename. Useful for making screenshots.
screen_save_part(fname,x,y,w,h) Saves part of the screen in the given png filename.


Another more flexible method involves drawing the sprites and backgrounds onto a surface, then use these similarly named functions:

surface_save(id,fname) Saves a png image of the surface in the given filename. Useful for making screenshots.
surface_save_part(id,fname,x,y,w,h) Saves part of the surface in the given png filename.


GameGeisha
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users