Bullet movement help please!

0 favourites
  • 9 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • I have set up a simple bullet event in my game as seen here

    my problem is when i shoot a bullet and move my character the bullet moves with it how can i prevent this

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You mean the bullet moves at a similar speed to the player? You can increase the bullet movement speed.

  • You mean the bullet moves at a similar speed to the player? You can increase the bullet movement speed.

    No what I mean is when I shoot the bullet and then move my player with the arrow keys (I use 8-direction for that) the bullet goes that direction as well.

  • Your event says to spawn it at the same direction the player is moving at the time it is spawned, what would you like it to do?

  • Ah ok I've got it, untick 'Set Angle' on the bullet behaviour

  • just specifically set the angle of the bullet object when you spawn it in, meaning that you can preset it's angle to either go left or right depending on whether the player is mirrored or not. Also, keep in mind that 0 degrees is right, 90 degrees is straight down, etc.

  • I have now figured out what I had to do, thank you all for your help

  • I have now figured out what I had to do, thank you all for your help

    You did or one of the responses did? Please post the result so others will know when searching the forums.

  • No I Figured out a way myself but thanks for the responses anyway this is what i did:

    First I put all the shooting actions into one event and turned the arrow keys into an OR block, then I made a instant variable (shoot_direct) and i set the Bullet angle of motion as it I then made sub events of each individual arrows and "set shoot_direct to 270, 90 ,0 or 180" i think separating it from the movement system also helped

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)