-
Notifications
You must be signed in to change notification settings - Fork 4
Map Making
SgtGrumbles edited this page Nov 1, 2019
·
2 revisions
- Create a new directory under maps/
- Menu: Scene -> New Inherited Scene
- Go to: res://maps/base and select BaseMap.tscn
- Save your scene as MapName.tscn inside the directory you created in Step 1
- Now you need to select a Tile Set work work with.
- Under the "map" node in your new scene, add a child: TileMap
- Rename it to "ground"
- On the new TileMap node, set it's Tile Set. Click load, and select: res://maps/tilesets/neighborhood/ground.tres
- Under Cell, set size to: 11x11
- Under Colision, set layer to: car_walls, set mask to nothing
- Under the "map" node in your new scene, add a child: TileMap
- Rename it to "walls"
- On the new TileMap node, set it's Tile Set. Click load, and select: res://maps/tilesets/neighborhood/walls.tres
- Under Cell, set size to: 11x11
- Under Colision, set layer to: walls, set mask to nothing
- Under the "map" node in your new scene, add a child: TileMap
- Rename it to "features"
- On the new TileMap node, set it's Tile Set. Click load, and select: res://maps/tilesets/neighborhood/features.tres
- Under Cell, set size to: 1x1
- Under Colision, set layer to: walls, set mask to nothing
Now you're setup to use the Neighborhood tileset!
Paint your ground tiles first, then enclose the map with walls. And finally pepper in some features.
Make sure you spread out the spawn points so they are not on top of each other.
Make sure to move the win zone area to where ever your win zone is.
If you have a section of map where a Car could possibly escape the road, you can create an instance of the actor RoadWall and block it off, for instance where parking lot tiles are.
Other actors you maybe interested in:
- Street Light
- Motion Sensor