1. Hey! Guest! The 34th GMC Jam will take place between August 22nd, 12:00 UTC (Thursday noon) and August 26th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

GMS 2 [SOLVED] surface_save?

Discussion in 'Programming' started by Neptune, Aug 12, 2019.

  1. Neptune

    Neptune Member

    Joined:
    Jun 21, 2016
    Posts:
    1,023
    Is there a function that pairs with surface_save, that allows for loading .png files back into surfaces?
    Or how should I go about doing this?

    Any info is appreciated :)
     
  2. obscene

    obscene Member

    Joined:
    Jun 21, 2016
    Posts:
    2,402
    Not from experience but should work and only plausible way: use sprite_add() to get the PNG file and draw it to a fresh surface.
     
    Neptune likes this.
  3. Neptune

    Neptune Member

    Joined:
    Jun 21, 2016
    Posts:
    1,023
    Ok, that looks like exactly what I'll need, thanks!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice