• Solarus
    • Overview
    • Download
    • Changelog
  • Games
  • Development
    • Create with Solarus
    • Resource packs
    • Tutorials
    • Quest Maker Documentation
    • Contribute to Solarus
    • How to contribute
    • Donate
    • Source code
  • News
  • Community
    • Forum
    • Discord Chat
En
English Français
  1. Home
  2. Development
  3. Tutorials
  4. Solarus video tutorial
  5. Switch that triggers a mechanism
  • How to create a quest
  • Zelda Resource Pack
  • The Map Editor
  • Grounds
  • The Quest tree
  • The Quest properties
  • Getting started with Lua scripting
  • Treasures
  • How to save the game
  • Teletransporters
  • How to scroll between maps of different sizes
  • Stairs and holes
  • Organize your code in separate files with require()
  • How to create a tileset
  • Map scripts
  • How to create a sprite
  • How to display an image
  • Dialogs with a Non-Playing Character
  • Generalized NPCs
  • Movements
  • Jumpers
  • Platforms
  • Switch that triggers a mechanism
  • Dynamic tiles
  • Timers
  • Enemies
  • Blocks
  • Invisible walls
  • Separators
  • Sensors
  • Destructible objects
  • Doors
  • The HUD
  • Rupees
  • Shops
  • Let's swim
  • How to make a bridge

Switch that triggers a mechanism

Summary

  • Working with switch entities
    • Walkable switch
    • Solid switch
  • Using a switch from a map script
    • Make a chest appear (and save state)
  • Events used by a switch
    • The on_activated() event
    • The on_deactivated() event

Resources

  • Video made with Solarus 1.5.
  • Download Solarus
  • Solarus documentation
  • How to program in Lua
  • Legend of Zelda: A Link to the Past resource pack
Previous
22. Platforms
Next
24. Dynamic tiles

Legal Information

© 2006-2020 Christopho, Solarus
Software is GPL. Resources are CC-BY-SA.

  • Legal Terms
GPL v3 logo
CC-BY-SA 4.0 logo

About

Solarus is made by a team of people on their free time.

  • Frequently Asked Questions
  • Contributors
  • Nonprofit Organization
  • Contact

Contribute

Solarus is free: your help or support is always appreciated.

  • How to contribute
  • Donate
  • Source code
  • Goodies

Links

Useful links for people who want to keep being informed about the project.

Sponsors

We gracefully thank our sponsors for their help.

GPL v3 logo

Made with Kokori, our own free and open-source website engine.