Mar 11, 2013 Replies: 2 This is really old code I had lying around when I began writing a game in B4A 1.50. What it does is, allows you to draw a smooth path, and then the man(okay w/e) to follow it. It is buggy as hell but quite entertaining. Attachments l4t.png 44.6 KB · Views: 4,765 L4T.zip L4T.zip 18.7 KB · Views: 977 Click to expand...
This is really old code I had lying around when I began writing a game in B4A 1.50. What it does is, allows you to draw a smooth path, and then the man(okay w/e) to follow it. It is buggy as hell but quite entertaining.
S sorex Expert Licensed User Longtime User Mar 12, 2013 #2 Problem is that between the 2 dots you're guessing the right path, it can be off a lot since those bends are never correct unless you go bezier and log an inbetween position aswell.
Problem is that between the 2 dots you're guessing the right path, it can be off a lot since those bends are never correct unless you go bezier and log an inbetween position aswell.
thedesolatesoul Expert Licensed User Longtime User Mar 12, 2013 #3 sorex said: Problem is that between the 2 dots you're guessing the right path, it can be off a lot since those bends are never correct unless you go bezier and log an inbetween position aswell. Click to expand... Thats by design. The lesser points you log, the more smoother the result is. Either way, it is possible to tweak the distance/radius at which the next point will be logged. I took inspiration from those flight/airport games.
sorex said: Problem is that between the 2 dots you're guessing the right path, it can be off a lot since those bends are never correct unless you go bezier and log an inbetween position aswell. Click to expand... Thats by design. The lesser points you log, the more smoother the result is. Either way, it is possible to tweak the distance/radius at which the next point will be logged. I took inspiration from those flight/airport games.