The Daily Click ::. Downloads ::. Tutorial ::. Accurate Mouse Shooting Tutorial (tgf/mmf)
 

Accurate Mouse Shooting Tutorial (tgf/mmf)
Author: Teapot Submitted: 13th September, 2004 Favourites:0
Genre: Tutorial Downloads: 341
Rated:


Edited By Teapot F.K.A Damien M on 9/13/2004

This is a tutorial on how to create pixel-perfect accuracy for a mouse shooting game. This does not use any advanced mathematics or any extensions. It is pretty well written and is cut down to very few lines of code to make it easy to add to a game.

Review This Download





http://www.teapot.satansam.co.uk/shooter.gam (47.5kb )



Posted by Teapot 13th September, 2004

oops! Wrong URL... changing...
 
Posted by Noyb 13th September, 2004

Oh, this is just a look at (0,0) from a target object, then keep going in the same direction. It works well, and using corresponding alterable values for many different bullets at once is a neat trick.
 
Posted by Knudde (Shab) 14th September, 2004

This suffers the same problem as my shooting system I'm afraid, fire multiple bullets, and the shooting goes to only 32 directions.
 
Posted by Long John Kickbag 14th September, 2004

If you want perfect accuracy then just calculate the gradient between the two points and keep adding (make sure you use decimals).
 
Posted by Jack Galilee 15th September, 2004

DAMIEN!
 
Posted by Knudde (Shab) 15th September, 2004

I count 5 bullets onscreen at once. Seriously, just click the button a bunch all around the screen.
 
Posted by AAM 11th February, 2005

hello guys!
 

 



Author

Favourite



Advertisement

Worth A Click