Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - xzazer

Pages: [1]
1
General / Bouncing Projectile
« on: March 02, 2016, 03:18:25 pm »
Hey everyone!

I'm relatively new to programming and now I'm working on this project where I create a projectile that fires from the avatar and goes towards the direction of the mouse.
The problem I have encountered is that my projectile is bouncing of enemies. This is happening because you can hold down the fire button after you have fired and I have tried to solve this on my own for a while and it is just not working. So I would love all the help I can get!

The projectile is not bouncing when it hits the edges of the screen but it fires automatically if that happens. So I need help making it so that clicking the mouse while its active doesn't work.

http://pastebin.com/0kR0NrTQ

*I am using pollEvent in the engine that is suppose to set mouserepeat to false

Pages: [1]
anything