-
whenever sonic runs or prepares a peelout/spindash, the camera pans in the direction he's going, like this: what values would i have to edit or add to make it work? all i know is that i have to add a variable that stores the camera pan |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
UPDATE: i managed to find a way on how to make it (partially) work through the help of AI. it only happens if you're pressing a direction and NOT if you're running, though. it doesn't accommodate for camera boundaries either. i'm hoping someone with more experience could make it better within the Player.gd file, add three variables (maxPanSpeed makes sure it doesn't pan out further than it does):
then, in the if statement that checks whether the player is pressing the direction they're moving in, you include this:
when you come to a stop if neither of the keys are pressed, add this else statement (to make sure it doesn't lock in that position):
and that's how you get the camera to extend in Sonic Worlds Next! sort of :) |
Beta Was this translation helpful? Give feedback.
this code is kinda wierd, so this is a different take without ai
sonic cd's extended camera replaces the horizontal drag margins used in the other classic sonic games.
This is the place to disable that:
next, is the actual offsetting.
Sonic Worlds Next uses a variable called
camAdjust
to offset where the camera thinks t…