Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Catacomber

Pages: 1 ... 3 4 [5]
61
Technical forum / Skewed inventory objects and hourglass
« on: November 02, 2008, 05:30:30 AM »
Following Chapter 8 of the WME book online -- Our Own First Game --have learned some useful things but I have two small questions:

In the Street Scene, my inventory objects are too high up and a little too far to the left--they're not centered on the boxes.



I get an hourglass during the first scene where Molly has the long dialogue with her Alternate:



I have no script errors and other than this, everything flows as it should.

Any suggestions?

Nihil's artwork is really nice.

On that first introductory scene it would be good to hide the inventory--how and where would you do that? I would guess in the scene but where?

Děkuji za vaši pomoc.




62
Technical forum / Talk help
« on: October 29, 2008, 03:37:19 PM »
I got this message from someone who needs help---it's not the exact words but enough to give you the idea:

"I started with WME 3 days ago and I do now dialogues between actor, and second character (snow)
The problem is: I have this script for entity snow:
#include "scriptsbase.inc"

global Statesomething;

////////////////////////////////////////////////////////////////////////////////
on "Talk"
{
GoToObject();
Game.Interactive = false;

// greetings
actor.Talk("Hi there.");
this.Talk("Welcome to my country.");


and its not functioning. How may look the good script?"

I'm not anywhere near my computer right now---can someone help them?   

63
Technical forum / On look, on book, on right click scripts
« on: October 28, 2008, 03:58:37 AM »
Am following the WME Book demo and have met a new problem.  I can't get these scripts to work.  I don't know how to look at an item.  : )  How do you do that?  Do I have to have a "look at" script or is it in the "const.inc" script or someplace else?

Basically Molly and Sally can both go to and pick up the book and put it in their individual inventories--and they do have individual inventories.  But I don't know how to make them look at the book or give the book to each other.  They refuse.   I don't have any script errors--just don't have the action I expected. 

This is the script on the book.  Neither Molly nor Sally nor the book have a rightclick script--does that make sense?

#include "scripts\base.inc"

on "LeftClick"
{
        actor.GoToObject(this);
      actor.TakeItem("book");   
}


on "LookAt"
{
  actor.Talk("Guess I should read through this...");
}

////////////////////////////////////////////////////////////////////////////////
on "Take"
{
  Game.SelectedItem = "book";
}


This is my Molly script--Sally's is about the same:

#include "scripts\base.inc"

on "LeftClick"
{
   if (Game.MainObject == molly) actor.Talk("I am already selected!");
   else
   {
      actor = molly;
      Game.MainObject = actor;
      Game.InventoryObject = actor;
   }
}

on "book"
{   
   if (actor == molly) actor.Talk("It's always important to read WME documentation! I'll do it now!");
   else
   {
      Game.SelectedItem = null;
      sally.DropItem("book");
      molly.TakeItem("book");   
      molly.Talk("Thank you");
   }
}

This is my game script--

#include "scripts\base.inc"
#include "scripts\keys.inc"

// store some of the game's attributes in global variables for convenience
Keyboard = Game.Keyboard;
Scene = Game.Scene;

// load the "caption" window
var win = Game.LoadWindow("interface\system\caption.window");
global WinCaption = win.GetControl("caption");

// load our main actor
molly = Game.LoadActor("actors\molly\molly.actor");
sally = Game.LoadActor("actors\molly\sally.actor");

actor = molly;
actor = sally;

Game.MainObject = actor;
Game.InventoryObject = actor;

// run the "game loop" script
Game.AttachScript("scripts\game_loop.script");

Game.InventoryVisible = true;

// which scene to load?
Game.ChangeScene(Game.StartupScene);


////////////////////////////////////////////////////////////////////////////////

on "LeftClick"
{
  var ActObj = Game.ActiveObject;
  if(ActObj!=null)
  {
    if(Game.SelectedItem != null && Game.SelectedItem!=ActObj)
    {
      var Item = Game.SelectedItem;
      if(ActObj.CanHandleEvent(Item.Name)) ActObj.ApplyEvent(Item.Name);
    }
    else
        ActObj.ApplyEvent("LeftClick");
  }
  else
  {
    Scene.ApplyEvent("LeftClick");
  }
}

on "RightClick"
{
  if (Game.SelectedItem != null){
    Game.SelectedItem = null;
  }
}
////////////////////////////////////////////////////////////////////////////////
on "Keypress"
{
  // on Esc or F1 key
  if(Keyboard.KeyCode==VK_ESCAPE || Keyboard.KeyCode==VK_F1)
  {
    // load and display the main menu window
    WinCaption.Visible = false;
    var WinMainMenu = Game.LoadWindow("interface\system\mainmenu.window");
    WinMainMenu.Center();
    WinMainMenu.GoSystemExclusive();
    Game.UnloadObject(WinMainMenu);
  }
}


