SFML community forums
General => SFML projects => Topic started by: nickwinters on August 09, 2015, 07:30:32 pm
-
Here's the video: https://www.youtube.com/watch?v=MIBP2s_-0Jc
I'm using C++, SFML, and Box2D. The art is a combination of Photoshop and Illustrator. I did it myself. ;)
-
I don't think the arrows should be interacting with each other; it makes little sense :P
Also, they should stop when they fall and hit the ground, preferably sticking into the ground ;)
But nice that you're doing stuff. I'll be watching for more updates!
Oh, and welcome to the forum :)
-
:D The bow animation made me chuckle (not trying to be rude). Try making the arrows stick into things that they collide with. You can get the collision point in box2d from the b2Contact if you have a collision listener set up. Basically when the collision event fires for the arrow, convert the type to static and keep the same position. Basically, remove the body from box2d, change whatever you need to, then add it back. You have to be careful when you do this. If you do it in the callback function, box2d will crash.
-
This is really nice and friendly ;)