Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need helping with runhaxecode() funtion and stuff #14639

Open
BillyLOLwkwk opened this issue May 11, 2024 · 0 comments
Open

Need helping with runhaxecode() funtion and stuff #14639

BillyLOLwkwk opened this issue May 11, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@BillyLOLwkwk
Copy link

Describe your problem here.

`function onCreate()
addHaxeLibrary('FlxCamera', 'flixel')
addHaxeLibrary('FlxObject', 'flixel')
--setProperty('camGame.width', 640)
runHaxeCode([[
public var myCam:FlxCamera;
var Posicion;
myCam = new FlxCamera();
Posicion = new FlxObject(1200, 750, 1, 1);
myCam.follow(Posicion);

add(Posicion);
FlxG.cameras.add(myCam, true);
FlxG.cameras.add(game.camHUD, false);
FlxG.cameras.add(game.camOther, false);

myCam.scaleX = 1;
myCam.scaleY = 1;
myCam.width = 640;
myCam.height = 720;
myCam.zoom = 0.8;
myCam.x = 640;
]])

end`

this the lua code in the event that i want to make. but to bad idk how to acces the camera variable that i just made out from the line of code, for example i can accest the camera at the onEvent() function or else. i tried everything to edit the camera like move it, and stuff but results nothing. can someone help me ?

Are you modding a build from source or with Lua?

Lua

What is your build target?

Windows x64

Did you edit anything in this build? If so, mention or summarize your changes.

No response

@BillyLOLwkwk BillyLOLwkwk added the help wanted Extra attention is needed label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant