[size:11pt][color:#FF0000]Article Level:[/color][/size] Beginner, Moderate, Advanced, Extreme
I really don't have a name for this except "Moo". Yes, I gave up on MooApi for a year or so due to the large number of headaches I received but I had an idea. This is a better way of sending those evil packets without using much.
I like to save things and hate wasting stuff, Electricity, food, water, memory (Computer), internet usage etc. But when it comes to Moo it has to be packets. This example lets us send the X and Y position of an object using as little packets as possible PLUS makes the movement very smooth.
[color:#009900]Note:[/color] [color:#000099]Their are no examples or any events/conditions in this article. It is for you to do and test. Also note, this is for top view MMORPG's not platform. [/color]
Bézier curves is the answer! Before we begin. let me give you a picture to see what I mean:
This is important so stay focused. Remove everything from the picture except the [color:#3333FF]blue[/color] diamonds. Those are the markers your player leaves every second or so when it is walking. The position of the markers are sent through the server. Now remove the blue diamonds in the picture and leave the [color:#CC6600]orange[/color] squares and the [color:#33CC00]green[/color] diamond. When we receive the markers, create a bézier curve and make the user object follow the curve. Simple!
[color:#009900][size:14pt]Step by step[/size][/color]
This is the player moving. It moves up and turns to the left. This movement consist of 2 angles, Up and Down. The markers are the orange dots.
The markers positions have been sent to all the other computers. When we receive it we make the user object follow through the markers using bézier curves.
This method will be excellent for online drawing games, online top-view racing games, MMORPG's, and all sorts of top-view online games
Images produced with example in "MMF/examples/bezier/bezierSimpleDemo".
The bezier object can be found here.
Thats all there is to it! If someone creates an example post it here