[SOLVED] Turning off the map during play.

I'm using the off-line editor, and making a text adventure rather than a gamebook.

How do I turn off the map during play?


Did you walk through the tutorial? There's a section that talks about turning the map on. However:

On the left side bar, click on game.

look at the tabs at the top of the edit window and click on features.

Uncheck the box for map and drawing grid


Try:

JS.ShowGrid(game.mapsize)

... and:

JS.eval("$('#gridPanel').hide();")

I tried the above code, but it didn't do anything.

Here's the code:

    if (fountain.drank = 0) {
      player.Courage = min (10, player.Courage + 3)
      fountain.drank = 1
      if (Got(wood)) {
        msg ("The water is fresh, clear and cold. You feel much better...until you realize that you have no idea how you came here. You look at the piece of wood you are carrying. The name <i>Amity</i> seems familiar. You recognize it as the name of your ship. Then, all of a sudden, it all comes back to you.")
      }
      else {
       [the command to turn off the map should go here]
        MoveObject (player, fountain)
      }
    }
    else {
      msg ("The water is still refreshing. Its effect on your memory seems to only work once.")
    }

Okay, try these then:

JS.eval ("$('#gridPanel').css('display', 'block')")
JS.eval ("$('#gridPanel').css('display', 'none')")

Sorry everyone--the problem was something else (I should have moved the player to something other than 'fountain').


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums