What's wrong with my Hockey code???

Blitz3D Forums/Blitz3D Programming/What's wrong with my Hockey code???

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I've taken some time off from my main project to see if I could create a quick Hockey game.

The problem that I am having is that when you pass the puck it'll go to the closest target, but after the new "character"(it's just a box right now) has control. When I try to pass it again it goes in some odd direction, but if you pick up the puck again and pass it, it suddenlt works. Here's the code in this .zip any help would be greatly appreciated.

http://www.sideways8-games.com/files/hockey_engine.zip

please help