If you set the speed AFTER you set the angle in bullet behavior, the angle will not be correct.
The workaround is setting the angle after the speed.
Link to .capx file (required!):
Steps to reproduce:
1. Create an Sprite
2. Enable Bullet Behavior
3. In any event, set angle to 90 and then set speed to any not zero.
The sprite movement angle will be 0
The movement angle should be 90
Internet Explorer: yes
Safari for Windoes: yes
Operating system & service pack:
Windows 7 SP1
Construct 2 version:
136 and before
Add a Wait 0 seconds after setting Sprite 2's angle of motion. Although you shouldn't need to do that, it's a fix. Something with setting speed so quickly after setting AOM resets it/doesn't allow it to change. That should still be fixed none the less
It's not a bug, it's by design.
You can't have a movement angle if you don't have a speed to this movement.
EncryptedCow: using a "wait 0 sec" action is always a bad idea and should be a "do not" when using C2.
Develop games in your browser. Powerful, performant & highly capable.
Kyatric How is it bad to use it? I use it quite often when I have to wait for the previous action to complete.
The previous action is already complete by the time you get to the next action, so I would consider it bad practice to use it for that reason.