• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Simple Question about screen_save_part()

Zechevalier

Member
screen_save_part() doesn't seem to work the way it's supposed to, and i just want to know if anyone else has had the same experience.

Code from documentation:
Code:
screen_save_part(fname,x,y,w,h);
But my problem is with the (w,h) part, it seems to act more like (x2, y2)

so my original code looked like this:
Code:
screen_save_part("image.jpg", var_x, var_y, var_pic_w, var_pic_h)
And didn't work as expected.

Until i changed it to this:
Code:
screen_save_part("image.jpg", var_x, var_y, var_x+var_pic_w, var_y+var_pic_h)
I hope you get what i'm saying, if anyone has had the same experience let me know.
 
Top