I can now launch a bullet, if I change the walk straight function to a move with move-anywhere on. But I only want the bullet to travel on walkable areas, and go in the direction of the mouse, and not some altered course set by the program to. the walk straight function works for my other characters. Why won't it work for criflebullet?
(note, the program is not returning any errors)
function shot_vector(int, int, int, int)
{
criflebullet.ChangeRoom(1, 0, 0); //places in the test room
criflebullet.x = cglitch.x;
criflebullet.y = cglitch.y-50; //places bullet behind player character
int vectorx;
int vectory;
vectorx = (mouse.x+16) - cglitch.x;
vectory = (mouse.y+32) - cglitch.y; //determine driection to move bullet
criflebullet.WalkStraight(((cglitch.x) + (vectorx)), ((cglitch.y) + (vectory)));
return;
}
(note, the program is not returning any errors)
function shot_vector(int, int, int, int)
{
criflebullet.ChangeRoom(1, 0, 0); //places in the test room
criflebullet.x = cglitch.x;
criflebullet.y = cglitch.y-50; //places bullet behind player character
int vectorx;
int vectory;
vectorx = (mouse.x+16) - cglitch.x;
vectory = (mouse.y+32) - cglitch.y; //determine driection to move bullet
criflebullet.WalkStraight(((cglitch.x) + (vectorx)), ((cglitch.y) + (vectory)));
return;
}