image

image

Thursday, November 6, 2014

Indie Day 30 - Now We're Talking With Signs


it is my greatest accomplishment.

the code is set up to read text linked to a variable, so i can set any number of lines to any number of specified variables.

this code draws the text box.

draw_self();
if (draw==true){
    draw_set_color (c_white);
    draw_rectangle(view_xview[0],view_yview[0]+556,view_xview[0]+1364,view_yview[0]+684, false);
    draw_set_color(c_black);
    draw_set_halign(fa_left);
    draw_set_valign(fa_right);
    draw_text(view_xview[0]+40, view_yview[0]+620, text1);
}


this code draws the talksprites.

draw_self();
if (draw==true){
    draw_sprite(spt_sign_talksprite, 1, view_xview[0]+1300, view_yview[0]+556)
    draw_sprite(spt_protag_talking_normal, 1, view_xview[0]+64, view_yview[0]+556)
    }

No comments:

Post a Comment