Walkable area problem with large background

Started by steptoe, Fri 18/11/2011 15:28:58

Previous topic - Next topic

steptoe

Hi

I have a bit of a walkable area problem.

Room size 320 x 240.

Background size 1501 x 1197.

There is a complete walkable area to destination, no breaks.

All edges are set correctly.

The background is of a road map and you drive along the roads.

If I set destination further than 998 x 833 then the player does not move from start and the game hangs.

I have used eBlock for testing.

It could be the road curves? I'll look into it.

Any other ideas as to why?

cheers


Khris

This is probably a matter of straining the pathfinding. If the road and thus the wa is curving all over the place, and with a room size like this, I'm not too surprised that the game appears to hang.
Does it work eventually?

To solve this you could use AddWaypoint. Split up the way into smaller parts and it should work again.

steptoe

#2
Quote from: Khris on Fri 18/11/2011 16:13:24
This is probably a matter of straining the pathfinding. If the road and thus the wa is curving all over the place, and with a room size like this, I'm not too surprised that the game appears to hang.
Does it work eventually?

EDIT: Made image smaller and using:

Code: ags

  ccab.Walk(638, 918, eNoBlock, eWalkableAreas);
  ccab.Walk(642, 664, eNoBlock, eWalkableAreas);
  ccab.Walk(644, 388, eNoBlock, eWalkableAreas);


Seems to work so far..


To solve this you could use AddWaypoint. Split up the way into smaller parts and it should work again.
[/quote]

Unfortunately the AddWaypoint does not support eWalkable areas.

The car gets to its destination eNoBlock with keys/mouse disabled with stuff running in the background like distance and time and the user has to answer questions via GUI buttons/labels.

Thanks Khris, but not solved yet

steptoe

PS have straightened the roads.




SMF spam blocked by CleanTalk