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.
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)
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.