solarice
Member
Hi all,
Ive got yet another question....well two actually :rolleyes:
In my game the player controls a sprite that can move to the left and right while locked to the centre of the screen, and when the emeny reaches a certain position on screen it stops and shoots, at your character or at least it did when i had a static background. Because the player was moving around in front of the background, but as you'll most likly know that with a tile engine the background moves instead of the charater - or at least thats how mine is working.
Now that i have a tile engine the enemy just walks past ignoring you, and ive tried making the enemy sprites shoot command locked to the centre of the screen minus the distance from you character inorder to shoot, but this is only having effect at one place within the game map, so the rest of the time hes just ignoring you.
and my other problem is the enemy is set to increment its position ny 1 every time across the screen, but if you move left they stop moving and if you move right they move twice as fast.
What id like to know is if anyone has any ideas on how to make the enemy shoot at the same distance from you everytime regardless of where in the game map you are. And if youve got any ideas on making the sprite move the same speed whether you going left or right.
Thanks for bothering to read this far, and if you can spread any light on the situation it would be most appreciated.
Ive got yet another question....well two actually :rolleyes:
In my game the player controls a sprite that can move to the left and right while locked to the centre of the screen, and when the emeny reaches a certain position on screen it stops and shoots, at your character or at least it did when i had a static background. Because the player was moving around in front of the background, but as you'll most likly know that with a tile engine the background moves instead of the charater - or at least thats how mine is working.
Now that i have a tile engine the enemy just walks past ignoring you, and ive tried making the enemy sprites shoot command locked to the centre of the screen minus the distance from you character inorder to shoot, but this is only having effect at one place within the game map, so the rest of the time hes just ignoring you.
and my other problem is the enemy is set to increment its position ny 1 every time across the screen, but if you move left they stop moving and if you move right they move twice as fast.
What id like to know is if anyone has any ideas on how to make the enemy shoot at the same distance from you everytime regardless of where in the game map you are. And if youve got any ideas on making the sprite move the same speed whether you going left or right.
Thanks for bothering to read this far, and if you can spread any light on the situation it would be most appreciated.