Topic:   Suggestion for SC   (Read 16390 times)


0 Members and 2 Guests are viewing this topic.

GMG Tim


  • Administrator

  • GMG-er

  • *****


  • Posts: 465
Suggestion for SC
« on: June 22, 2009, 05:25:46 PM »
Hey Mike,

I know SilverCreator has a set syntax and all, but I think it would be a great asset (this goes not only for SC, but any game creator) to have a Python-like scripting language. If we're talking about beginners, Python is syntactically very simple yet powerful...

Code: [Select]
# FOR loop
for item in array:
     print item

Code: [Select]
# Substrings
text = "this is some text"
print text[0:5]

I know it's difficult to change syntax when you've already started, but I think it'd be a great improvement to any game creator.

Ghost

GMG Mike


  • Administrator

  • GMG-er

  • *****

  • no avatar

  • Posts: 536
    • mikerichardson.name
Re: Suggestion for SC
« Reply #1 on: June 22, 2009, 05:47:14 PM »
Well, Python is one language and SilverCreator is another. I try to keep SilverCreator in-line with modern BASIC as much as possible. So having brackets in addition to the MID$ command to print portions of strings would be redundant, while having only the MID$ command gives the new user something to look up and learn.

With the new array support though something like this would be useful for arrays:

FOR EACH array AS item
    code
NEXT