Omnimaga

Calculator Community => TI Calculators => Lua => Topic started by: annoyingcalc on December 17, 2012, 08:07:56 pm

Title: Help with code
Post by: annoyingcalc on December 17, 2012, 08:07:56 pm
Code: [Select]
Ma="\029\000\000\0000\000\000\000\000\000\000\000:\000\000\000\016\000\001\000\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\255\255\255\255\255\255\000\128\000\128\255\255\255\255\255\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\255\255\255\255\000\128\255\255\000\128f\242\255\255`\216`\216f\242\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128f\242`\216`\216\000\128\000\128f\242`\216`\216`\216`\216`\216\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128`\216`\216`\216`\216\000\128`\216`\216`\216`\216`\216`\216`\216\000\128f\242\255\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\000\128@\188`\216`\216`\216`\216\000\128\198\152`\216`\216`\216`\216`\216\000\128\198\152`\216\255\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\255\255\255\255\255\255\000\128\198\152`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216f\242\000\128\000\128\000\128\255\255\255\255\255\255\255\255\000\128\255\255\255\255\255\255\000\128\198\152`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216\000\128\255\255\255\255\000\128\000\128\255\255\255\255\255\255\000\128\255\255\255\255\000\128\000\128`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216\000\128\255\255\255\255\255\255\000\128\255\255\255\255\255\255\000\128\255\255\000\128\000\128@\188`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216\000\128\255\255\255\255\000\128\255\255\255\255\255\255\000\128\000\128\000\128@\188`\216\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128`\216`\216\000\128\255\255\000\128\255\255\255\255\255\255\000\128\000\128@\188`\216\000\128.\247\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128`\216\000\128\255\255\000\128\255\255\255\255\255\255\000\128\000\128@\188\000\128.\247\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128`\216\000\128\000\128\255\255\255\255\255\255\000\128\000\128@\188\000\128\211\255\211\255\211\255\000\128\000\128\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128\000\128\211\255\211\255\000\128`\216\000\128\000\128\255\255\255\255\000\1281\1981\198\000\128.\247\211\255\211\255\211\255\000\128\000\128\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128\000\128\211\255\211\255\000\128`\216\000\1281\198\000\128\255\255\000\128\198\1521\198\000\128\211\255\211\255\211\255\211\255\000\128\000\128\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128\000\128\211\255\211\255\000\128`\216\000\1281\198\000\128\255\255\000\128\198\1521\198\000\128\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128`\216\000\1281\198\000\128\255\255\000\1281\1981\198\000\128.\247\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128`\216\000\1281\198\000\128\255\255\255\255\000\128\000\128@\188\000\128\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128`\216\000\128\000\128\255\255\255\255\255\255\255\255\000\128@\188\000\128.\247\211\255\211\255\211\255\211\255\211\255\198\152\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128`\216\000\128\255\255\255\255\255\255\255\255\255\255\000\128\000\128@\188\000\128.\247\211\255\211\255\211\255\211\255.\247\000\128\000\128\000\128\000\128\198\152\211\255\211\255\211\255\211\255\211\255\000\128`\216\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128@\188\000\128\000\128.\247\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\211\255\000\128\000\128`\216\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128@\188`\216\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128`\216`\216\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128@\188`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216`\216\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\1284\174\182\194\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\1284\174\198\152\182\194\000\128\182\194\182\194\198\152\182\194\182\194\182\194\198\152\182\194\000\128\182\194\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\182\194\182\194[\219\000\128\182\194\182\194\182\194\198\152\000\128\198\152\182\194\182\194[\219\000\128\182\194\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\182\194\182\194[\219\000\128\182\194\000\128\000\128\000\128\138\255\000\128\000\128\000\128\255\255\000\128\182\194\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\1284\174\182\194[\219\000\128\198\152[\219[\219\000\128\138\255\138\255\138\255\000\128[\219\255\255\000\128\182\194\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\182\194\182\194[\219\000\128\182\194[\219[\219\000\128\138\255\000\128\138\255\000\128[\219[\219\255\255\000\128\182\194\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\182\194\182\194[\219\000\128\182\194[\219[\219\198\152\000\128[\219\000\128\198\152[\219[\219\255\255\000\128\182\194\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\1284\174\182\194[\219\000\128\198\152\182\194[\219[\219[\219[\219[\219[\219[\219[\219[\219\255\255\000\128\182\194\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\182\194\182\194[\219\000\128\182\194\182\194\182\194[\219[\219[\219[\219[\219[\219[\219[\219\255\255\000\128\198\152\198\152\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\198\152\198\152\198\152\000\128\000\128\198\152\182\194\182\194[\219[\219[\219[\219[\219[\219[\219\255\255\000\1281\1981\198\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\211\255\211\255\211\255\211\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\198\152\198\152\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\211\255\211\255\198\152\000\128\000\128\000\178\000\128\198\152\000\178\000\178\000\178\000\178\000\178D\215\000\128\000\128.\247\211\255\211\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128.\247\211\255\198\152\211\255\000\128\198\152\000\178\000\128\198\152\000\178\000\178\000\178D\215\000\128\000\128\000\128\000\128\198\152\211\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128.\247\211\255\211\255\000\128\000\178\000\178\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\178\000\128.\247\211\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\198\152\000\178\000\178\000\128\255\255\255\255\255\255\000\128\000\128\000\178\000\178\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\000\128\000\128\255\255\255\255\255\255\000\128\000\128\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\211\255\211\255\000\128\255\255\255\255\255\255\255\255\255\255\000\128\211\255\211\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\198\152\198\152\000\128\255\255\255\255\255\255\255\255\255\255\000\128\198\152\198\152\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128`\216`\216\000\128\255\255\255\255\255\255\255\255\255\255\000\128`\216`\216\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128[\219[\219\255\255\000\128\255\255\255\255\255\255\255\255\000\128[\219[\219\255\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128[\219[\219[\219\255\255\000\128\255\255\255\255\255\255\000\128[\219[\219[\219\255\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\198\152[\219[\219[\219\255\255\000\128\255\255\255\255\000\128\198\152[\219[\219[\219\255\255\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\000\128\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255"
calc="\022\000\000\000.\000\000\000\000\000\000\000,\000\000\000\016\000\001\000\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\255\255\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\255\255\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\255\255\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\255\255\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\255\255\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128\000\128"
platform.apilevel = "1.0"
-----------------------
------ Constants ------
-----------------------

