I started scripting my first scene and I ran into very bizarre problems. Idea was to add a hotdog seller to the scene but I couldn't do it, whatever I tried I couldn't get the seller to appear to the screen. The seller is an entity in the project, just like in the oldguy in the wme_demo. In wme_demo project the room.scene's scene_init.script has these two lines:
global OldGuy = Scene.LoadEntity("entities\oldguy\oldguy.entity");
OldGuy.SkipTo(505, 330);
I added these to my scene's scene_init.script (of course changed the name and parameter to point to my entity)
Well nothing happened, the hotdog seller didn't appear. I tried with the wme_demo project and I did managed to get it working (I changed the oldguy to hotdog seller). At this point I was kind a frustrated, so I checked all scripts. Everything was in order, all scripts were fine and I could compile the packages without problems. But still I couldn't get my entity to the screen.
Then I tried a different approach. I added my scene, actor and entity to the wme_demo, changed game.script to load my scene and actor...and now comes the weird part. The game starts in my scene with my actor, but it starts running the wme_demos/room scene's tour script!!!! I found out that it uses room scenes scripts but all other things are from my scene (backgrounds, walking areas...) Why is this happening?
If anybody has some good ideas how to get my entity to show up without the tour thingie, I would like to hear.