Jump to content

  • Log In with Google      Sign In   
  • Create Account

Top Down Mouse Controlled Aiming


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Riztro   Members   -  Reputation: 240

Like
0Likes
Like

Posted 30 October 2012 - 08:13 AM

Hello everyone! Posted Image

I am trying to develop a game that is top down. Now what I have come to realize is that there are two types of top down games. One like this: Posted Image

And others like this:
Posted Image

Now what I am going for is the mouse control of the bottom one, but the visibility of the players whole body in the second one. I want the mouse control because it is a shooter game, but I also want the visibility of the players body so that the user can customize and see the other player's customization when online. So is there a way I can easily see customization with the full- top down approach (second one)? Or possibly more than 4 way control (using the mouse like in the full top down)?

I realize that for the partial top down approach (first one) people usually have 4 different images of the player but would I have to have 360 images for full 360 degree player movement with the mouse? Please help Posted Image

Thanks,
Brent

Sponsor:

#2 BitMaster   Crossbones+   -  Reputation: 4077

Like
1Likes
Like

Posted 30 October 2012 - 08:24 AM

If you want completely smooth aiming, then there is no simple solution. The best I could offer would be rendering actual 3D models but that requires considerably more work, both for programming and creating the art. Even more work if you want to stay in the graphic style of the first screenshot because the shaders will not be completely trivial.

That said, do you really need complete smoothness? I would guess at the size of those sprites eight pre-painted directions would be completely sufficient on the visual side. Movement and shooting could still happen completely smooth, just display the character sprite closest to the direction.

#3 Yrjö P.   Crossbones+   -  Reputation: 1412

Like
-1Likes
Like

Posted 30 October 2012 - 11:55 AM

Mouse is a hopelessly bad input for a top-down shooter. You really need an analog stick for that to work, or keyboard control with significantly different game design.

#4 BeerNutts   Crossbones+   -  Reputation: 2943

Like
1Likes
Like

Posted 30 October 2012 - 01:32 PM

Mouse is a fine device for aiming and shooting for a top-down game. For your specific issues, it's going to be difficult than you think. If you want your player to be running while shooting, you'll need the 8 directions, plus the running animations (say 5/stride), which is 40 frames for a single character.

Using the 2nd image's technique, you'd only need the 5 running animation frames, and you could rotate the images for direction.

FWIW, in my old blog (also linked in my sig), I detail the steps to make a simple top-down game using the mouse as the aiming device if you want to see what i did. However, my "characters" are simple circles, and no animations were used.

Good luck!
My Gamedev Journal: 2D Game Making, the Easy Way

---(Old Blog, still has good info): 2dGameMaking
-----
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS