Saltar al contenido principal

Programming and Code

Getting Started with Programming

How do I create my first program?

Check out our First Program tutorial to get started with creating your first StarLogo Nova project.

Where can I find learning resources?

Visit our Skill Resources page for comprehensive learning materials and tutorials.

I'm having trouble with the interface. Where can I get help?

Start with our Getting Started guide which covers the basics of the StarLogo Nova interface.

Working with Blocks

What blocks are available in StarLogo Nova?

You can explore our complete Block Library to see all available blocks organized by category.

I can't find a specific block. Where should I look?

Use the search functionality in the block library, or browse blocks by category. Each block includes usage examples and descriptions.

Running Your Code

How do I run my code?

To run your code:

  1. After you've added code blocks to your scene, look for the "Run Code" button at the top
  2. If your code is valid, the button will highlight green
  3. Click "Run Code" to stage/compile your code (you won't see anything visual happen yet)
  4. To actually trigger your code, you need trigger blocks like:
    • "When button pushed" block
    • "While button toggled" block
  5. Add the corresponding widgets (buttons/toggles) to your scene
  6. Push/toggle these widgets to trigger your code logic

Troubleshooting Code Issues

My simulation isn't running as expected. What should I check?

  1. Verify that all your blocks are properly connected
  2. Check that your setup and go procedures are correctly defined
  3. Make sure your agents have the necessary behaviors assigned
  4. Review the logic flow in your program

The interface is running slowly. How can I improve performance?

  1. Reduce the number of agents in your simulation
  2. Simplify complex behaviors
  3. Close unnecessary browser tabs
  4. Try refreshing the page to clear memory