I'm updating only recent bullets, because if I update all the bullets every bullet will keep changing its position when i move the mouse.XianForce wrote:Are you updating ALL of your bullets? Or just the most recently created one?
Search found 4 matches
- Wed Dec 21, 2011 3:46 pm
- Forum: Programming Discussion
- Topic: Bullet keep following mouse please Help c++/sfml
- Replies: 8
- Views: 2212
Re: Bullet keep following mouse please Help c++/sfml
- Wed Dec 21, 2011 7:24 am
- Forum: Programming Discussion
- Topic: Bullet keep following mouse please Help c++/sfml
- Replies: 8
- Views: 2212
Re: Bullet keep following mouse please Help c++/sfml
ok thank you guys very much that was very very helpful, and i really really appreciate your help :D now when i click the mouse the bullet go in that direction :D so now it works. just one last problem. the thing is when I click on the mouse the counter get incremented and the bullet get created and ...
- Tue Dec 20, 2011 2:38 am
- Forum: Programming Discussion
- Topic: Bullet keep following mouse please Help c++/sfml
- Replies: 8
- Views: 2212
Re: Bullet keep following mouse please Help c++/sfml
Thank you the replay i really appreciate it. However i think i did what you said (not sure) and its still not working. I'm sorry but I'm a newbie i spent the last 4 hours reading, researching and coding trying to fix the stupid problem but i just can't. Now the problem is that the when i click the m...
- Mon Dec 19, 2011 5:53 pm
- Forum: Programming Discussion
- Topic: Bullet keep following mouse please Help c++/sfml
- Replies: 8
- Views: 2212
Bullet keep following mouse please Help c++/sfml
Hello can you guys please please help me. I'm going insane here. I wrote a piece of code that when you click on the mouse the bullet check for the mouse angle and fire in that direction. but the problem is the bullet keep following the mouse. its not suppose to do that. it should check for the mouse...