Docs Cookbook
Screen-by-screen rooms
Build the rooms side by side. In the middle of each, place a small marker (a Torch or Flowers).
#Without code
- Build the rooms side by side. In the middle of each, place a small marker (a Torch or Flowers).
- Switch to Advanced. On each marker, + Add behavior ▸ Looks ▸ Camera zone.
- Set its Range (tiles) to half the room's width (
6for a 12-tile room) and its Camera distance (tiles) far enough to see the whole room (14). - Try it: press ▶ Play and walk from room to room: the camera pulls back to show each room as you walk in. It still follows the player; for a camera that stays put in each room, use the Quick code.
#Quick code
Where it goes: a level script, Event: Player enters the level; in Advanced, drag out a zone
over each room with the Zone tool and name them room1, room2…; in each room, place a marker
high up where the camera should be and give it the Script name cam1, cam2….
local rooms = {room1 = "cam1", room2 = "cam2", room3 = "cam3"}
local now = ""
while true do
for zone, cam in rooms do
if in_zone(zone) and now ~= zone then
now = zone
camera_fixed(cam, "player", 0.4)
end
end
wait(0)
end
Get an email when Voxel Game Maker launches
It's coming to Steam with a launch discount. One email on launch day, the odd progress update, nothing else.