Hotspot On The Start Screen In Order To Start Game? (SOLVED)

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
Scribbler
Newbie
Posts: 13
Joined: Tue Jul 11, 2017 12:10 am
Tumblr: still-in-bed-please
Skype: uselesslesbianvampire_LM
Contact:

Hotspot On The Start Screen In Order To Start Game? (SOLVED)

#1 Post by Scribbler »

I really want to let players start my game from the main menu by clicking a hotspot. I don't know exactly where to put my code in, though, nor if there's anything I need to take out. I have the hotspot actually coded -

imagemap:
ground 'main_menu1.png'
idle 'main_menu1.png'
hover 'hover.png'

alpha False

hotspot(327,1488,111,111) action

What action do I take here to start the came from the main menu? Where do I imput the code and what other parts do I remove? I'm completely lost...
Thank you!
Attachments
This is what the start screen currently looks like. I want to have it set so the home button will be the hotspot to start the game.
This is what the start screen currently looks like. I want to have it set so the home button will be the hotspot to start the game.
This is the code as it is now, in screens.rpy. I believe this is the relevant section?
This is the code as it is now, in screens.rpy. I believe this is the relevant section?
Last edited by Scribbler on Sat Jul 15, 2017 10:27 pm, edited 1 time in total.

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Hotspot On The Start Screen In Order To Start Game?

#2 Post by Alex »

The action is Start(), check main_menu screen in screens.rpy and https://www.renpy.org/doc/html/screen_a ... html#Start

Scribbler
Newbie
Posts: 13
Joined: Tue Jul 11, 2017 12:10 am
Tumblr: still-in-bed-please
Skype: uselesslesbianvampire_LM
Contact:

Re: Hotspot On The Start Screen In Order To Start Game?

#3 Post by Scribbler »

Thank you so much! That worked out beautifully.

Post Reply

Who is online

Users browsing this forum: No registered users