Map problems

Started by , Sat 22/05/2004 11:50:55

Previous topic - Next topic

Estaog

Ok thanks a lot.
But im making an area in my game that there are 2 rooms in one room.
Sirt of like this:

   /             /              /
  /             /              /
/             /              /
/             /              /

And im making it that if you look at an object from inside the second room it says "I cant see from here.". But he still walks to the hotspot and i dont know how to make it enable and disable walk to points.
Think about the kittens man!

http://members.aol.com/johnk0/godkills.jpg

strazer

Quotei dont know how to make it enable and disable walk to points

Use
  game.auto_use_walkto_points = 0;
or
  game.auto_use_walkto_points = 1;

Estaog

What you mean i do sort of like this:
if (bla==0) {
  game.auto_use_walkto_points = 0;
  displayspeech ("I cant see from here.");
  }
if (bla==1) {
  game.auto_use_walkto_points = 1;
  displayspeech ("Its a box.");
  }
Think about the kittens man!

http://members.aol.com/johnk0/godkills.jpg

strazer

#43
It probably doesn't work because I assume he walks there before executing the event. Don't know though.
Test it and let me know. :)

You could disable auto-walking in general for your game, you would then have to move your character manually:

Game_start
  game.auto_use_walkto_points = 0;

Look at hotspot
  if (curroom == 2) DisplaySpeech ("I can't see from here.");
  else {
    MoveCharacterBlocking(GetPlayerCharacter(), GetHotspotPointX(GetHotspotAt(mouse.x, mouse.y)), GetHotspotPointX(GetHotspotAt(mouse.x, mouse.y)), 0);
    DisplaySpeech (GetPlayerCharacter(), "Its a box.");
  }

Estaog

Or i could just use MovecharactertohotspotÃ,  ;D .
Think about the kittens man!

http://members.aol.com/johnk0/godkills.jpg

strazer


SMF spam blocked by CleanTalk