Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

the offset problem - A Question for Friday Night Funkin'.

Question Answered but Unsolved

This Question has been answered but no solution has been chosen. You can still post your own answer to help the submitter.

help

i was trying to add offset to lua object

when i used addOffset(), it doesn't work

the code:
function onCreate()

    makeAnimatedLuaSprite('You', 'idk', getProperty('dad.x')-600, getProperty('dad.y')+300)

    addAnimationByPrefix('You', 'idle', 'idle', 24, false)

    addAnimationByPrefix('You', 'singLEFT', 'left', 24, false)

    addAnimationByPrefix('You', 'singRIGHT', 'right', 24, false)

    addAnimationByPrefix('You', 'singUP', 'up', 24, false)

    addAnimationByPrefix('You', 'singDOWN', 'down', 24, false)

    setObjectOrder('You', getObjectOrder('dad')-1)

end

function onStepHit()
    if curStep == 3616 then

            addLuaSprite('You', false)

            addOffset('You', 'singLEFT', 70, 6)

            addOffset('You', 'singRIGHT', -16, 8)

            addOffset('You', 'singUP', 55, 36)

            addOffset('You', 'singDOWN', 22, -28)
        end

end





Login or Sign up to access this!
Login or Sign up to access this!

Comments

No comments yet!

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Asker

Login or Sign up to access this!
Login or Sign up to access this!
Login or Sign up to access this!

Game

Login or Sign up to access this!

Category

Share

  • 1
  • 932
  • 1
Login or Sign up to access this!

More from Submitter

More WiPs from Submitter

More Lua Programming Questions

arrow_back