Okay so now I've got the basic platforming down, except I've still not mastered walking up and down slopes yet (If anyone could answer that too, it'd be great)
But I've got to the point where the player sort of will need a gun...
So I've just had a mess about, I can make it so when I press a button, a bullet shoots from the players torso... (Haven't set the x and y, not sure lol)
But anyways, I've found a glitch too, it only works when I face right, can't get it to work when I face left (Done an if statement to check variable "direction" and see if it's 0 (Shoots right) or 180 (Shoots left)) and it will NOT shoot left whatsoever, but anyways, whenever I shoot while facing right, if I hold it on jump, my player jumps, stops, shoots, jumps stops shoots, etc. etc. ... but without touching the floor, so they can fly offscreen, but then respawn back at the start...
Can anyone possibly help with that, I'd just like a basic event that'll allow the player to shoot left when facing left, and shoot right when facing right, although I'm thinking of disabling shooting if the player moves, lol.
Also, is there a way to check the players position in accordance to another object, so I can make it when the player goes close enough to an enemy, they'll shoot at 'em, I think I can get the whole "follow the player and carry on shooting" thing, well, I can probably make it follow the player, not sure about shooting.
Sorry if it sounds big or whatever, but meh, I'm not really picking GM up as quickly as I'd have liked to, and GML is a whole different story...
But I've got to the point where the player sort of will need a gun...
So I've just had a mess about, I can make it so when I press a button, a bullet shoots from the players torso... (Haven't set the x and y, not sure lol)
But anyways, I've found a glitch too, it only works when I face right, can't get it to work when I face left (Done an if statement to check variable "direction" and see if it's 0 (Shoots right) or 180 (Shoots left)) and it will NOT shoot left whatsoever, but anyways, whenever I shoot while facing right, if I hold it on jump, my player jumps, stops, shoots, jumps stops shoots, etc. etc. ... but without touching the floor, so they can fly offscreen, but then respawn back at the start...
Can anyone possibly help with that, I'd just like a basic event that'll allow the player to shoot left when facing left, and shoot right when facing right, although I'm thinking of disabling shooting if the player moves, lol.
Also, is there a way to check the players position in accordance to another object, so I can make it when the player goes close enough to an enemy, they'll shoot at 'em, I think I can get the whole "follow the player and carry on shooting" thing, well, I can probably make it follow the player, not sure about shooting.
Sorry if it sounds big or whatever, but meh, I'm not really picking GM up as quickly as I'd have liked to, and GML is a whole different story...