Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Myst style questions  (Read 2924 times)

0 Members and 1 Guest are viewing this topic.

Rocco

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • View Profile
    • Virtual-Illusion
Myst style questions
« on: May 15, 2005, 08:32:42 PM »

hi all,

i'm a newbie, i tried some things a few month ago with the wme-engine (and cant get this project to work again - > settings problem,
as i wrote in the german forum, but thats another case)
i want to make a new game now, in myst style.
first i will make a tech demo, where i can try out all the technics needed in the game later.
i'm familar with the ags engine which has many benefits i guess.
one and maybe the greatest, is the huge community and the resources of templates and code for allmost every possible situation.
the downside of ags is the resolution limit of 800x600 and the inexactness in this resolution cause the engine works
internal with only the half (400x300) px.
so i guess for a render adventure in 800x600 or higher wintermute should be the best solution.

my first question is about the actor - i dont need one cause the game is in 'shooter' view.
have i anyway to use on, and set it inactive and transparent, or what is the best solution for this?
second question, i want a sierra style handling which means,
mouse right-click switch states and cursors (use, look, roomchange...)
how can this be accomplished?
thanks for hints and (hopefully) codesnippets

greets
rocco

EDIT: so i eliminate all the actor related code in the template and think this problem is solved,
the other prob is hidden in the on "RightClick" event, where i must script the behavior for the mouse state, i guess.

______________________________
exuse my bad english
 




« Last Edit: May 15, 2005, 09:42:04 PM by Rocco »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Myst style questions
« Reply #1 on: May 15, 2005, 09:55:51 PM »

It should be relatively easy to script. From the top of my head, game.script would contain something like this (untested, but you'll get the idea):

Code: [Select]
global CurrentVerb;
if(CurrentVerb==null) CurrentVerb = 0;

var NumVerbs = 3;


////////////////////////////////////////////////////////////////////////////////
on "LeftClick"
{
  var ActObject = Game.ActiveObject;
  if(ActObject==null) return;
 
  switch(CurrentVerb)
  {
    case 0:
      ActObject.ApplyEvent("LookAt");
      break;

    case 1:
      ActObject.ApplyEvent("Take");
      break;

    case 2:
      ActObject.ApplyEvent("TalkTo");
      break;
  }
}


////////////////////////////////////////////////////////////////////////////////
on "RightClick"
{
  CurrentVerb = CurrentVerb + 1;
  if(CurrentVerb >= NumVerbs) CurrentVerb = 0;
 
  switch(CurrentVerb)
  {
    case 0:
      Game.SetCursor("sprites\eye.sprite");
      Game.SetActiveCursor("sprites\eye.sprite");
      break;

    case 1:
      Game.SetCursor("sprites\hand.sprite");
      Game.SetActiveCursor("sprites\hand.sprite");
      break;

    case 2:
      Game.SetCursor("sprites\mouth.sprite");
      Game.SetActiveCursor("sprites\mouth.sprite");
      break;

  }
}
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Rocco

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • View Profile
    • Virtual-Illusion
Re: Myst style questions
« Reply #2 on: May 15, 2005, 10:26:13 PM »

big thx,  :)
i'm still a little insecure how the scripts work together.
Logged
 

Page created in 0.063 seconds with 20 queries.