Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: z-order problems again  (Read 3502 times)

0 Members and 1 Guest are viewing this topic.

SoundGuy

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 196
    • View Profile
z-order problems again
« on: December 12, 2008, 02:29:41 AM »

hey.

So i have an entity which i use to draw those comic baloons you saw in the ZBang demo.
I tyr set an entity to stick to front in to a region that's suppose to be in front of the actor and the entity is still behind it.
I have a region that's all the way down below the scene (y=2000) and i set baloon.StickToRegion(frontEntity); and i set Actor.StickToRegion(background);

The debugger shows the region prorepty of the baloon entity as null even though I set tmp.StickToRegion(region); the line before. can't figure out why.
Any ideas?

Logged

robot

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
    • View Profile
Re: z-order problems again
« Reply #1 on: December 12, 2008, 06:36:40 PM »

hi! i think z-order only works for free entities
see http://forum.dead-code.org/index.php?topic=2365.0
Logged

SoundGuy

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 196
    • View Profile
Re: z-order problems again
« Reply #2 on: December 12, 2008, 07:33:39 PM »

my baloon entity is a free enitty that i create from within the code
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: z-order problems again
« Reply #3 on: December 13, 2008, 02:47:20 PM »

The debugger shows the region prorepty of the baloon entity as null even though I set tmp.StickToRegion(region); the line before. can't figure out why.
Any ideas?
It's not supposed to show the stick-to region. This property contains the region reference for region entities.
Wouldn't it be better to use GUI for the bubbles?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

SoundGuy

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 196
    • View Profile
Re: z-order problems again
« Reply #4 on: December 13, 2008, 06:10:04 PM »

i used to use a window object for the baloons, but i changed it to a free entity because i wanted to have scaling.
I might consider going back to a window if that's the only solution.

any ideas how do i know which region it sticks to ?
Logged
 

Page created in 0.108 seconds with 23 queries.