The Aim of the Game

Let’s Aim

This week I’m starting on the spear throwing system. Here’s what I have in mind:

  • Right click to show a dotted trajectory line (to make it easier to aim)
  • Pull the mouse in the opposite direction of where you want to throw, similar to how Angry Birds works.
  • Left click whilst right click is held in order to confirm the throw

I’m taking a little inspiration here from how Nubby’s Number Factory handles the throwing of Nubby. I really liked how you have to use right click to aim and left to confirm, as I found it limits how many misinputs happen when you are playing.

In order to find out what direction the player wants to aim, I am currently using the mouse’s delta movement (which direction it has moved since the last frame).
Unfortunately, even with buffering between the frames to smooth the movement, it simply isn’t very stable.

What’s the Fix?

I think instead of using the delta position of the mouse, I’ll instead try to actually use the position relative to the player, to create more of a slingshot system. Sadly I don’t have time to do that this week (this system already took me too long!) but that’s my next goal for this coming week.

I wish I had more to show for this week but I’ve been caught up working on other projects. Expect a big update for next weeks post!

By

Posted in