Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: actors  (Read 5236 times)

0 Members and 1 Guest are viewing this topic.

Adventure-Macher

  • Lurker
  • *
  • Karma: -1
  • Offline Offline
  • Posts: 8
    • View Profile
actors
« on: January 07, 2011, 06:05:19 PM »

Hi,

I start developing with this engine. First I learn about the engine in the tutorial.
Now I try something. I made a few rooms and script, that the player get into another room, when moving to areas, which are "linked" with scripts.
That works fine. But in all new rooms, without the main/first one, I didn't see the character?!
When I am placing it in the other rooms, there is no changing and there is still no character. What is the mistake?

Best
Logged

Andrej (Blue Arc)

  • Occasional poster
  • **
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 73
    • View Profile
Re: actors
« Reply #1 on: January 07, 2011, 07:01:48 PM »

Please see your scene_init.script and be sure there is a lineactor.Active = true; If there is, the next problem can be that you actor is skipped out of scene.
Logged

Adventure-Macher

  • Lurker
  • *
  • Karma: -1
  • Offline Offline
  • Posts: 8
    • View Profile
Re: actors
« Reply #2 on: January 07, 2011, 07:16:44 PM »

in all scenes-directorys in the subdir, there is the line "actor.Active = true", in the scene_init.script.
What did you mean, that the actor is skipped out of the scene?

Another question to actors: Will it be possible, that I can control the actor additional with the cursor-keys?
Logged

Jose

  • Regular poster
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 134
    • View Profile
Re: actors
« Reply #3 on: January 08, 2011, 11:56:47 AM »

Normally in the scene_init.script you have a line like

Code: [Select]
actor.SkipTo(X, Y);

If coordinates X and Y fall out of the scene then you can't see the actor.
Logged

Adventure-Macher

  • Lurker
  • *
  • Karma: -1
  • Offline Offline
  • Posts: 8
    • View Profile
Re: actors
« Reply #4 on: January 10, 2011, 05:20:53 PM »

Ahhh, it works.
Ok. Thanks.

Another question, regarding thes fixed issue:
Normaly, the character stands each time I enter the screen on the defined position. Ok.
But what can I do, If I can enter the image from different directions? For example:

Room 1   -   Room 2
    |                |
Room 3   -   Room 4

I can enter for example Room 2, by going from Room 1 or Room 4 into it. So the Character should also stay on another position...
Logged

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: actors
« Reply #5 on: January 10, 2011, 05:37:18 PM »

Game.PrevScene(); will return the name of the previous scene so it's just a matter of if-then.

I suggest you to follow the tutorial of the docs and also the detailed online tutorial available at wme wiki. Trying to learn wme with a trial & error approach will be time consuming.
Logged
fl*p
 

Page created in 0.018 seconds with 20 queries.