B
Brleksak
Guest
Hi, I use this code to take a screenshot of where the mouse is placed (50x50px) and then I want that
screenshot to be the sprite of a certain object
_________________
Global left released:
var file;
file = screen_save_part(working_directory + "\Screens\Screen_"+string(num)+".png",mouse_x-25,mouse_y-25,50,50);
if file != ""
{
sk=sprite_add("Screen_"+string(num),1,false,false,25,25);
sprite_index=sk;
num+=1;
}
________________
Unfortunately its not working 100%, the screenshot is taken but the object does not recieve or update itself with the sprite? Also.. if I press several times it starts to act weirdly....
Thank you for helping
screenshot to be the sprite of a certain object
_________________
Global left released:
var file;
file = screen_save_part(working_directory + "\Screens\Screen_"+string(num)+".png",mouse_x-25,mouse_y-25,50,50);
if file != ""
{
sk=sprite_add("Screen_"+string(num),1,false,false,25,25);
sprite_index=sk;
num+=1;
}
________________
Unfortunately its not working 100%, the screenshot is taken but the object does not recieve or update itself with the sprite? Also.. if I press several times it starts to act weirdly....
Thank you for helping