spr = 0 -- image movement increment
obj = 0
summon = 0
x=0
y=200
dx=0
dy=0
-----------------------
------   Events  ------
-----------------------
function on.mouseDown(dx, dy)
 obj=1
 summon=1
    platform.window:invalidate()
end

fuction on.arrowRight()
x=x+2
--if spr <= 2 then
--spr=spr+1
--end
platform.window:invalidate()
end
fuction on.arrowLeft()
x=x-2
--if spr <= 2 then
--spr=spr+1
--end
platform.window:invalidate()
end




function on.paint(gc)
    -- Paint background

if spr == 0 then
    gc:drawImage(img_ma, x, y)
    end
---- if spr=1 then
----    gc:drawImage(img_mb, x, y)
--    end
-- if spr=2 then
--    gc:drawImage(img_mc, x, y)
--    end
if summon == 1 then
if obj == 1 then
gc:drawImage(img_calc,objX,objY)
end
end
end




-----------------------
------ Functions ------
-----------------------

function init()

    objX = 50
    objY = 50
    ball = 4
    x = 0
    y = 200
    ww, wh = width, height
end




-----------------------
------   Init:   ------
-----------------------

-- images --

img_ma = image.new(Ma)
--img_mb = image.new(mb)
--img_mc = image.new(mc)
img_calc = image.new(calc)


init()
on line 25 I get an error (  function on.arrowRight()   )
Please help
Title: Re: Help with code
Post by: epic7 on December 17, 2012, 08:30:53 pm
Well, you spelled "function" wrong :P
Title: Re: Help with code
Post by: annoyingcalc on December 17, 2012, 09:31:54 pm
Wow, im stupid thanks for pointing that out!
Title: Re: Help with code
Post by: tr1p1ea on December 17, 2012, 10:12:14 pm
Hehehe i hate errors like that. I typically read what i think i wrote, not whats actually there ... which is kind of strange when you think about it.
Title: Re: Help with code
Post by: epic7 on December 17, 2012, 10:36:42 pm
Lol, yeah. Also like those signs always get me that say things like:


You this read wrong.
Title: Re: Help with code
Post by: ElementCoder on December 18, 2012, 02:28:01 am
Lol, yeah. Also like those signs always get me that say things like:


You this read wrong.
I read your sentence as "You read this wrong" :O
Title: Re: Help with code
Post by: annoyingcalc on December 18, 2012, 09:53:44 pm
D: I still have an error on line 25
= expected near on D: please help
Title: Re: Help with code
Post by: Rhombicuboctahedron on December 18, 2012, 10:44:56 pm
When I correct the two instances of “fuction” it runs fine in the student software script editor
The right and left keys move Maxwell, and pressing the mouse down displays a calculator
Title: Re: Help with code
Post by: ElementCoder on December 19, 2012, 11:54:31 am
The "= expected near on" error is caused by having "fuction" instead of "function". When you fix all of these (like Rhombicuboctahedron said) the error goes away.
Rhombicuboctahedron your name is so easy to spell :D
Title: Re: Help with code
Post by: epic7 on December 19, 2012, 08:54:31 pm
I thought you already know that function was misspelled :P
Or did you not notice the second one
Title: Re: Help with code
Post by: Rhombicuboctahedron on December 19, 2012, 10:50:59 pm
Rhombicuboctahedron your name is so easy to spell :D
Aw, thanks :)
Or is that satirical? I find it to be spelled like it sounds, but whenever I mention that word to a friend, they always act like I just recited some theorem or eighty digits of pi
Title: Re: Help with code
Post by: ElementCoder on December 20, 2012, 03:57:29 am
When typing it for the first time I was like wtf?! But now that I've typed it once, it's actually very easy :)