////////////////////////////////////////////////////////////////////////////////
on "QuitGame"
{
  // on Alt+F4 (window close)
  // load and display the quit confirmation window
  WinCaption.Visible = false;
  var WinQuit = Game.LoadWindow("interface\system\quit.window");
  WinQuit.Center();
  WinQuit.GoSystemExclusive();

  // and if the user selected Yes
  if(WinQuit.xResult)
  {
    // quit the game
    Game.QuitGame();
  }
  // otherwise just unload the quit window from memory
  else Game.UnloadObject(WinQuit);
}


64
Technical forum / Molly and Sally
« on: October 25, 2008, 04:48:22 AM »
I have now 2 actors in my game---following the tutorial.  Molly and Sally.  But I can't place more than 1 in the scene at a time it seems.  : (

65
Technical forum / Screen display problems
« on: October 25, 2008, 03:29:19 AM »
Sometimes my screen during play mode becomes oddly pixelated:



My video drivers are updated--has anyone had this problem and dealt with it successfully?  Can it be something I have to tweak somewhere?

This isn't as bad as it gets and this pic doesn't display the problem that well cause those dots actually look like horizontal red broken lines in the text buttons --it just doesn't show up that well here.

66
Technical forum / Can't find my project file
« on: October 25, 2008, 02:41:11 AM »
I'm following the WME book and made a new project and gave it a name "Arnold".  I know it's somewhere in the WME directory in templates/ basic templates but I can't find any project by the name of Arnold.  I had a project Sandbox that I created to work with the first part of the tutorial and I could always find it.  Mystified!   I know it's there because if I try to create a new project called "Arnold" WME tells me that one already exist.  Why didn't it go into the projects directory where "Sandbox" is?   

In my "Arnold" scripts, in the actor file,

I have a file there that's got a line commented out--

; $EDITOR_PROJECT_ROOT_DIR$..\..\..\

Does that cause any part of the problem---should I remove the ; or put something else there?

67
Technical forum / Script errors
« on: October 21, 2008, 03:45:49 AM »
SOB!!!!!!!  CRY!!!!  CATERWAUL!!!!

Following the warehouse demo:

I have these errors in the WME Log--I thought I followed the instructions--where do I declare the variable "door"?--am not so much worried about Molly errors:

CBSprite::LoadFile failed for file 'actors\molly\dr\stand.sprite'
22:39: CBSprite::LoadFile failed for file 'actors\molly\dr\walk.sprite'
22:39: CBSprite::LoadFile failed for file 'actors\molly\dr\talk.sprite'
22:39: CBSprite::LoadFile failed for file 'actors\molly\dr\turn.sprite'
22:39: CBSprite::LoadFile failed for file 'actors\molly\dr\turn.sprite'
22:39: Compiling script 'scenes\Warehouse\scr\Door.script'...
22:39:   Error@line 5: Variable 'Door' is referenced but not defined
22:39: Compiling script 'scenes\Warehouse\scr\Door.script'...
22:39:   Error@line 6: Variable 'Door' is referenced but not defined
22:39: Compiling script 'scenes\Warehouse\scr\Door.script'...
22:39:   Error@line 5: Variable 'Door' is referenced but not defined
22:39: Compiling script 'scenes\Warehouse\scr\Door.script'...
22:39:   Error@line 6: Variable 'Door' is referenced but not defined


68
Technical forum / Add Fonts
« on: October 20, 2008, 02:55:36 AM »
Can someone tell me in simple terms how to add a new font?  The font included in the demo is a little shaky on my screen--I thought maybe a different font might help.  Also, sometimes it seems to pixelate--to break up.  I have the most recent driver for my video card--I don't think that's the problem.

69
Technical forum / Scale lines
« on: October 20, 2008, 02:18:07 AM »
Is there a way to remove a scale line if you have put it in and decide you don't want that scale line there?

70
Technical forum / Walking up walls
« on: October 19, 2008, 03:33:40 AM »
I'm doing the tutorial from Metamorphium's very helpful online book and am doing the warehouse scene with Molly.  I have the floor region set just as in the illustration but notice that Molly can walk up the walls.  Is there a way to fix this?  I want her to be able to interact with a door but not climb the walls.  : )  As you can see I am a newbie.

Pages: 1 ... 3 4 [5]

Page created in 0.057 seconds with 22 queries.