User talk:Teddy-games

From Spheriki

Jump to: navigation, search

Example code is incorrect

Your code reads:

function game()
{
  CreatePerson("Name")("Spritset.rss")
  AttachInput("Name")
  Attachcamera("Name")
  MapEngine("map.rmp"), 60)
}

When it should look more like this:

function game()
{
  CreatePerson("Name", "Spritset.rss", false);
  AttachInput("Name");
  AttachCamera("Name");
  MapEngine("map.rmp", 60);
}

Case is important (CAPITALS vs. lower), and parentheses, i.e. ( and ) need to be matched. Semicolons, i.e. ; are also good style. Scripting may seem hard, but if you always keep an eye out for the patterns, you'll be fine. --tunginobi 08:08, 11 December 2008 (GMT)

Personal tools