How can you interact with objects when touching or near them?

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
MilywayObree
Newbie
Posts: 17
Joined: Sun Jan 28, 2018 11:24 am
Completed: None so far, pending to be exact
Projects: DDLC, The notebook and other secret projects
Organization: Vocastin/Oriaa Pro-Creations
Deviantart: MexicoRPelino
Github: HizashiroTakahashi
Skype: PixelMINEGaming
Location: Philippines
Contact:

How can you interact with objects when touching or near them?

#1 Post by MilywayObree »

I have been figuring this out for a while but I can't seem to find a better solution..
Can anyone help me with this? :(
Just Monika.

K0torisan
Regular
Posts: 26
Joined: Fri Feb 16, 2018 10:21 pm
Contact:

Re: How can you interact with objects when touching or near them?

#2 Post by K0torisan »

Are you talking about objects on an image?

There is a "hover" state that you use to show the player that their cursor is near a clickable object or button. Here is a really great tutorial that shows how hover states work with menus.
And here is a tutorial on making clickable objects on an image.

User avatar
MilywayObree
Newbie
Posts: 17
Joined: Sun Jan 28, 2018 11:24 am
Completed: None so far, pending to be exact
Projects: DDLC, The notebook and other secret projects
Organization: Vocastin/Oriaa Pro-Creations
Deviantart: MexicoRPelino
Github: HizashiroTakahashi
Skype: PixelMINEGaming
Location: Philippines
Contact:

Re: How can you interact with objects when touching or near them?

#3 Post by MilywayObree »

what i mean is that i have this code where the player can move around with a sprite like those retro games like undertale..
what i want is when the sprite walks into an object and touches it and when the player presses a certain key something happens or a screen pops up.
Just Monika.

User avatar
Pomeranian
Regular
Posts: 33
Joined: Wed Oct 12, 2016 6:52 pm
Contact:

Re: How can you interact with objects when touching or near them?

#4 Post by Pomeranian »

Sounds like you're looking for the overworld engine:
viewtopic.php?f=51&t=29964

Post Reply

Who is online

Users browsing this forum: Bing [Bot]