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.

Pages: [1] 2  All

Author Topic: Hi! I'm new... and lost.  (Read 13092 times)

0 Members and 1 Guest are viewing this topic.

Hellboy

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • View Profile
Hi! I'm new... and lost.
« on: August 20, 2012, 11:37:23 PM »

Hi! ::wave

I’m just giving my firsts steps here. I’ve spend the whhole weekend playing with WME and also finished the whole tutorial exercise and tried some stuff, I’m very excited at the possibilities and how easy this seems so far, but of course the tutorial covers the basics, more scripting is needed and I don’t have much experience with that.  :-[

Is there a script list somewhere that can help me achieve more things? I’m lost even at simple stuff like hiding or showing a graphic, for example, showing a character avatar with his/her dialogue at the bottom of the screen when interacting with objects. Something like the visual novels games. I’d love to do something like that, but not sure where to start.

I’ll appreciate any help I can get.
Thanks!
Logged

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Hi! I'm new... and lost.
« Reply #1 on: August 21, 2012, 12:52:44 AM »

Hi and welcome.

By "tutorial" I guess you mean the one in the documentation. There are no visual tutorials (videos or similar) but there is the excellent WME book online by metamorphium. It's a long read but it will help you learn a lot of things and it will also teach you scripting logic.
Logged
fl*p

Hellboy

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • View Profile
Re: Hi! I'm new... and lost.
« Reply #2 on: August 21, 2012, 02:15:21 AM »

Thanks, yeah, I mean the step by step excercise to create the Molly demo. I love what I can do with that so far, and I've been taking a look at the WME book online too, its very helpful but I was hoping for some kind of compendium list of the available scripts.
I guess I'll take a deeper look, so far I can't even make graphics to show/hide.  :o
Logged

mylesblasonato

  • Developer
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 265
  • "Give up is to fail as sacrifice is to succeed"
    • View Profile
    • Royal Wins
Re: Hi! I'm new... and lost.
« Reply #3 on: August 21, 2012, 03:25:13 AM »

Welcome Hellboy :)
If you think about showing and hiding it's changing the Alpha value of something.
If you take a look at the Help file, you will see scripting references and it will show you how to access the Alpha property of an entity.
Once you do this then you can change the value to 0 for hide and 255 for show.

Hope this helps.
Cheers  ::beer
Myles Blasonato.
Logged
Lead Game Designer, Royal Wins.
@mylesblasonato
@royalwins
http://au.linkedin.com/pub/myles-blasonato/26/600/a38

Hellboy

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • View Profile
Re: Hi! I'm new... and lost.
« Reply #4 on: August 21, 2012, 03:39:34 AM »

Thanks, I will search it. I thought it would be more like calling a graphic from the scene folder with a script and then make it away with another script. I wasn't considering having invisible graphics already loaded. No wonder I wasn't finding anything. Will check it now!  :D
Logged

Hellboy

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • View Profile
Re: Hi! I'm new... and lost.
« Reply #5 on: August 21, 2012, 04:45:45 AM »

No having much luck finding how to set the alpha, but I am experimenting with this:

Code: [Select]
on "LeftClick"
{
   this.Active = false;
}

And it works to hide the object itself (this) but not other things in the scene. For example, applying "false" to the chair when left clicking the desk.

Tried:
Chair.Active = false;
Chair.png.Active = false;
Chair.sprite.Active = false;
Chair.entity.Active = false;

But I can only make it work with the selected object.
I wonder if I should include the working scripts in the object I want to show/hide and trigger them somehow from the other one.  :-\
Logged

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: Hi! I'm new... and lost.
« Reply #6 on: August 21, 2012, 07:52:01 AM »

Hey there!

Take a Look at the "Scene.GetNode" . So if you want to hide an entity which you called "chair" in the Scene Editor, it's as simple as this:

var node = Scene.GetNode("chair");
node.Active = false;

Hope this helps :) And note that WME is Case Sensitive, so GetNode is not getnode ...;)


Cheers,

Spellbreaker
Logged

Hellboy

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • View Profile
Re: Hi! I'm new... and lost.
« Reply #7 on: August 21, 2012, 08:25:33 AM »

Finally!

It worked! I've been with this all day since yesterday with no luck. This will help a lot. I'm excited again. Thanks a lot for the help! ::rock
Logged

