Hidden Object Game Tutorial

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Message
Author
User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: Hidden Object Game Tutorial

#16 Post by OokamiKasumi »

SusanTheCat wrote:If I was to make a walk-through tutorial, would you prefer:

a - A video tutorial with audio comments
b - a screenshot tutorial with things written out
c - both (i.e. the screen shot tutorial being based on the video tutorial)

Please realize that B might come out sooner. :)
A screenshot tutorial is more useful because it Doesn't Move while you're trying to write code.
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

User avatar
Empish
Veteran
Posts: 221
Joined: Thu Jan 14, 2016 9:52 pm
Projects: Efemural Hearts, It Ends With Graduation
itch: empish
Contact:

Re: Hidden Object Game Tutorial

#17 Post by Empish »

This tutorial is wonderful. I seem to be having a problem with the code though. I put in my own objects and when it calls the screen it gives me the following error: subsurface rectangle outside surface area. Do you have any fix for that? The only thing I can think of is that my images are all 200x200 in size instead of the size of the whole window. Would that do it, or is it something completely other.

Also I'd love a screenshot tutorial. : D

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: Hidden Object Game Tutorial

#18 Post by OokamiKasumi »

Empish wrote:... error: subsurface rectangle outside surface area. Do you have any fix for that? The only thing I can think of is that my images are all 200x200 in size instead of the size of the whole window.
It sounds like one of your hotspot numbers is off.
-- The quickest way to fix this is by going into your Developer Menu (shift-d) then into the Image Location Picker and redoing your image-button hotspots.
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

User avatar
Empish
Veteran
Posts: 221
Joined: Thu Jan 14, 2016 9:52 pm
Projects: Efemural Hearts, It Ends With Graduation
itch: empish
Contact:

Re: Hidden Object Game Tutorial

#19 Post by Empish »

Yeah, I figured it out. It was because my images were too small. They need to be the size of the window apparently and already be positioned where they'll show up. It works now, thanks for your help.

This is still teh awesome tutorial, too. Saves me so much time.

User avatar
SusanTheCat
Miko-Class Veteran
Posts: 952
Joined: Mon Dec 13, 2010 9:30 am
Location: New Brunswick, Canada
Contact:

Re: Hidden Object Game Tutorial

#20 Post by SusanTheCat »

I'm glad you figured it out.
" It's not at all important to get it right the first time. It's vitally important to get it right the last time. "
— Andrew Hunt and David Thomas

User avatar
SweetChiel
Miko-Class Veteran
Posts: 774
Joined: Wed Jul 02, 2014 8:53 am
Completed: Nusantara: Legend of the Winged Ones
Deviantart: SweetChiel
Skype: Cecilia Susanto
Location: Indonesia
Contact:

Re: Hidden Object Game Tutorial

#21 Post by SweetChiel »

Is it possible to input a timer where the user will be forced to jump to a 'fail' scene label? o.o
I really want to implement this into my next project

User avatar
Kokoro Hane
Eileen-Class Veteran
Posts: 1237
Joined: Thu Oct 27, 2011 6:51 pm
Completed: 30 Kilowatt Hours Left, The Only One Girl { First Quarter }, An Encounter ~In The Rain~, A Piece of Sweetness, Since When Did I Have a Combat Butler?!, Piece by Piece, +many more
Projects: Fateful Encounter, Operation: Magic Hero
Organization: Tofu Sheets Visual
Deviantart: kokoro-hane
itch: tofu-sheets-visual
Contact:

Re: Hidden Object Game Tutorial

#22 Post by Kokoro Hane »

EDIT: Nevermind, figured it out! Also running the code in Version 7 for some reason fixed the placement problem lol

I was building a test project with the H2O version of the code, and something isn't working.

I was following the code to the letter, but all my random items end up on top for some reason, like this;
screenshot0014.png
The images are supposed to line up like this;
room_all.png
I noticed when running the tutorial game for it, the same exact thing happens. Does anyone know a way to fix that? I'm using version 6.99.11 on the Legacy Theme, I have also tried it on 6.18.3, both yield the same issue. I am not sure if it needs an older version of Ren'Py (which I would not mind), or if there's simply something I am missing.

Also, is there a way to make a vertical list? I'd like a list on the side of the screen, listed downward, rather than at the bottom horizontel.
PROJECTS:
Operation: Magic Hero [WiP]
Piece By Piece [COMPLETE][Spooktober VN '20]
RE/COUNT RE:VERSE [COMPLETE][RPG]
Since When Did I Have a Combat Butler?! [COMPLETE][NaNoRenO2020+]
Crystal Captor: Memory Chronicle Finale [COMPLETE][RPG][#1 in So Bad It's Good jam '17]

But dear God, You're the only North Star I would follow this far
Owl City "Galaxies"

Post Reply

Who is online

Users browsing this forum: No registered users