Actor Not Appearing on Scene Screen

techmaster90

  • Posts: 26
Hello,
 I my actor doesn't appear on the scene screen when I load the game. I looked around but cant find a solution. I think my problem is specific to me. Here are my logs I attached them. I would appreciate any help. Thank you so much for what you guys do!

Luyren

  • *
  • Posts: 2237
Logs are only useful if your game crashes, you have an error on the toolkit or you get an error message in general.

Your actor not loading could be a lot of things: something is killing it, something is hiding it, it is falling off-screen due to gravity before you can see it, it's moving or something else is moving it off-screen before you can see it.

Try placing a print block, printing the X and Y positions of it in an update event, along with a "make actor active always" block. If it is constantly printing, the actor is there and you can check where it is. If it's not printing, something killed the actor.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

techmaster90

  • Posts: 26
Thank you for the information. I will look into the things you mentioned and see what I can do.

techmaster90

  • Posts: 26
Logs are only useful if your game crashes, you have an error on the toolkit or you get an error message in general.

Your actor not loading could be a lot of things: something is killing it, something is hiding it, it is falling off-screen due to gravity before you can see it, it's moving or something else is moving it off-screen before you can see it.

Try placing a print block, printing the X and Y positions of it in an update event, along with a "make actor active always" block. If it is constantly printing, the actor is there and you can check where it is. If it's not printing, something killed the actor.

I'm sorry but I don't understand what you mean by create a print block... Can you walk me through it please?

Luyren

  • *
  • Posts: 2237

This will print in the log viewer. Click the button next to "Settings" at the top bar to open the log viewer.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

techmaster90

  • Posts: 26

This will print in the log viewer. Click the button next to "Settings" at the top bar to open the log viewer.

I found that block, but the issue is I don't know how to print X and also Y positions at the same time? Should I use an "and" block?

Luyren

  • *
  • Posts: 2237
Either that, or use two print blocks.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

techmaster90

  • Posts: 26
I found out why the actor wasn't showing up on the screen. I had attached the "virtual button behavior" to it by accident. And it was somehow hiding my actor. I discovered this by systematically deactivating different behaviors until I found the one that was causing it.