D
darakin
Guest
hello can somebody help me please I am having trouble with my code its only supposed to shoot one bullet but it shoots 3 and in only one direction im making a platformer btw
heres my code
//create bullet
{
b = instance_create(x,y,obj_bullet);
bullets -= 1;
b.speed = 15
//check direction
if (image_xscale = 1) {
b.direction = 0;
} else {
b.direction = 180; }
}
heres my code
//create bullet
{
b = instance_create(x,y,obj_bullet);
bullets -= 1;
b.speed = 15
//check direction
if (image_xscale = 1) {
b.direction = 0;
} else {
b.direction = 180; }
}