GMS 2 changing room background code

F

Farouk

Guest
Hi
i am using game maker 2
i need to change the room background when a certain event happens

what i understood from the docs is that this line should do it , but it doesn't seem to work

background_index[0]= spr_store_background;

Any idea what's wrong or missing?
thanks in advance
 
Top