I have encountered some difficulties when trying to use the variable command. I want to simulate changing one body’s velocity, e.g. from 1 to 5, and I set up variable as follows:
variable vx loop $5
velocity body set v_vx 0 0
However, there is an error: Substitution for illegal variable. What’s wrong with my usage above?