• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Problem with view code :( (with pictures)

F

fxokz

Guest
When my player dies i want the screen to be red and text in the center saying "you died" which works well until the view changes..



PROBLEM:


It only draws everything to where the player spawns?

code:
Code:
 draw_rectangle(view_xview,view_yview,view_wview,view_hview,false);
    draw_set_colour(c_black);
    draw_text(view_wview/2,view_hview/2,"You Died.")
what is wrong?
 

jo-thijs

Member
Code:
    draw_rectangle(view_xview, view_yview, view_xview + view_wview, view_yview + view_hview, false);
    draw_set_colour(c_black);
    draw_text(view_xview + view_wview / 2, view_yview + view_hview / 2, "You Died.");
 
F

fxokz

Guest
Code:
    draw_rectangle(view_xview, view_yview, view_xview + view_wview, view_yview + view_hview, false);
    draw_set_colour(c_black);
    draw_text(view_xview + view_wview / 2, view_yview + view_hview / 2, "You Died.");
it worked thank you!
 
Top