Zabicka
Member
I'm trying to increase my vspeed of specific bullet with my global.grav variable, but it doesn't seem to work.
Step Event:
I need to increase vspeed for that specific created Bullet every tick in the game. I tried to put vspeed += global.grav; to bullet's step event, but it affected all bullets in the game.
Step Event:
Code:
if (shoot) {
sprite_index = sWorm_Shoot;
with (instance_create_layer(x, y-8, "Bullets", oBullet)) {
direction = random_range(65, 115);
speed = random_range(1, 3);
vspeed += global.grav; //0.2
}
} else {
sprite_index = sWorm_Move;
}
Last edited: