Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Supported Events list.  (Read 4609 times)

0 Members and 1 Guest are viewing this topic.

diegoquarantine

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 50
    • View Profile
    • Buenos Aires Quarantine Studio
Supported Events list.
« on: December 30, 2012, 08:45:03 PM »


I couldn´t find on the documentation nor in forum topics a list of the supported Events that we can use.

Is there a list of the supported events that we can use?. I mean without making custom ones (something that I don´t know how to do yet).  ´

All the { On "..........." };

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1455
  • Lamp dog!
    • View Profile
Re: Supported Events list.
« Reply #1 on: December 30, 2012, 09:54:47 PM »

Of course they are in the documentation. In every object page there is a list of methods, attributes and events.
Logged
fl*p

2.0

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 217
    • View Profile
Re: Supported Events list.
« Reply #2 on: December 31, 2012, 02:54:29 PM »


I couldn´t find on the documentation nor in forum topics a list of the supported Events that we can use.

Is there a list of the supported events that we can use?. I mean without making custom ones (something that I don´t know how to do yet).  ´

All the { On "..........." };

A couple words about events. You can use your own events instead of using methods or functions in that cases when you have not need to wait result of calculations.
Event, as I understand, runs in its own thread simultaneously with other scripts execution.

So if you have a Scene method, for example,

Code: WME Script
  1. method AllActorsBlaBla()
  2. {
  3.     for (var i = 0; i<CharsNum; i=i+1)
  4.     {
  5.        var Actor = Actors[i];
  6.        Actor.BlaBla();
  7.     }
  8. }

that runs with

Code: WME Script
  1. Scene.AllActorsBlaBla();


you can use event instead of it:

Code: WME Script
  1. on "AllActorsBlaBla"
  2. {
  3.     for (var i = 0; i<CharsNum; i=i+1)
  4.     {
  5.        var Actor = Actors[i];
  6.        Actor.BlaBla();
  7.     }
  8. }

And run this event you can by this way:

Code: WME Script
  1. Scene.ApplyEvent("AllActorsBlaBla");

Logged

diegoquarantine

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 50
    • View Profile
    • Buenos Aires Quarantine Studio
Re: Supported Events list.
« Reply #3 on: January 06, 2013, 10:11:27 PM »


Thanks for the responses. But I´m still a little lost. I´v been able to make a lot of things with my game but complex stuff keeps being unreachable for the moment.
I´m not a programmer per se, I´m more of an artist and in the past I´ve been using Game maker and Construct to make my games. In those engines you have pre-programmed events and conditions.
Like for instance; "On every tick" , "on x milliseconds" "on each", and of course all mouse and keyboard conditions. I don´t know how to replicate this kind of condition on WME.
And I still don´t understand what are "Methods" for. I read all about them but I don´t get it yet.
I guess I will keep bouncing my head over the wall a few more times to see if knowledge gets through! haha. Thanks for the help!

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1455
  • Lamp dog!
    • View Profile
Re: Supported Events list.
« Reply #4 on: January 06, 2013, 10:32:58 PM »

Starting from scratch to make something in WME in not the best way to accomplish anything I'm afraid. Especially if you lack basic understanding of the engine (like what a method is).  I suggest to first follow in detail every step in WME Online Book and then try to make something.
Logged
fl*p

ciberspace

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 116
    • View Profile
    • Tele Juego
Re: Supported Events list.
« Reply #5 on: January 07, 2013, 03:13:22 PM »

Low level events
LeftClick The left mouse button has been pressed.
RightClick The right mouse button has been pressed.
MiddleClick The middle mouse button has been pressed.
LeftDoubleClick The left mouse button has been double-clicked.
RightDoubleClick The right mouse button has been double-clicked.
LeftRelease The left mouse button has been released.
RightRelease The right mouse button has been released.
MiddleRelease The middle mouse button has been released.
MouseWheelUp The mouse wheel has been rolled up.
MouseWheelDown The mouse wheel has been rolled down.
Keypress Some key has been pressed. Use the Keyboard variable to find out the details.
BeforeSave The game is about to save its state.
AfterLoad The game just loaded its state.

Of course they are in the documentation. In every object page there is a list of methods, attributes and events.

Help -> WME Documentation -> search -> write (Low level events)
« Last Edit: January 07, 2013, 08:49:15 PM by ciberspace »
Logged

anarchist

  • Regular poster
  • ***
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 212
    • View Profile
Re: Supported Events list.
« Reply #6 on: January 12, 2013, 12:40:03 AM »

I am not familiar with the engines you used before but I think Wintermute is quite straightforward, provided you have some programming experience. Some other engines are much easier to use for the inexperienced programmers, but are more restrictive.

The words "method" and "function" are quite common in programming languages, though they sometimes have a bit different meanings between languages. As odnorf said, the first step you must take is to work on  the tutorials in the WME documentation and the online book. When you manage to finish them you will have a working example to refer to. The tutorials cover all the basic knowledge you need to start implementing a basic game.
Logged
 

Page created in 0.036 seconds with 19 queries.