E
Edwin
Guest
I have a variable "can_shoot" that equals to true if I can shoot and to false if not. I also have a variable "shoot_delay" that equals to time (steps) of alarm that makes "can_shoot" variable equal true.
So when I shoot I need to make my bullet object make a "recoil" with changing it's direction.
So it works but when I shooting and have a smaller value of "shoot_delay" variable recoil gets more weaker and weaker, but it's not what I want: I want to make it stronger!.
Video:
How can You see in this video, if "shoot_delay" = 1, then the recoil is smaller than if 'shoot_delay" = 15 or more.
Please help!
So when I shoot I need to make my bullet object make a "recoil" with changing it's direction.
Code:
with (o_bullet) {
direction += irandom_range(-shoot_delay, shoot_delay):
}
Video:
Please help!