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?
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?