Mouse Cursors and custom pages? (Newb Questions)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
cryinglaughter
Newbie
Posts: 9
Joined: Sun May 27, 2012 5:56 am
Projects: A Cloudy Sky
Location: United States
Contact:

Mouse Cursors and custom pages? (Newb Questions)

#1 Post by cryinglaughter » Wed May 30, 2012 3:16 pm

Mouse, and new custom page help? I mean, I know that the mouse thing is completely something I should know. But, I don't! I'm a complete newb. Whenever I try to paste the code,

Code: Select all

config.mouse = None
(that's the right code, right? o: ) I replace none with "bubblecursor.png", which is a picture in the games folder. And it gives me error messages. And then I put in (config.mouse = image "bubblecursor.png"), and still some errors. I'm just really new to this and I wan't to learn how to do cool things like change the icon image. The image is 45x45, but I don't know if that changes anything or not o: And, the second question I have, is, How can I have a little page that you can click to go to from the game at any moment, and it has updated information after different things happen? Newbie questions, sorry! But I hope that because they're newb questions, that they'll be answered easier c':

EDIT;;

So it says, to clarify, "File "game/options.rpy", line 266: invalid syntax
config.mouse = image "bubblecursor.png" <-- "

So is all I need is just something at the end? What is that?

User avatar
SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Mouse Cursors and custom pages? (Newb Questions)

#2 Post by SundownKid » Wed May 30, 2012 4:04 pm

For the first question, place this:

Code: Select all

config.mouse = { 'default' : [ ('cursor.png', 0, 0)] } 
Inside your options script and replace cursor.png with your image. (0,0) is the location of the pointer.

For the second question, you need to create a Screen and put a button to it in your navigation menu (or overlay it on the game). For making screens, go here for a tutorial. But their language is slightly different than in regular Ren'py, so you will need to use this as reference.

User avatar
cryinglaughter
Newbie
Posts: 9
Joined: Sun May 27, 2012 5:56 am
Projects: A Cloudy Sky
Location: United States
Contact:

Re: Mouse Cursors and custom pages? (Newb Questions)

#3 Post by cryinglaughter » Thu May 31, 2012 6:33 am

Thank you! :'DDD

Post Reply

Who is online

Users browsing this forum: proller, Triority