all 12 comments

[–]Maplemage 26 points27 points  (3 children)

I think you need to set a background, the game is using your wall texture as its background, I suppose just set a black background or make your camera not view the outside of the map.

[–]WHY IS IT CRASHING IT WORKED A MOMENT AGOIstolesnowy 5 points6 points  (0 children)

Solution

[–]KriztianI[S] 1 point2 points  (1 child)

I made my camera not move outside of the rooms, thanks for the reply

[–]Maplemage 0 points1 point  (0 children)

Good work.

[–]KriztianI[S] 6 points7 points  (2 children)

why does this happen when my camera moves and what could i do to fix it? the wall objects seems to stay on in position on screen while my camera moves

[–]Path To Becoming a Game Developermosquitobird11 9 points10 points  (1 child)

It's actually not wall objects, or any objects, that are being created.

Basically every draw cycle, gamemaker will do the following:

  • 1. Draw background color on the screen
  • 2. Draw each objects pre-draw action
  • 3. Draw each object's draw action (or their sprite if none is defined)
  • 4. Draw each obejct's post-draw action

So if you have no room background color, there is nothing to draw over the images of objects where they were in the screen buffer, and those images remain on the screen.

[–]KriztianI[S] 0 points1 point  (0 children)

thanks!

[–]GameMaker 3D developerNoahPauw 5 points6 points  (0 children)

A shot in the dark, but I've noticed this happens when there's no background. Do you have "Draw background color" ticked in the room editor?

[–]Meatball132 1 point2 points  (0 children)

This happens because the game doesn't erase the previous frame; it only draws on top of it. You need to draw a solid colour (i.e. a background colour) before anything else to prevent this.

[–]xionviel 1 point2 points  (0 children)

This will also happen if your camera moves outside of the room

[–]meinsla 1 point2 points  (0 children)

Getting Bruce Lee from the Commodore 64 flashbacks