PDA

View Full Version : Terrain problem


ograx
2004-05-17, 07:51 PM
I recently added fish to the maps in my game.The problem I am encountering is that the fish can not move in the water.When I alter the terrain passabiliy I am then left with the problem of my character being able to go into the water.Also when the water becomes passable the fish can leave the water and swim on the grass.Is there any way I can make the fish move in the water while keeping the characters out.I tried making one of the water tiles passable and the other impassable,but it doesnt look
very good.

BlueCube
2004-05-18, 05:38 AM
If it's just for a few maps, then try the following:

1. Go into Tilesets, increase the Array Size by one.
2. Copy/Paste the tileset you were using into the new slot, rename it to whatever you want.
3. Alter the water's passiblity in the new map to O.
4. Change the maps you want to have to this new tileset.
5. Make a bunch of "clear" events, with the event layer being "Same Level As Hero". Use them as a border just inside the water's edge. This will prevent the hero from walking in, and the fish from swimming out. (Copy/Paste works great here)

Hopefully your map doesn't have too much of a border, otherwise step 5 may be a bit time consuming.