0
\$\begingroup\$

Here is a video showing the problem I'm encountering.

And here's my room change code:

if(room_exists(room_previous(room))) room_goto_previous();
New contributor
Chateauvisionn is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
\$\endgroup\$

1 Answer 1

0
\$\begingroup\$

This behaviour happens because the game is rendering any frame without "cleaning" the previous one first, and your level view doesn't cover the whole screen (there are some transparent/translucent parts).

To solve this problem, you can either set a background or tell the game to clear the display buffer before drawing:

enter image description here

Clearing the buffer will fill it with a tint, after which object rendering takes place.

\$\endgroup\$
3
  • \$\begingroup\$ i aldready activated this \$\endgroup\$ Jun 19 at 18:53
  • \$\begingroup\$ i added a black backround, it works now \$\endgroup\$ Jun 19 at 18:56
  • \$\begingroup\$ Is it enabled in both rooms? \$\endgroup\$
    – liggiorgio
    Jun 19 at 18:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .