game-makergame-maker-studio-2

How do I stop motion_add?


So, basically when I fire I want some recoil and motion_add does seem perfect but it wont stop so are there any good alternatives to just have a sudden push or a way to stop the motion_add from happening multiple times. Thanks in advance!

if oShotgun.hasFired
{
    motion_add(-oShotgun.image_angle, oShotgun.backBlast)
    hasFired = false;
}

Solution

  • Maybe I'm wrong but you should set the built-in variable "speed" to 0.