• 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!

trouble with sprite_create_from_surface

M

Maxikit2803

Guest
hi im trying to create a character editor for my game and so far everything seems to work except the last step where you merge the sprites/pixel via sprite_create_from_surface

if (surface_exists(surface)){
if global.char_done = 1 {
surface_set_target(surface);
spr_custom = sprite_create_from_surface(surface, 0, 0, 36, 44, false, false, 64, 38);
sprite_save(spr_custom, 0, "custom_sprite.png");
surface_reset_target();
surface_free(surface);
global.char_fertig = 2
}
}

am i missing something?
 
Top