Hello! I’m working on a platformer/rpg thing and I’m almost started on the 2nd level. However, the 2nd level has more of a focus on rail grinding due to it taking place underground.
Does anyone know how I’d be able to implement something like that? What are some possible solutions (like would I use raycasts or bodyvelocity or a mixture of both?) I’d prefer a solution that would let me build the rail like, manually cuz I like seeing where things are. :v
Any help will be greatly appreciated, and kudos in advance!
Maybe try looking for posts about moving an object (train or car) along a path or rail.
I would think just off the top of my head, using a render stepped, and setting the characters cframe along a path of predefined points (the rail) with appropriate animation and speed.
As I said, I would think you could do a render stepped loop
and having the player’s Character’s PrimaryPart (HumanoidRootPart) Anchored = true
You then CFrame the Character (with PivotTo) along a path of points that follow a rail at a set speed.
i’m not entirely sure what you mean by that, do you mean like make the jump so that it always follows the same height? If so, then I think it’d might make it a little difficult to have a bit of creative freedom in terms of where you can jump, unless I’m thinking about it completely wrong