Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

HOW TO ADD CAMERA FOLLOWS CHARACTER ON NOTE HIT EFFECT IN YOSHI ENGINE #346

Answered by ghost
Mlaofmd asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Mlaofmd
Comment options

Answer selected by Mlaofmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant