-
hello i need add camera follows character on note hit how like sonic.exe and wednesday infidelity |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Go to your global_scripts folder (if you don't have one in your mods folder, create one), make a new hx file and name the file something like this: camFollow.hx then open the file and paste this code and save it: import("Reflect"); |
Beta Was this translation helpful? Give feedback.
Go to your global_scripts folder (if you don't have one in your mods folder, create one), make a new hx file and name the file something like this: camFollow.hx then open the file and paste this code and save it:
import("Reflect");
import("Main");
import("StringTools");
var engineVer = Reflect.getProperty(Main, "engineVer");
if (!StringTools.startsWith(engineVer, "1.")) {
function createPost() {
for(char in [PlayState.boyfriend, PlayState.dad]) {
char.addCameraOffset('singLEFT', -50, 0);
char.addCameraOffset('singRIGHT', 50, 0);
char.addCameraOffset('singUP', 0, -50);
char.addCameraOffset('singDOWN', 0, 50);
}
}
} else {
trace("your yoshicrafter engine is outdated bro, you should consider…