Attract mode?

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
HotAndColdAF
Newbie
Posts: 2
Joined: Mon Jul 13, 2015 2:16 am
Projects: FE Fangame
Tumblr: hotandcoldaf
Contact:

Attract mode?

#1 Post by HotAndColdAF »

Is there a way to do an attract mode (that thing where you leave a video game idle on the start screen for a while and it plays a video or a demo reel or something of the sort) in Ren'py?

User avatar
SinnyROM
Regular
Posts: 166
Joined: Mon Jul 08, 2013 12:25 am
Projects: Blue Birth
Organization: Cosmic Static Games
Contact:

Re: Attract mode?

#2 Post by SinnyROM »

I think you can use the timer element on the main menu screen for that: http://www.renpy.org/doc/html/screens.html#timer
Then for the action you can jump to a label that plays the video. Read here for more information on video playback: http://www.renpy.org/doc/html/movie.html

User avatar
HotAndColdAF
Newbie
Posts: 2
Joined: Mon Jul 13, 2015 2:16 am
Projects: FE Fangame
Tumblr: hotandcoldaf
Contact:

Re: Attract mode?

#3 Post by HotAndColdAF »

Thanks, timer was exactly what I needed. I was trying to use pause() and it wasn't working; I didn't know screens had their own version.

But now I'm having trouble figuring out how to return to the main menu after the movie plays. Using return itself just takes me to the start label, trying to jump to main_menu just tries to call the pre-set main_menu label, and trying to specify that I mean the screen version's just making Ren'py think I'm trying to code a screen.

EDIT: Oh, nevermind, I just got "call screen main_menu" to work.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]