Hi, I've been stumped lately about how I can get a platform to move in a particular pattern/path in my 2D platformer game and I was hoping maybe someone could point me in the right direction.
To give an exact idea of what I want to do, here's a video: youtube.com/watch
About 6 seconds into the video, you'll notice Mario encounters a platform following an oval-like path as illustrated by the line it's attached to. Throughout the level players also encounter similar platforms that move along paths, but illustrated as different shapes by the lines. I was hoping that I could have my platforms follow paths similar to these or in whatever shape/pattern I wanted, but so far I haven't been able to wrap my head around how.
I've tried everything that comes to mind from custom movement (accelerate towards position)to the bullet behavior, but neither of these really suit my needs. Sine also appears to be too limited for what I was hoping to do, but I admit my knowledge of it is hardly extensive.
So any ideas? I'd appreciate any help!