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

Author Topic: Here's a video of my 2D side scroller. I can shoot arrows!  (Read 2719 times)

0 Members and 1 Guest are viewing this topic.

nickwinters

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Here's a video of my 2D side scroller. I can shoot arrows!
« on: August 09, 2015, 07:30:32 pm »
Here's the video: 

I'm using C++, SFML, and Box2D.  The art is a combination of Photoshop and Illustrator.  I did it myself.  ;)

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Here's a video of my 2D side scroller. I can shoot arrows!
« Reply #1 on: August 09, 2015, 07:52:10 pm »
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  :)
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

mashedtatoes

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Here's a video of my 2D side scroller. I can shoot arrows!
« Reply #2 on: August 15, 2015, 02:29:48 am »
 :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.

Faneva

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Here's a video of my 2D side scroller. I can shoot arrows!
« Reply #3 on: August 20, 2015, 07:28:05 am »
This is really nice and friendly  ;)