Point To Point

Blitz3D Forums/Blitz3D Tutorials/Point To Point

Drekinn(Posted 2004) [#1]

Point To Point
Click here to download.

If you've ever wondered how to make 2D sprites move from one point to another in a straight line, like I did (for too long a time), then this fun, little demo will show you an effective way of achieving it. This is my first proper program made with Blitz3D and a first for making 2D sprites move in a direct line to and from specific coordinates. This code also answers my questions as to how characters in graphic adventures (such as my all-time favourite 'Monkey Island' game series) follow a predetermined path around the screen.

If the techniques I have implemented throughout the code seem unduly necessary then please let me know of a more efficient method! Most of it is just experimentation but, as you'll see, it works flawlessly. I'm very happy with the results. :)

Please feel free to send me any comments, bug reports or suggestions.

Enjoy!


Pete Carter(Posted 2007) [#2]
thats quite cool


puki(Posted 2007) [#3]
I totally love this - can't say I ever recall seeing it before.


Mattizzle(Posted 2007) [#4]
This is actually something you need to know how to do in order to implement some enemy AI. Good work!


Jerome Squalor(Posted 2008) [#5]
Thanks a bunch


Blitz3dCoder(Posted 2008) [#6]
Thanks alot!