setlayer problem

msmalik681

OpenBOR Developer
Staff member
I have a problem when using the script setlayer to push a panel into the foreground it will keep pushing itself back in to the background unless i use a update script is this normal ?


Code:
changeentityproperty(self,"setlayer",999); //push entity to foreground.
 
Is that panel from a level or an entity (type panel)? I think that setlayer 999 is so/too short. Try out 4-6 digits I guess. If not, maybe try out with 9 digits of setlayer like this?

setlayer 327034644

Or

changeentityproperty(self, "setlayer", 327034644);
 
999 is fine i even did a test the 999 is applied on frame 0 but when the animation moved to frame 1 without any code the panel was pushed back into the background
 
Put in the frame 1, this is that frame 0 bug. If you have my game, check the entity I use at the select screen - I use the code on the frame 1 and looped.
 
O Ilusionista said:
Put in the frame 1, this is that frame 0 bug. If you have my game, check the entity I use at the select screen - I use the code on the frame 1 and looped.

You were right thanks its working just fine now.
 
Back
Top Bottom