S
Shadowblitz16
Guest
can someone help me with my problem here
it seems that my sub images are being sliced in half and I'm not sure why
it might have something to do with the images because I reorganized the sprite sheet and now all of them are doing this instead of just the luigi and wario ones
this is my sprite sheet setup
here is what happens(ignore the flickering that's not the problem)
this is my code
it seems that my sub images are being sliced in half and I'm not sure why
it might have something to do with the images because I reorganized the sprite sheet and now all of them are doing this instead of just the luigi and wario ones
this is my sprite sheet setup
here is what happens(ignore the flickering that's not the problem)
this is my code
Code:
/// @desc Game create event
// You can write your code in this editor
global.skins_loaded = false
global.skins = []
// Init systems
palette_init_system(shd_palette, false)
image_system_init()
def_sprites()
// Flags
is_paused = false
is_exiting = false
// Flag vars
paused_id = noone
Code:
/// @desc def_sprites()
global.skins = load_skins()
//global.tilesets[0] = image_load_get("smb3");
Code:
/// @desc load_skins()
var skins = []
//img_group_players = -1;
// Make sure all directorys exist else make them
if (!directory_exists(working_directory+"graphics\\skins")) directory_create(working_directory+"graphics\\skins")
// Find first skin
var skin_name = file_find_first(working_directory+"graphics\\skins\\*.png", 0)
var skin_index = 0
// Load all skins
while(skin_name != "" && skin_name != "<null>")
{
show_debug_message("player_"+string(skin_index))
img_group_players = image_group_create("player_"+string(skin_index));
image_stream_start(img_group_players, 112, 32, 0);
image_stream_add(img_group_players, "skin_"+skin_name, working_directory+"graphics\\skins\\"+skin_name, 14, 0, 0);
image_stream_finish(img_group_players);
skins[skin_index] = image_group_find_image(img_group_players, "skin_"+skin_name);
skin_name = file_find_next()
skin_index ++;
}
return skins