title: game maker studio 2: bullets don't move to the mouse direction
body: <p>I'm trying to make shooting mechanics in my game, but I can not force bullets move to the mouse direction. It just creating under player object and stay on his coordinates . Uses physics don't change situation, no matter obj_bullet just "uses physics"(and with sensor parameter as well) or not uses. </p>
  
  <p>They just stay on coordinates where I created them</p>
  
  <p><a href="https://i.stack.imgur.com/HwXuM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HwXuM.png" alt="x"></a></p>
  
  <p>When I don't use physics on obj_bullet, bullet sprite rotating depends of mouse position but still don't move.</p>
  
  <p><a href="https://i.stack.imgur.com/93qUH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/93qUH.png" alt="xx"></a></p>
  
  <p>I wrote a simple code for my bullets in "create" event of bullet  </p>
  
  <pre><code>BulletPower=1;
  bulletSpeed=10;
  speed=bulletSpeed;
  direction=point_direction(x,y,mouse_x, mouse_y);
  direction+=random_range(-5,5);
  image_angle=direction;
  </code></pre>
  
  <p>Tried to use <code>move_towards_point(mouse_x, mouse_y,bulletSpeed);</code> instead but doesn't work</p>
  
  <p>Then I've made instance layer "Bullets" above all others 
  and then made condition in "step" event of obj_player</p>
  
  <pre><code>if (mouse_check_button(mb_left)){
      instance_create_layer(x,y,"Bullet",obj_bullet);
  }
  </code></pre>
  
  <p>And bullets just drop on player coordinates.
  I had theory that bullet just stack in player, but even if I create bullet not on player coordinates it still doesn't work 
  Also I changed axis of player and bullet sprites but still no result...</p>
  
  <p>I really don't understand why it doesn't work, because I saw almost same code on youtube tutorials <a href="https://www.youtube.com/watch?v=fCeyiEcWRAs" rel="nofollow noreferrer">like this</a>
  and in their case it works.</p>