Hey Wintermute community,
I am really excited with the chance to finally explore WME and try making the 2D game demo. However, since I am still new to the engine and particularly scripting, I get stuck every now and then. Have got three questions and will try to explain them in a brief and clear way.
This time I tried to add second character named Sally into my scene following WME tutorial. Here is what I did:
1. In "actors" folder created "sally" subfolder and copied files from "molly"
2. In "sally" subfolder renamed "molly.actor" to "sally.actor" and "molly.script" to "sally.script"
3. Opened "molly.actor" file and changed the beginning this way:
ACTOR
{
NAME = "sally"
CAPTION="Sally"
SCALABLE = TRUE
INTERACTIVE = TRUE
X = 460
Y = 400
SCRIPT="actors\sally\sally.script"
Also changed the subfolder name in "sally.actor" from "molly" to "sally" everywhere in animations (idle, walk, talk etc.).
4. Opened "data\scripts\base.inc" and added this:
global molly;
global sally;
5. Opened "game.script" and added new lines. Now the script looks this way:
// load our main actor
actor = Game.LoadActor("actors\molly\molly.actor");
Game.MainObject = actor;
// load our main actor
molly = Game.LoadActor("actors\molly\molly.actor");
sally = Game.LoadActor("actors\sally\sally.actor");
actor = molly;
Game.MainObject = actor;
6. Opened "data/scenes/Room/scr/scene_init.script" and added lines about Sally with her position coordinates from SceneEdit:
#include "scripts\base.inc"
// here comes the stuff which initializes the scene
actor.SkipTo(206, 582);
actor.Direction = DI_RIGHT;
actor.Active = true;
sally.SkipTo(288, 575);
sally.Direction = DI_RIGHT;
sally.Active = true;
However, when I run the game, I get this:
As you can see, the main actor (silhouette that is turned to the right) is there and she can move, alright. Sally, which is the silhouette that is facing us, is there too, and she doesn't move. However, there is a third actor that has Molly's graphics, is turned left and floats in the air.
How do I get rid of her? What is wrong?My second question is -
Can the floor (walking area) have only two vertices? Because I'd like actors to only move left and right in a staight line, without any depth, yet currently the main actor changes her track a bit within the walking zone (floor). This change of course is very slight, but still... not in a straight line.
The third question is about actors again. I want them to talk with each other and move together to the right in a cutscene.
How is it possible to create such cutscene animation? Sally, the second actor in the scene, does not move. Shall I make individual floor for her? Am I right?
Please share your experience in this regard!
THANK YOU very much for your kind help!
P.S. The opportunity to make games is breathtaking. THANK YOU, Mnemonic!