some-fnf-archives / FNF-LegacyPsych

it's Psych Engine 0.6.3 but it compiles with newer flixel versions and also has stuff from 0.7 that is just better
Apache License 2.0
14 stars 6 forks source link

Platformer thing. #13

Closed Your-Local-LordXSimp closed 5 months ago

Your-Local-LordXSimp commented 5 months ago

Describe your problem here.

It's working fine, but the only problem I have is that the LUA-made BF doesn't move, it only flips the character. BF moves, but LUA-made BF doesn't. I also need cameraSetTarget to be on LUA BF.

I have no idea if that makes sense so I'm just gonna copy-paste the portion of the code.

`function onUpdate(elapsed)

cameraSetTarget('boyfriend')

setProperty('customMouse.x', getMouseX('other'))

setProperty('customMouse.y', getMouseY('other'))

if keyPressed('left') then

    if canMove == 1 then

        setCharacterX('BF', getCharacterX('BF') - 5)

        setProperty('BF.flipX', false)

        playSound('walkOnWood', 1)

    end

end

if keyPressed('right') then

    if canMove == 1 then

        setCharacterX('BF', getCharacterX('BF') + 5)

        setProperty('BF.flipX', true)

        playSound('walkOnWood', 1)

    end

end

if keyReleased('left') then

    if canMove == 1 then

        stopSound('walkOnWood')

    end

end

if keyReleased('right') then

    if canMove == 1 then

        stopSound('walkOnWood')

    end

end

if runTimer == 0 then

    canMove = 1

end

end`

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.

Made a platformer before a song starts.