Hello all!
I have come across a problem that I see as a difficult problem in my eyes. I would like to have 3 different classes of objects that at random are chosen. One object of a class would be a green triangle, another would be a blue square and another would be a red circle. I want to chose the objects at random(easy part, already achieved) and form a chain with them. When I say chain I mean their object borders touch and they follow the path of the previous object infront of them. Similiar to the game snakes but it would be a set length(for example the length of the chain would be 8, and the length wouldn't change until level is changed) and they move in the path of the previous object infront of them. I am also trying to make the path to be curved to make the game feel better as rigid turns don't look nice without the use of trigonometry.
Something that would be awesome, if there was a way for objects to follow a certain predetermined path that can adapt to very maps without the use of coordinates.
Is there a way for objects to follow a certain colour on the screen? For example if there is a visual pathway that is the colour blue, have objects touching blue follow the path and go a certain direction.
Here is a small visual I quickly made in paint. The colour orbs represent different objects of different enemy classes. The curved line is their path they follow.
Code guidance is welcome but not needed.
http://i48.tinypic.com/rcj0k5.jpg