J
justloveme94
Guest
Hello everyone,
I am currently trying to set up a dialogue system with unique character portraits for each NPC. I was struggling with how to approach drawing multiple sprites. So far I have settled on a 1d array. The only issue I am having now is that the sprites are overlapping each other and I can't quite seem to fix it. Any help is appreciated, thanks!
CREATE Event of obj_textbox
DRAW GUI of obj_textbox
CREATE Event of obj_npc_jude
CREATE Event of obj_npc_emily
I am currently trying to set up a dialogue system with unique character portraits for each NPC. I was struggling with how to approach drawing multiple sprites. So far I have settled on a 1d array. The only issue I am having now is that the sprites are overlapping each other and I can't quite seem to fix it. Any help is appreciated, thanks!
CREATE Event of obj_textbox
Code:
character_portraits[0] = spr_portrait_emily;
character_portraits[1] = spr_portrait_jude;
Code:
//Draw Portrait
for(var i = 0; i < array_length_1d(character_portraits); i += 1){
draw_sprite(character_portraits[i], portrait_index, port_x, port_y);
}
Code:
character_portraits = 1;
Code:
character_portraits = 0;