-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Scripts
CodeCombat scripts are a way of performing certain actions involving the playfield before anything happens. This is the area to set up the camera size as well as instantiate which music will play throughout the level. To access, go to the Scripts tab at the top of the editor and take a glance at the Introduction script.
Look at the Surface setting inside the Introduction script. It takes two coordinates and restricts the camera to that size. Sometimes levels can be bigger than the camera boundaries. In which case the camera will automatically shift around focusing on whichever unit the player has selected.
This is to determine whether or not a level starts playing automatically. There are reasons to both do and not do this, so consider which choice best frames your level for the first time.
There are a few music choices to select from, so try them all!
Within the CodeCombat script editor it is possible to create simple conversations between characters (or as a narrator telling the player what to do and what not to do.)
CodeCombat | Home | Blog | Forum | Teachers | Legal | Contribute
- Home
- Archmage Home
- Artisan Home
- Diplomat Home
- Archmage General
- Mission statement
- Coco Models
- Coding Guidelines
- Cookbook
- File system
- JSON Schema
- Technical overview
- Testing
- Third party software and services
- Artisan General
- Building A Level
- Coding Guidelines for Artisans
- Editing Thang Components
- Important Artisan Concepts
- Keyboard Shortcuts
- Debugging
- Artisan How-To Index
- Diplomat General
- i18n
- i18n Glossary nb
- i18n Glossary ru
- i18n Glossary es-419
- Dev Setup
- Dev Setup: Linux
- Dev Setup: Windows
- Dev Setup: Mac
- Dev Setup: Vagrant
- Dev Setup: Issues
- Game Engine
- Component
- Multiplayer
- Surface
- System
- Thang
- Thang Component System
- Tome
- World
- Artisan Tabs
- Components And Systems
- Scripts
- Settings
- Thangs
- Other
- Aether
- Client models
- Developer organization
- Educational Standards
- Events, subscriptions, shortcuts
- Chat Room
- Chat Room Rules
- Permissions
- Project Ideas List
- Treema
- Versioning
- Views