@Mon91 (Mony) posted a new topic, subject "Problem with the background". It read:

   I have a problem with the background when I hit the 3 hit breakable block sometimes the background change strangely when it's about to destroy.  
    
    
    11920×1080 393 KB
    
      
    
    
    21920×1080 334 KB

@Yee (Miguel Angel Yee Rebollar) replied

    That happens because you set the 3rd sprite to be the same as the background, which means the blocks (or that particular block), will change their sprite to that of the background creating that weird illusion.
    
    In the list you circled change the third sprite, Blue Rocket Background, to the appropriate sprite (I'll assume it is called Block Broken 3).

Then @Mon91 (Mony) said

    there is no block broken 3.

After which, @Yee (Miguel Angel Yee Rebollar) added

    That was just an example, you just have to not use the same sprite as the background for that third sprite in the list.

To which @Mon91 (Mony) replied

    I understood your point I looked at 2 hits breakable block and I didn't use the background on the last one. and have not have any issues , thank you

@Nina (Nina) replied

    Is the issue fixed? 
    
    * * *
    
    See also:
    
      * Forum User Guides : How to mark a topic as solved

After which, @Mon91 (Mony) added

    nop i didn't find something to put in sprite 3

So @Nina (Nina) replied

    Is the z-position of the background set to 10, the z-position of the camera to -10 and the z-position of the other game objects to 0?

@Mon91 (Mony) replied

    yes, still didn't solve it

To which @Nina (Nina) replied

    Where does the black translucent box in the last screenshot come from? Disable _all_ game objects and enable them step by step verifying that they and their components are needed.

To which @Mon91 (Mony) replied

    nothing changes, I tried to change the hit sprite and it fixed but the first hit doesn't do anything cause I choose full block second sprite block is broken 1 third sprite block broken 2 when I hit the block in the game once nothing change… but at the third hit, it breaks and disappears without the wallpaper getting crazy. so the problem with the sprites is I need to find something to put it in the third one cause I don't have the same problem with 2 hit block…

To which @Nina (Nina) replied

    Then assign something to the third slot. Or is there a reason why you cannot do that?

So @system (system) replied

    This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.


{'source': 'discourse', 'url': 'https://community.gamedev.tv/t/problem-with-the-background/174735', 'title': 'Problem with the background', 'views': 411, 'has_accepted_answer': False, 'word_count': 389, 'like_count': 1, 'reply_count': 9, 'participant_count': 3, 'posts': 13, 'tags': '2d 37_br_cud', 'author': '@Mon91 (Mony)', 'participants': '@Mon91 (Mony), @Yee (Miguel Angel Yee Rebollar), @Nina (Nina), @system (system)', 'image_url': ['https://community.gamedev.tv/uploads/db2322/optimized/3X/0/c/0c20b2951e7e037a1e08ae6719d02a43cb0f007b_2_1024x576.jpeg'], 'created_at': '2021-07-21T18:43:02.952Z', 'last_posted_at': '2021-08-16T13:17:29.940Z'}