Objects draw every step and not erase

Discussion in 'Programming' started by Leif, Sep 12, 2019.

  1. Leif

    Leif Member

    Joined:
    Jun 27, 2016
    Posts:
    28
    Hi,
    Encountered a problem

    Look at the screenshot http://prntscr.com/p58shh

    There are objects, that does not appear correctly.
    Red numbers appears from the left amd right, but seems like do not erase every step
    Circles used to decrease in diameter, but seems like do not erase every step too
     
  2. FrostyCat

    FrostyCat Member

    Joined:
    Jun 26, 2016
    Posts:
    4,470
    You've been around here long enough to know you need to post actual code.

    Make sure that your room has a background or a background colour. And if you're drawing from a surface and the residual trail is not what you want, clear the surface before drawing to it.
     
  3. Leif

    Leif Member

    Joined:
    Jun 27, 2016
    Posts:
    28
    Well, I'm really long anough to understand nesessity of code if i use something like surfaces.

    But this time the code is simple and do not affect
    Here it is (in DrawEnd event )

    Code:
    draw_set_alpha(1);
    draw_set_color(c_red);
    draw_set_font(font_score);
    draw_set_valign(fa_top);
    draw_set_halign(fa_left);
    
    draw_text( x,y, string(level_time));
    So, the reason is not in code

    Also, i did not see such things in 1.4.
    What can be the reason ?

    Will try background
     
  4. Leif

    Leif Member

    Joined:
    Jun 27, 2016
    Posts:
    28
    Room already have the background.
    The reason is in something else
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice