help with set-variable for image buttons - I think

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.
Message
Author
Kaldonis
Newbie
Posts: 15
Joined: Tue Dec 12, 2017 6:37 pm
Contact:

Re: help with set-variable for image buttons - I think

#16 Post by Kaldonis »

Oh opps sorry I misunderstood lol.
Well I copied and paste what you wrote directly into the file and when you click the button it returns to the game menu.
You don't think the problem is because at the moment I don't have other locations in the game yet do you?

If I take all the if statements out and leave it as this it works.

Code: Select all

label location_talk:
        s"this is my room"
        jump mc_bedroom

Kaldonis
Newbie
Posts: 15
Joined: Tue Dec 12, 2017 6:37 pm
Contact:

Re: help with set-variable for image buttons - I think

#17 Post by Kaldonis »

ok done some more code and added another location. I changed the default location to Mcbedroom and the button worked as intended.
So what I have narrowed this problem down to is that Renpy is not detecting the change in locations. Or will not overwrite the previous set location.
So I must be using the wrong code altogether. Any suggestions on a way to do a simple test to see if Renpy is even picking up the commands because i'm totally stumped.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot]