[solved]How to show on the game screen where the player(or scene) is located?

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
nagataaaas_
Newbie
Posts: 2
Joined: Sat Dec 28, 2019 2:21 pm
Github: Delta114514
Contact:

[solved]How to show on the game screen where the player(or scene) is located?

#1 Post by nagataaaas_ »

I want to show the current location on game screen like this(https://lohas.nicoseiga.jp/thumb/2393610i).

There is "学園・廊下"(school / hallway) on upper right of the screen, and this means where the scene is located.
I couldn't find any document to implement this.

showing image file that like screenshot of location name or something is thinkable. But I think there maybe better ways.

Thank you.
Last edited by nagataaaas_ on Sun Dec 29, 2019 2:44 am, edited 1 time in total.

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: How to show on the game screen where the player(or scene) is located?

#2 Post by Per K Grok »

nagataaaas_ wrote: Sat Dec 28, 2019 2:33 pm I want to show the current location on game screen like this(https://lohas.nicoseiga.jp/thumb/2393610i).

There is "学園・廊下"(school / hallway) on upper right of the screen, and this means where the scene is located.
I couldn't find any document to implement this.

showing image file that like screenshot of location name or something is thinkable. But I think there maybe better ways.

Thank you.
There are a couple of ways to do this.

You could make an image from text like this.

Code: Select all

image School = Text("{color=#f00}学園・廊下{/color}", size=35)
and show the image at the spot you want.

Or you could make a screen to show the text.

Code: Select all


screen schooltext():
    text "廊下" pos (1000,10)
And use
show screen schooltext
to show it

or you could do

Code: Select all

show text "廊下" at topright


nagataaaas_
Newbie
Posts: 2
Joined: Sat Dec 28, 2019 2:21 pm
Github: Delta114514
Contact:

Re: How to show on the game screen where the player(or scene) is located?

#3 Post by nagataaaas_ »

>> Per K Grok
Thank you for giving me smart solutions!

Post Reply

Who is online

Users browsing this forum: No registered users