CSD Interactive card (Lesson 14) Continuous movement on Mouse Down

Hi - we are trying to figure out how to make a sprite continue to move once the Left button is clicked - ours either just moves once or will only keep moving if the button is held down.
Thanks! :slight_smile:

Hi @andrea.burgess! One way of doing this would be to create a variable in your program that you set to “false”. Then, when the mouse clicks, the variable changes to “true”. Then the conditional part of your formula would look for the variable to be true (rather than looking to see the status of the mouse) and since it would then be true moving forward, the movement would continue to execute.

Does that make sense?

Let us know if we can help further on it …

Mike