Why this code doesn't work?

The idea is to make 5 squares on position (x, y) = (200, 200) and make those 5 squares move to positions 0, 0; 10, 10; 20, 20; 30, 30 and 40, 40 respectively. I've wrote this code:
view->Create Actor->Script Editor
Why it doesn't work?
Thanks!
view->Create Actor->Script Editor
- Code: Select all
int i;
for (i = 1; i <= 5; i++) {
CreateActor("player", "square", "no parent", "no path", 200, 200, true);
MoveTo("player", i*10, i*10, 10, "Game Center", "");
}
Why it doesn't work?
Thanks!