-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for LiveComposite character sprites #66
Comments
A work-around I've found is defining several characters for different layers:
Then using the following frames:
An alternative that I think works a lot better is to add a class with multiple background images:
Then in script.js:
In both methods, you need the images to be the same sizes; and empty.png is literally an empty PNG that just sets the bounds for the images set in Hopefully this helps you or another programmer coming along! |
Hi, I have been thinking on a feature like this, I am not sure if is possible, what I was thinking was to add one more way on show and scene command to be able to use css classes instead of images, something like "show .h normal center" or instead of using it on command use it on characters or scenes json definition something like const characters = { What I am not sure is if we would be able to stack images with css classes using for example the after and before, like this: https://codepen.io/ajimix/pen/aKHlh @Hyuchia what do you think? |
Hi, A quick example to show why this feature is necessary for any large scale project:
Without image layering, an image must exist for any combination of outfit/expression/accessory. With image layering, we can use separate images for outfits/expressions/accessories. Conclusion:
Implementation examples in Ren'py:
Using this feature is very verbose. |
Hello, we did this technique but thanks to custom actions, I have made an add-on to make a basic layered sprite system. Maybe in some months, i'll work on another version of this custom action, that works like the composite feature we have in ren'py ! https://gist.github.com/LoganTann/df16e6a3f8600421fedd4fd400e5a686 How to use it : at the time I write this line, I didn't have the time to document the actual version of this custom action. You can try to read the code of my project here : Kagescan/fangame@de4b378#diff-0f70a2a1890079f65fd35f2130c42ed20389afd8b58ef18e5f978d92cf40ee01L287 Hyuchia is actually working in his own layered sprites feature. See more at the |
Would it be possible to composite character sprites out of components such as
base.png, clothes.png, expression.png
as in Ren'Py?This feature would also be awesome for creating blinking sprites!
The text was updated successfully, but these errors were encountered: