N
ndaoud360
Guest
Ok I have a game where I type in digits and it's supposed to add them together but it doesn't. I have, type 1 digit, go to next page, type 2nd digit, go to next page etc. till around 3 pages, then the 4th page will add all them together. It just takes my numbers and puts them next to each other and doesn't add them.
I have assigned digits to
and I have a final score variable which will be the added up answer as
Then I used this to add them together
Then I use this to draw the added number to the screen
but it doesn't add them, it just draws all the numbers I typed right next to each other.
I have assigned digits to
Code:
global.score_P1_R1, global.score_P1_R2 and global.score_P1_R3;
Code:
global.final_score_P1_9H
Code:
global.final_score_P1_9H = global.score_P1_R1 + global.score_P1_R2 + global.score_P1_R3;
Code:
draw_set_color(c_black)
draw_set_font(font_player_text)
draw_text(214,312,global.final_score_P1_9H)