Am I missing something with "set angle of motion" of the bullet behavior

0 favourites
  • 3 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hello,

    I used Bullet behavior hundreds of time in past years without any trouble, but recently something really weird happened in my current projet. A bullet behavior started to change the angle of motion to 0 instead of the set value, and there is no easy way to change the value immediately after enabling the behavior.

    I searched the entire project but nowhere (according to the search feature) I set the angle to anything else than -90. Anyway, I always set the angle of motion just after activating it. I even tried to set the correct angle of motion before AND after enabling the behavior, just to be sure, but whatever I do, in a certain situation, the angle of motion will always be 0°. I also tried adding a "wait 0 second" action before setting the angle, but it doesn't work either.

    The only workarounds I found is to set the angle of motion to -90° every frame, or to wait 0.015 second after enabling the behavior to set the angle, but these are obviously very wrong way to do this.

    Am I missing something?

    Thanks for your help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is the speed 0? If so it is not moving and so has no angle of motion - you need to set a speed first.

  • Oh, indeed, I was setting up the speed after setting the angle, and moving the speed action above the set angle of motion action fixed the problem. I overlooked this even though it's in the manual.

    Thank you so much for taking the time to reply Ashley , this is much appreciated. :)

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