dongo

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 29
    • View Profile
Re: Hi! I'm new... and lost.
« Reply #8 on: August 21, 2012, 12:13:40 PM »

hi!! i am new too and spannish, but the spannish forum is dead  :-[ well if you need to see a list of object and his functions you press on helpp in wintermute and in the left where say script language reference, you can see a list of all the objects, methods and attributes.  ;)


im sure soon i will need help, but i even stay with graphics  :P

sorry for my poor english  :-\
Logged

Hellboy

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • View Profile
Re: Hi! I'm new... and lost.
« Reply #9 on: August 21, 2012, 07:31:02 PM »

Yeah, my English is poor too, I'm from Costa Rica.
I was playing with script references a lot, but was not doing it in the right direction it seems. I'll try to check some codes on other games to see how things work.
Thanks!  ::thumbup
Logged

anarchist

  • Regular poster
  • ***
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 212
    • View Profile
Re: Hi! I'm new... and lost.
« Reply #10 on: August 21, 2012, 11:27:20 PM »

Bear in mind that

Code: WME Script
  1. Chair.sprite.Active = false;

is not supported in WME. It supports up to one level, like this:

Code: WME Script
  1. var sprite = Chair.sprite;
  2. sprite.Active = false;
  3.  
Logged

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: Hi! I'm new... and lost.
« Reply #11 on: August 22, 2012, 12:38:45 PM »

Bear in mind that

Code: WME Script
  1. Chair.sprite.Active = false;

is not supported in WME. It supports up to one level, like this:

Code: WME Script
  1. var sprite = Chair.sprite;
  2. sprite.Active = false;
  3.  

That won't work either, because entitys do not have a member called "sprite" .
What you could do is:

var sprite = Chair.GetSprite(); // To get the FILENAME
var sprite = Chair.GetSpriteObject(); // To get the OBJECT

But there's usually no need for that, it's enough to set either Chair.Active = false; to make it invisible and therefore unusable. OR: Set .Interactive to false, so the entity will still be visible, but no longer interactive ( e.g. a switch you can only press once or something like that).


Greets,

Spellbreaker

Logged

HelLRaiseR

  • I don't want to make a Monkey Island clone :(
  • Wiki editor
  • Frequent poster
  • ****
  • Karma: 4
  • Offline Offline
  • Posts: 270
    • View Profile
    • Adventure Box Studios
Re: Hi! I'm new... and lost.
« Reply #12 on: August 22, 2012, 10:21:18 PM »

... but the spannish forum is dead  :-[

??????????

Lo dirás tu.
« Last Edit: August 22, 2012, 10:25:47 PM by HelLRaiseR »
Logged
Regards,

    Fernando

Hellboy

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • View Profile
Re: Hi! I'm new... and lost.
« Reply #13 on: August 23, 2012, 04:06:51 AM »

Well, I'm making progress. I've been writing some codes successfully and I'm happy with what I can do so far. Managed to send the subtitles to a dialogue box at the bottom of the screen next to the character's face. ::rock This is very adictive.
My next step is to include 3D characters. I have some basic knowledge in 3D, rigging and stuff so I hope I can do it at least that.  :D

Glad to know about the interactive code too, I'll experiment with it, it will be very helpful.

Thanks!
Logged

HelLRaiseR

  • I don't want to make a Monkey Island clone :(
  • Wiki editor
  • Frequent poster
  • ****
  • Karma: 4
  • Offline Offline
  • Posts: 270
    • View Profile
    • Adventure Box Studios
Re: Hi! I'm new... and lost.
« Reply #14 on: August 23, 2012, 12:12:21 PM »

The best option for include 3D characters in WME is using 3DMax characters with bipeds and using panda exporter to made the .X file.

Read this topics:

http://forum.dead-code.org/index.php?topic=4366.0

http://forum.dead-code.org/index.php?topic=5194.0

http://res.dead-code.org/doku.php/kbase:exporting_models_from_3ds_max

And this is a demo project by DREANMWEB, it's a very good example of 2.5D game.

http://forum.dead-code.org/index.php?topic=2527.0
Logged
Regards,

    Fernando
Pages: [1] 2  All
 

Page created in 0.063 seconds with 23 queries.