I'm currently working on creating an application that showcases a car moving around a track.
I'm having two issues:
1.) I'm having a lot of trouble getting the object to latch and move along the line so much so that I've scrapped my code a few times. I'm trying to adapt Danpost's previous code at: (http://www.greenfoot.org/scenarios/5340) but am having trouble understanding and thus adapting it. It seems a bit too complex for what I'm trying to do.
2.) My second issue is that since this is an object that is a car, it has a front and a back end, I need to make it look like the car is following the line around. So that means the object must be turning around as it follows the line forward.
Any help would be greatly appreciated. I've been stuck for quite some time.
As mentioned, here is the image I'm working with:
I'm attempting to get it to follow the yellow line within the black track.
I'm attempting to get it to follow the yellow line within the black track.
