Right Now, Im trying to learn to make a gauge using explod.Everything is really fine but i got a problem.Im using statedef -2.This is my explod:[mcode][State -2, Explod] ;This One Is The FILLERtype = Explodtriggerall = roundstate = 2triggerall = Fvar(35) >= 50.0 && Fvar(35) < 100.0 || Fvar(35) >= 100.0trigger1 = numexplod(93) = 0anim = 93id = 93postype = Backpos = Ifelse(teamside = 1,9,9),234 ;Position depending on the barownpal = 1bindtime = -1ignorehitpause = 1sprpriority = 9ontop = 9facing = 1pausemovetime = -1supermovetime = -1persistent = 0[State -2, Explod] ;This One Is The Text "POWER" That Appear in the center of the FILLER(explod 93)type = Explodtriggerall = roundstate = 2trigger1 = numexplod(94) = 0anim = 94id = 94postype = Leftpos = Ifelse(teamside = 1,9,9),234 ;Position depending on the barownpal = 1bindtime = -1ignorehitpause = 1sprpriority = 999ontop = 1facing = 1pausemovetime = -1supermovetime = -1scale = 1,1[/mcode]The Problem Is Sometimes the text "POWER" doesnt appear at the center of the FILLER.The FILER covering it. But I have use sprpriority and ontop = 1 to Solve the problem .I have given the "POWER" a sprpriority of 999 and ontop = 1 to be always on top. But Doesnt work.I really need help Please ~Thanks A Lot.
im not sure this is valid is it?ontop = 9"ontop = bvalue (boolean) Set ontop = 1 to have the explod drawn over all other sprites and background layers. This parameter has precedence over sprpriority. Defaults to 0."
There is no reason to use ontop AND sprpriority because if ontop=1 sprpriority will be ignored. If there are two explods having ontop=1 then the one that appears first will be in the background. Your problem here is that the power appears earlier, I think because of the fvar triggers of the filler. You should just omit the ontop parameter and use just sprpriority, with the power explod having a higher value than the filler. (You can even let it be the value 999, the filler then has to have a value that is anything below that)BTW ontop takes a boolean value (TRUE=anything nonzero / FALSE=zero), so it doesnt matter if you use 9, 999 or -1337, it's all the same as long as it isnt 0.
QuoteBTW ontop takes a boolean value (TRUE=anything nonzero / FALSE=zero), so it doesnt matter if you use 9, 999 or -1337, it's all the same as long as it isnt 0.i see thanks for clearing that up
Oh Very thanks a lot for that, i kinda learn a new stuff today Thanks.But if i remove the ontop and use sprpriority instead, how do i make it much more visible than the Stage's foreground Sprites?
Well ok then you have to omit sprpriority and use ontop=1.You just have to make sure that the power explod is generated AFTER the filler.You can for example add a trigger like numexplod(93)>0 to your power explod, so it wont be generated unless the filler is already there.