Hi,
I was actually thinking if its possible to make the mouse cursor in the game?
I have a image like this.
But i have no idea how to do it, can somebody help me how to make a code out of this?
Thank you!
How to make a custom mouse cursor in the game?
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.
- isobellesophia
- Miko-Class Veteran
- Posts: 979
- Joined: Mon Jan 07, 2019 2:55 am
- Completed: None
- Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
- Organization: Friendly Teachers series
- Deviantart: SophBelle
- itch: Child Creation
- Location: Philippines, Mindanao
- Contact:
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: How to make a custom mouse cursor in the game?
You put your mousepointer-image in the game folder and the following code. It could be somewhere before the start label in the script.rpy-fileisobellesophia wrote: ↑Fri Feb 15, 2019 12:48 pm Hi,
I was actually thinking if its possible to make the mouse cursor in the game?
I have a image like this.
custommouse.png
But i have no idea how to do it, can somebody help me how to make a code out of this?
Thank you!
Code: Select all
init python:
setattr(config, "mouse", {"default": [("custommouse.png", 0, 0)]})
- isobellesophia
- Miko-Class Veteran
- Posts: 979
- Joined: Mon Jan 07, 2019 2:55 am
- Completed: None
- Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
- Organization: Friendly Teachers series
- Deviantart: SophBelle
- itch: Child Creation
- Location: Philippines, Mindanao
- Contact:
Re: How to make a custom mouse cursor in the game?
Thanks again, i'll try this!Per K Grok wrote: ↑Fri Feb 15, 2019 1:41 pmYou put your mousepointer-image in the game folder and the following code. It could be somewhere before the start label in the script.rpy-fileisobellesophia wrote: ↑Fri Feb 15, 2019 12:48 pm Hi,
I was actually thinking if its possible to make the mouse cursor in the game?
I have a image like this.
custommouse.png
But i have no idea how to do it, can somebody help me how to make a code out of this?
Thank you!
0,0 in the code is the pointers 'hotspot'. If your pointer does not go all the way to the top left corner you might have to change the numbers to where the point should be (or even better, trim the image so the pointer goes all the way to the corner)Code: Select all
init python: setattr(config, "mouse", {"default": [("custommouse.png", 0, 0)]})
Who is online
Users browsing this forum: No registered users