Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

(live:100ms) making hard to click (click:)

Hello!

I've made a status bar in my game, which is using four (live:100ms) macros to display actual information about main characteristics (HP, mana, etc.)

Is it wrong method? Because it make hard to click on (click:) macro (click link flickers and you should click very quickly).

What could I done with it?

Comments

  • Would it be possible for you to attach an HTML file of your game?
  • A copy of your code to examine/debug would be nice, but based on your description you have 40 interruptions to the Reader's input ever second which could easily explain what is occurring. If these interruptions are also updating what is displayed to the Reader then the problem only gets worse.
  • edited July 2015
    HTML file is here https://www.dropbox.com/s/qo0s2ov716lhvq8/Link&Live bug.html?dl=0
    and here is code:

    "StatusBar" passage:

    <abbr title="Health">(set: $HP to (text-style: "fade-in-out") + (colour:"red"))$HP[❤](live:100ms)[$currentHealth/$maxHealth]</abbr> <abbr title="Wealth">(colour:"yellow")[¥](live:100ms)[$money]</abbr> <abbr title="Exp">(colour:"cyan")[★](live:100ms)[$exp]</abbr> <abbr title="Magic">☯(live:100ms)[$mana]</abbr>

    Some game passage:

    |doors>[You see a massive large doors.]
    (click: ?doors)[(append: ?doors)[ It seem to be locked.]]
    (display: "StatusBar")

    greyelf wrote: »
    you have 40 interruptions to the Reader's input ever second which could easily explain what is occurring. If these interruptions are also updating what is displayed to the Reader then the problem only gets worse.

    So is it possible to display up-to-date status-bar, which could be changed from any other places?


    P.S. (live:) normalliy works with (link:), so I didn't notice it earlier
  • If the stats only change when the Reader clicks on links within the story then you don't need a constantly updating stats area.
  • How can I update displayed in passage stats without using (live:) macro?
  • You could use Harlowe 1.1.1's new header / footer passage tag feature.

    eg.
    Create a new passage, assign it a header tag and place the code that displays your stats area into this new passage. (remove the (live:) macros)
    This header tagged passage will appear before each of the passages within your story, you could even use CSS change where the header tagged passage is located.
Sign In or Register to comment.