"<x> will remember that" notifications on the corner?

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
asatiir
Regular
Posts: 86
Joined: Tue Oct 01, 2013 6:04 pm
Completed: Within the Walls (Twine)
Projects: Roses Will Rise
Organization: Asatiir's Tales
Skype: asatiir
itch: asatiir
Location: Dubai, UAE
Contact:

"<x> will remember that" notifications on the corner?

#1 Post by asatiir » Mon Nov 07, 2016 11:08 am

I'm not sure what they call it, I tried search possible names for it and couldn't find anything. I've been wanting to make notification style text that expresses the character's reaction on the corner of the screen in the same way Telltale games do.

Image

it's text that fades in and fades out passively without and ctc.

Also is there a way to have it be enabled and disabled withing the games settings?
Image
Image

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1883
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: "<x> will remember that" notifications on the corner?

#2 Post by Ocelot » Mon Nov 07, 2016 11:26 am

Check renpy.notify() function and Notify screen action. You will probably want to change notify screen to tweak it appearance.
< < insert Rick Cook quote here > >

User avatar
asatiir
Regular
Posts: 86
Joined: Tue Oct 01, 2013 6:04 pm
Completed: Within the Walls (Twine)
Projects: Roses Will Rise
Organization: Asatiir's Tales
Skype: asatiir
itch: asatiir
Location: Dubai, UAE
Contact:

Re: "<x> will remember that" notifications on the corner?

#3 Post by asatiir » Mon Nov 07, 2016 1:23 pm

hmm, I tried putting a message as a text and it didn't work. I got this as an error:

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/script.rpy", line 266: expected statement.
    renpy.notify(Thereaedi did not appreciate that.)
                                                      
Is there some sort of tutorial or guide on how to make it work?
Image
Image

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1883
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: "<x> will remember that" notifications on the corner?

#4 Post by Ocelot » Mon Nov 07, 2016 5:37 pm

1) renpy.notify is a Python statement so it shuld be prepended with dollar sign
2) It expects string as argument, not raw words

So it should look like:

Code: Select all

$ renpy.notify('Thereaedi did not appreciate that.')
< < insert Rick Cook quote here > >

User avatar
asatiir
Regular
Posts: 86
Joined: Tue Oct 01, 2013 6:04 pm
Completed: Within the Walls (Twine)
Projects: Roses Will Rise
Organization: Asatiir's Tales
Skype: asatiir
itch: asatiir
Location: Dubai, UAE
Contact:

Re: "<x> will remember that" notifications on the corner?

#5 Post by asatiir » Tue Nov 08, 2016 3:33 am

Ok, that worked. Thanks a lot!
Image
Image

Post Reply

Who is online

Users browsing this forum: Google [Bot]