"I noticed something interesting regarding the controller block’s velocity settings and how they affect a sprite’s movement.
In Figure 1, I created a sprite, set its velocity, and then used the controller block to set the velocity to “vx = 0, vy = 0”. As expected, the sprite moved to the right and up, and I couldn’t control it afterward.
In Figure 2, I created a sprite, used the controller block to set the velocity to “vx = 100, vy = 100” first, then set the velocity again, and finally set the controller block’s velocity to “vx = 0, vy = 0”. However, in this case, the sprite didn’t move, which was unexpected.
I have a guess about this issue:
“When using the controller block to reset the velocity to zero, it might override any previously set velocity, causing the sprite to stop moving. However, if the velocity is directly set to zero using the controller block, it doesn’t seem to affect the sprite’s movement.”
Is this behavior a bug, or is there something I might be missing? Any insights would be appreciated.
For reference, you can check out the test project here: