3

this was happening to me as I tried to make an astroids game on game maker. I put in the code motion_add[image_angle, 0.2] and it was working fine then it said

"cannot use function/script name for a variable,using"motion_add"

if you guys could help me I would be grateful thank you.

Rob
  • 4,927
  • 4
  • 26
  • 41
  • Hi new GML user! If your question was answered, could you please mark the answer as such? Thanks! – Rob Jun 05 '19 at 11:22

1 Answers1

1

You are using the motion_add() function. The syntax should be

motion_add(image_angle, 0.2);

when you use the " [ ] " symbols for the arguments, as you did, you are telling Game Maker to look for the data in the "motion_add" array at the coordinates "image_angle" and "0.2". That is not what you want. Also, do not forget the ";" at the end of your line.