Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Stationary Character in Scene - treat as actor, item, or sprite?  (Read 2961 times)

0 Members and 1 Guest are viewing this topic.

RHK

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 2
    • View Profile

I have several scenes with fixed characters.  In these scenes, I will need dialogue trees to interact with the stationary characters.  Should i treat these characters as actors, sprites, or what?  I'm treating them as actors now, but when I leave the scene, I have to make them inactive, or they stay onscreen in the next scene.  I can hardcode them to be inactive, but that adds a lot of redundant code.  If I treat them as a sprite, can I dialogue with them?

Just getting into WME, so this is a newb question.  Thanks for your advice and patience! :)
Logged

robot

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
    • View Profile
Re: Stationary Character in Scene - treat as actor, item, or sprite?
« Reply #1 on: June 17, 2010, 09:37:48 PM »

hi there,

to your questions:

Quote
I'm treating them as actors now, but when I leave the scene, I have to make them inactive, or they stay onscreen in the next scene

you have to load them with Scene.LoadActor("..."), then they are only active within the scene and will automatically unload when you leave it

Quote
Should i treat these characters as actors, sprites, or what?

you can dialog with entitys, region entitys or actors, they all have the talk method, but if your character should walk you should use them as actor.
Logged

RHK

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 2
    • View Profile
Re: Stationary Character in Scene - treat as actor, item, or sprite?
« Reply #2 on: June 17, 2010, 10:32:29 PM »

Awesome.  Thank you very much  ;)
Logged
 

Page created in 0.032 seconds with 19 queries.