Getting multiple objects to follow a predefined path

Hi all,

I know this is a well asked question, and I have tried searching online through the forums but have not found anything that appears to answer my question. I am trying to get multiple objects to follow predefined paths in the most simple way. I am essentially making something similar to a tower defense. Some paths will be slanted and not on a x or y grid. I have looked at technowands example here http://developer.coronalabs.com/code/move-object-through-path
but can’t figure out how to make predefined paths like i would need in a tower defense. Any help with this issue would be great.

Thanks,

Chris [import]uid: 126017 topic_id: 30767 reply_id: 330767[/import]

Hi Chris,

How “detailed” are the paths? Do the objects need to accurately follow curvy bezier paths with multiple curves, loops, etc.? Or, are the paths more like a sequence of points, like a series of points connected into a plotted path?

Brent

[import]uid: 9747 topic_id: 30767 reply_id: 123198[/import]

Hey Brent I actually need to do both. The bezier effect is actually gonna be used in my menu screen. Do you have any suggestions?

Thanks
Chris [import]uid: 126017 topic_id: 30767 reply_id: 123199[/import]

Hi Chris,

If you go to our site here: www.tandgapps.co.uk, theres a tutorial (and source files) for a basic Tower Defense game that uses waypoints to move the enemies along a pre-defined point.

Also if your looking for more advanced examples, theres also a space shooter template (using basic bezier curves) and a more advanced Tower Defense Template (using waypoints) for purchase and download.

Hopefully some of it would be of help :slight_smile: (the free tutoiral probably more so lol)

Thanks,
Jamie [import]uid: 69826 topic_id: 30767 reply_id: 123232[/import]

Hey TandG,

Thanks, I will check out your website for sure.

Best,
Chris [import]uid: 126017 topic_id: 30767 reply_id: 123263[/import]

Hi Chris,

How “detailed” are the paths? Do the objects need to accurately follow curvy bezier paths with multiple curves, loops, etc.? Or, are the paths more like a sequence of points, like a series of points connected into a plotted path?

Brent

[import]uid: 9747 topic_id: 30767 reply_id: 123198[/import]

Hey Brent I actually need to do both. The bezier effect is actually gonna be used in my menu screen. Do you have any suggestions?

Thanks
Chris [import]uid: 126017 topic_id: 30767 reply_id: 123199[/import]

Hi Chris,

If you go to our site here: www.tandgapps.co.uk, theres a tutorial (and source files) for a basic Tower Defense game that uses waypoints to move the enemies along a pre-defined point.

Also if your looking for more advanced examples, theres also a space shooter template (using basic bezier curves) and a more advanced Tower Defense Template (using waypoints) for purchase and download.

Hopefully some of it would be of help :slight_smile: (the free tutoiral probably more so lol)

Thanks,
Jamie [import]uid: 69826 topic_id: 30767 reply_id: 123232[/import]

Hey TandG,

Thanks, I will check out your website for sure.

Best,
Chris [import]uid: 126017 topic_id: 30767 reply_id: 123263[/import]