1
General / Re: CircleShape movement not working??
« on: August 10, 2015, 05:21:21 am »
Thank you both and sorry for being such an amateur! I left the libraries out intentionally because I wasn't sure if they'd be annoying. Thank you for all your comments - I've been consolidating and playing with all the suggestions before replying. This is a big help and thank you for the link to the bouncing ball.
A couple of questions:
1) Why do you prefer random to rand?
2) Great point about not allowing a stone to be created less than Radius distance from a wall. Relatedly, I'm now wondering how I could make sure stones don't generate at a point where another stone is (at least in the initial positions)?
3) Is there a way to set up event triggers as a "key last pressed" instead of having to have the key remain pressed?
4) I've tried and failed to add a texture to the balls. From the documentation, it seems like the problem might be the template becomes disassociated with the object upon its return to main. Is writing a copy constructor inside Stone with the template the best solution to this?
A couple of questions:
1) Why do you prefer random to rand?
2) Great point about not allowing a stone to be created less than Radius distance from a wall. Relatedly, I'm now wondering how I could make sure stones don't generate at a point where another stone is (at least in the initial positions)?
3) Is there a way to set up event triggers as a "key last pressed" instead of having to have the key remain pressed?
4) I've tried and failed to add a texture to the balls. From the documentation, it seems like the problem might be the template becomes disassociated with the object upon its return to main. Is writing a copy constructor inside Stone with the template the best solution to this?