View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0027963||Runner||Variables||Public||2017-10-03 12:30||2018-02-07 17:14|
|Reporter||Stewart Bishop||Assigned To||Sam Cumming|
|Priority||Low||Severity||C - General||Reproducibility||100%|
|Target Version||Fixed in Version|
|Summary||0027963: Variables: [GMS2] layer gets set to -1 when changing room for persistent objects|
|Description|| Persistent object's layers are stuck on "-1" upon re-entering their original rooms.|
When persistent objects arrive in a new room they're layers are set to -1, which is troublesome, but to get around it you can manually set the layer in code. Although all code affecting the layer is overwritten to "-1" when they return to the room they spawned in.
I have attached a project that switches between rooms on key press and attempts to overwrite "-1".
Layer's being set and forced to -1 causes all instance_create_layer(layer) lines unusable and having to manually set the layer when each room has an identical layers is already problematic.
|Steps To Reproduce||1) Import project|
2) Run project
3) Press space a few times
4) See that this works
5) Open the objects room start event
6) Comment out the line setting layer
7) Run the project again and see that once space is pressed the layer functions no longer work
|1.4 Found In|
|2.x Runtime Found In||18.104.22.168|
|2.x Runtime Verified In||22.214.171.124|