Author Topic: Walkable areas are unwalkable  (Read 324 times)  Share 

CodeJunkie

  • Formerly known as CodeJunkie
    • I can help with backgrounds
    •  
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with scripting
    •  
Walkable areas are unwalkable
« on: 14 Jul 2005, 17:14 »
I have a main walkable area in my room (A), and two walkable areas disabled after fadein (B and C).  I can walk around fine on A, but when I try to enable C I can't walk on it.  Even if I don't disable C, I still can't walk onto it.  I've checked the repeatedly_execute and global scripts, and they don't disable this walkable area.  Neither do object scripts.
It's so irritating, and I can't find any way to work around it.  A prompt reply would be nice, I'm looking to get this game done within the next 24 hours or so :)

I'm using AGS 2.62.509 if it helps.
« Last Edit: 14 Jul 2005, 17:33 by SimB »

Ishmael

  • I put AGS on my CV.
    • I can help with translating
    •  
Re: Walkable areas are unwalkable
« Reply #1 on: 14 Jul 2005, 17:15 »
Hmm... Seems very simple, but are you sure the walkable areas are connected?
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
|

monkey_05_06

  • AGS Project Admins
  • #1 Straight Basher
Re: Walkable areas are unwalkable
« Reply #2 on: 14 Jul 2005, 17:16 »
This may be a stupid question, but are the walkable areas connected?  Because if they aren't I don't believe you can walk between them.

Edit:  My internet was screwing up...so sorry that I posted pretty much the same thing as Ish.
« Last Edit: 14 Jul 2005, 17:25 by monkey_05_06 »
By and large I didn't accomplish what I set out to do, but I did accomplish a fair bit. So, there is that.

CodeJunkie

  • Formerly known as CodeJunkie
    • I can help with backgrounds
    •  
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with scripting
    •  
Re: Walkable areas are unwalkable
« Reply #3 on: 14 Jul 2005, 17:17 »
Yes, I'm pretty sure.  I've even tried placing a square of this walkable area inside the working one and it breaks it.  Any area other than 1 seems unwalkable.
Also, I seem to be able to walk through an unwalkable area if I click a walkable area on the other side of it.  Should this happen anyway?

Ishmael

  • I put AGS on my CV.
    • I can help with translating
    •  
Re: Walkable areas are unwalkable
« Reply #4 on: 14 Jul 2005, 17:21 »
Sounds... Fishy. You shouldn't be able to walk over any unwalkable area, unless you're using a MoveCharacterDirect command...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
|

CodeJunkie

  • Formerly known as CodeJunkie
    • I can help with backgrounds
    •  
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with scripting
    •  
Re: Walkable areas are unwalkable
« Reply #5 on: 14 Jul 2005, 17:24 »
I don't think I'm using MoveCharacterDirect commands for just normal walking

monkey_05_06

  • AGS Project Admins
  • #1 Straight Basher
Re: Walkable areas are unwalkable
« Reply #6 on: 14 Jul 2005, 17:28 »
You may want to check that out.  It's possible that somewhere you may have a command to that effect.  Otherwise...I quit.  I give up.
By and large I didn't accomplish what I set out to do, but I did accomplish a fair bit. So, there is that.

CodeJunkie

  • Formerly known as CodeJunkie
    • I can help with backgrounds
    •  
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with scripting
    •  
Re: Walkable areas are unwalkable
« Reply #7 on: 14 Jul 2005, 17:31 »
I'm such a loser:

if(GetWalkableAreaAt(mouse.x, mouse.y) == 1) { //walk
  MoveCharacter(0, mouse.x, mouse.y);
}

Sorry, about that, it's my first game where I've altered the main mouse click scripts.

Iceboty V7000a

  • Local Moderator
  • * KILL* * KILL * * KILL *
    • Lifetime Achievement Award Winner
    •  
Re: Walkable areas are unwalkable
« Reply #8 on: 15 Jul 2005, 02:57 »
remove those if..., otherwise the character can only be walked if the destination is area 1. Just:
 MoveCharacter(0, mouse.x, mouse.y);

Also, if your game has scrolling rooms, change it to:
 MoveCharacter(0, mouse.x+GetViewportX(), mouse.y+GetViewportY());