Achor to screen not working

bonechill

  • *
  • Posts: 270
When I add an [anchor to screen] block to my code, the actor disappears.
Play Gold Hunter on Kongregate, Newgrounds, or Stencyl Arcade

Photics

  • *
  • Posts: 718
When I add an [anchor to screen] block to my code, the actor disappears.

When weird stuff like that happens, one of the first things I do is add a "Make Always Active" block. That way, the actor won't be destroyed if it's off-screen. After that, try to figure out where the actor is located. You could try displaying the actor's X & Y's position. If you know where the actor is located, that might help in fixing the actor's position.
Michael Garofalohttp://photics.com – Author of The Interactive Stencyl Textbook 8)

bonechill

  • *
  • Posts: 270
the actor does not appear to be anywhere.
Play Gold Hunter on Kongregate, Newgrounds, or Stencyl Arcade

Photics

  • *
  • Posts: 718
the actor does not appear to be anywhere.

If it's in the scene before the game starts, you could use the "Poor Man's Debug" method...

Set the Actor's X value to a game attribute
Set the Actor's Y value to another game Attribute

Have the scene display those values on the screen.

I do think something could be screwy with Stencyl though. I've been working on a project that was started with Stencyl 2.x. When I ported it to 3.x, I had problems with the location of displayed text.
Michael Garofalohttp://photics.com – Author of The Interactive Stencyl Textbook 8)

bonechill

  • *
  • Posts: 270
The always active put the collision box of there, but it still is invisible.
Play Gold Hunter on Kongregate, Newgrounds, or Stencyl Arcade

Photics

  • *
  • Posts: 718
The always active put the collision box of there, but it still is invisible.

Maybe it's a layer issue?
Michael Garofalohttp://photics.com – Author of The Interactive Stencyl Textbook 8)

bonechill

  • *
  • Posts: 270
Play Gold Hunter on Kongregate, Newgrounds, or Stencyl Arcade

bonechill

  • *
  • Posts: 270
Play Gold Hunter on Kongregate, Newgrounds, or Stencyl Arcade