Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
FLARE [ARCHIVED]

Events types/properties

aegir
Thursday, April 11, 2013 - 07:01

Hi all,

Could you, please, write a short reference doc about event types / properties ( on_load, run_once, msg, on_clear ...).

For example I try to display a msg on the hud each time the character walk on a square ( let's say, display graveyards epitaph when the character stand in front of the grave).

If I put "run_once" the msg is of course displayed only once.

If I put "run_always" the msg is displayed many times while the character stand in the square.

But browsing the source code I didn't find any event type such as "on_enter".

Any clue ?

 

  • Log in or register to post comments
Clint Bellanger
joined 15 years 10 months ago
Thursday, April 11, 2013 - 09:58
Clint Bellanger's picture

Good question. We don't really have such an event type, but we absolutely should add one.

In this particular case, you may consider this workaround: You could make it so the player has to click on the grave to see the message.

We're working on Tutorials now. I think we're all realizing that now is a great time to compile references and tutorials, even for ourselves as we plan to build final game content.

  • Log in or register to post comments
Stefan Beller
joined 13 years 3 months ago
Thursday, April 11, 2013 - 10:01

Hi,

I started to write https://github.com/clintbellanger/flare-engine/wiki/Map-Files which will evolve over the next time. I'll try to address that question there. "Which kind of types are available?"

  • Log in or register to post comments
aegir
joined 12 years 4 months ago
Sunday, December 15, 2013 - 04:17

Hi,

 

Sorry to up this old thread.

 

I didn't have a close look to 0.19 engine, yet.

Just saw in release notes that event manager has been heavily updated.

 

Please, could you update the page

https://github.com/clintbellanger/flare-engine/wiki/Map-Files

with new functionalities ?

 

Many thanks.

 

 

 

 

  • Log in or register to post comments
Stefan Beller
joined 13 years 3 months ago
Sunday, December 15, 2013 - 08:04

Hi,

please see https://github.com/clintbellanger/flare-engine/wiki/Attribute-Reference where the events are also described.

This file was automatically generated using the scripts at https://github.com/clintbellanger/flare-engine/pull/741, so it definitely is in sync with the source code comments. However I noticed some attributes were (re?-)moved, so I wonder if we forgot to comment something in the source.

The changes I did to that article can be found as a diff in this git repo

git@github.com:clintbellanger/flare-engine.wiki.git

 

I will check if the map files article can be merged into this one, or can be deleted.

  • Log in or register to post comments