-
-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
Let's say I want to draw a background, which is a static image that will never move.
Let's also say that I have this in my code:
setLayers(["bg", "obj", "ui"], "obj")I want to be able to do this:
onDraw(() => {
drawSprite({
sprite: "funnyBg",
fixed: true,
layer: "bg"
})
})Any more information?
There are some alternatives like:
- This one
add([layer("bg")]).onDraw(()=>{ drawSprite({ sprite: "funnyBg", fixed: true }) })
- or this one
add([layer("bg"),fixed(),sprite("funnyBg")])
but I don't think either of those are the best way to do it...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request