The Daily Click ::. Forums ::. Klik Coding Help ::. String Layers during runtime
 

Post Reply  Post Oekaki 
 

Posted By Message

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
30th July, 2006 at 09:38:03 -

Blah, okay hopefully this'll be the last new topic I need to make in awhile, but I just remembered something that happens in my game that I don't know how to go around.

What happens is I have an active object as a subscreen with string objects layered on top of it to display the hero's vital information. Now the way I'm doing enemy encounters in this game is whenever the hero gets too close to an invisible encounter square, the game randomly creates an enemy to appear. But when I went to look at my subscreen while any enemies were on the screen, the enemies show up on top of the subscreen instead of layered behind it. In order to fix this, whenever an enemy was created I put in "Animation --> Bring to back" and this worked.. for awhile!

Now what happens is if you play for any decent length of time and have about 30-40 monsters appear in total, the strings that display the vital information for the subscreen don't show anymore because they've been pushed in back of the inventory subscreen's active object. I know that you can set an active object to "Bring to Front", but I can't find any way to do the same with the information displayed in the string objects. To compromise for now, I've taken out the "Bring to Back" option for the enemies, but it looks like ass when they appear over the subscreen.

Did this ever happen to anyone else, and might they have a way around it?

Thanks

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Werbad



Registered
  18/09/2002
Points
  235
30th July, 2006 at 15:34:06 -

Could be that the object limit is reached, but i don't think so
Is the Display as background flag checked on the strings? It shouldn't
If you use MMF you could make the Subscreen into a sub-app


 
n/a

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
30th July, 2006 at 20:12:10 -

Yeah, the strings all have the "display as background" option unchecked.
I've never used a subapp before, but that sounds like it may be my best bet. Thank you.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!
   

Post Reply



 



Advertisement

Worth A Click