This repository was archived by the owner on Apr 3, 2023. It is now read-only.
lua stage back image displays as black #23
Unanswered
charlesisfeline
asked this question in
Lua Q&A
Replies: 2 comments 5 replies
-
Did you type the image name, directory, x and y offsets correctly? |
Beta Was this translation helpful? Give feedback.
5 replies
-
You can't use normal floats with decimals inside of x and y positions. They need to be Integers. (whole numbers) angleshit = 1
anglevar = 1
function onCreate()
makeLuaSprite('bg', 'whitwall', -410, -295)
setLuaSpriteScrollFactor('bg' 0.9, 0.9)
addLuaSprite('bg', false)
makeLuaSprite('bgg', 'whitfloor', -410, -295)
setLuaSpriteScrollFactor('bgg' 1, 0.95)
addLuaSprite('bgg', false)
end |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
fix this please
Beta Was this translation helpful? Give feedback.
All reactions