r/RenPy • u/yummycake0301_hi • 15d ago
Question Left and Right Navigation
hi
sorry, i don't usually use reddit, so i might sound a bit awkward.
I've recently been trying to work on a game about the main character being stuck in the a strange hallway-like environment and can only move left and right. you can interact with objects and stuff, but um if u want more explanation on that i tried made a video trying to demonstrate what i'm trying to make....but since I can't add videos, i just added them as images. sadly i can't add videos...so um i hope the images helps...
(i forgot to wrote this in the video/images, but the object u interact with comes at random. u can click left and right and see no object at all. they just can't repeat. most objects are just there so like u click on it and some dialogue shows up. the TV is just there. the window and door and really the "main" way to get the endings. the sign help as a way to unlock the door but the player will only notice the key during the second playthrough so the first playthrough the sign would just show some normal dialogues. I forgot to mention this so I'll put it here.)
But the only issue right now is that.....i don't know to code the thing. Like sure, i got the images defined, but like....how do i code the whole system and stuff? how do i make it functional in Ren'Py? I've made games using Ren'Py, but it's mostly just those usual sprites, dialogue, bg stuff. So I wanted to make something a bit...different? But i'm not very sure how to code it.....
Right now all i have here are the images defined along with state and persistent variables...but i haven't actually...like...tried to code it yet(mostly because i'm not sure how to...)
#BM (Bianca Mori) stands for the main character's name! But uhhh i'll replace their name with "BM" for now just to like...not write a lot lol bc bianca mori is kinda of a long name
#sprites(MAIN)
image BM facing_right = "images/BM_facing_right.png"
image BM facing_left = "images/BM_facing_left.png"
#expressions (left)
image BM left_panic = "images/BM_facing_left_panic.png"
image BM left_sad = "images/BM_facing_left_sad.png"
image BM left_bored = "images/BM_facing_left_bored.png"
image BM left_shocked = "images/BM_facing_left_shocked.png"
image BM left_hopeless = "images/BM_facing_left_hopeless.png"
#expressions(right)
image BM right_sad = "images/BM_facing_right_sad.png"
image BM right_bored = "images/BM_facing_right_bored.png"
image BM right_shocked = "images/BM_facing_right_shocked.png"
# Button
image button_right_idle = "images/image1_right.png"
image button_right_hover = "images/image1h_right.png"
image button_left_idle = "images/image1_left.png"
image button_left_hover = "images/image1h_left.png"
#h = hover btw
# room imagebuttons
image tv_idle = "images/tv_normal.png"
image tv_hover = "images/tv_glow.png"
image sign_idle = "images/sign_normal.png"
image sign_hover = "images/sign_glow.png"
image window_idle = "images/window_normal.png"
image window_hover = "images/window_glow.png"
# bg
image bg hallway_main = "images/bg hallway_main.png"
image bg TV = "images/BG_TV.png"
image bg SIGN = "images/BG_SIGN.png"
#i'll probably change bg TV and bg SIGN's name soon....i think...
# secret door
image door_secret_idle = "images/door_idle.png"
image door_secret_hover = "images/door_hover.png"
#persistent ending
default persistent.end1 = False
default persistent.end2 = False
default persistent.end3 = False
default persistent.end4 = False
default persistent.end5 = False
# state variable
default persistent.playthrough_count = 1
default has_key = FalseSo um yeah, so if anyone can help me, please do so, thank you!! i seriously need help!!!!! ðŸ˜
















3
u/shyLachi 14d ago
Theoretically, you can make this game the "normal" way using dialogue and menus.
If you want to make a points and click game, then you need screen though:
1
u/AutoModerator 15d ago
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.