1. Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice
  2. NOTICE: We will be applying a Xenforo update on Tuesday 25th of February. This means that from approximately 10:00 to 14:00 BST the forums will be offline (or possibly longer). Sorry for the inconvenience! Official Announcement here.

GMS 2 can you make a background layer persistant?

Discussion in 'Programming' started by Eliran Vegh, Feb 15, 2020.

  1. Eliran Vegh

    Eliran Vegh Member

    Joined:
    Feb 15, 2017
    Posts:
    11
    Hi I am tying to making some effect but i want to carry the background from room to room.
    I made a room persistent with this background layer but it doesn't stay.

    Is there a way to force it?

    meanwhile I am using an object to draw tiled sprite
    just wandering

    thanks
     
  2. obscene

    obscene Member

    Joined:
    Jun 21, 2016
    Posts:
    2,512
    Can't. But you can a) Create a layer by code in the Room Start event of a persistent object, or B) create a layer in a parent room and make your rooms children of it. The layer will be automatically created in each child room.
     

Share This Page