"Slicing" images
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
"Slicing" images
Hi, I'd like to ask if there's a way top create some mini-game like Fruit Ninja using renpy. Basically to write a code that detects if you're holding a mousebutton and sweeping throught an image?
Re: "Slicing" images
It is possible. You can do that using CDD. You can use pygame events to detect mouse position and if it's pressed. You need logic to figure out the slice line, how to move displayable, and how to slice them(it could be quite hard though). I don't see potential problems for PC, but I am not so sure about touch-based devices.
Re: "Slicing" images
I'll check it out, thanks!_ticlock_ wrote: ↑Sat Nov 19, 2022 12:50 amIt is possible. You can do that using CDD. You can use pygame events to detect mouse position and if it's pressed. You need logic to figure out the slice line, how to move displayable, and how to slice them(it could be quite hard though). I don't see potential problems for PC, but I am not so sure about touch-based devices.
Who is online
Users browsing this forum: No registered users