Rectangle won't appear?

ozz

  • *
  • Posts: 512
I wanted to have my HUD use a rectangle appear on top  of actors, which is it self over tiles, but this code in the scene doesn't seem to work in this case.  Is there another way to do it?

rob1221

  • *
  • Posts: 9466
When you say "in the scene", do you mean a scene behavior?  If so I don't see why those blocks wouldn't work.

ozz

  • *
  • Posts: 512
Yes it is in the scene and it does work, I made another scene extensibility to test this ans it worked, in that test scene, but not in the aforementioned one.

Edit: oh, it's anchored to the screen, follow up question, how do I unanchor it?

Photon

  • Posts: 2697
You can't. Drawing commands are always relative to the screen. You'll have to do the math to account for it.
Do NOT PM me your questions, because I likely will not respond. If I have replied to your question on the forum, keep using that topic. Thanks!