[SOLVED] Turning off the map during play.

ageoffable
05 Feb 2017, 03:58

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?


crystalwizard
05 Feb 2017, 04:04

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


The Pixie
05 Feb 2017, 09:14

Try:

JS.ShowGrid(game.mapsize)

... and:

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

ageoffable
06 Feb 2017, 03:07

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.")
    }

The Pixie
06 Feb 2017, 09:55

Okay, try these then:

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

ageoffable
07 Feb 2017, 00:51

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