[Solved]Imagemap indentation mismatch. Delete this ;_;

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.
Post Reply
Message
Author
User avatar
raeru
Regular
Posts: 28
Joined: Fri Jun 17, 2016 7:45 am
IRC Nick: ryle
Deviantart: ryle-chan
Location: Philippines
Contact:

[Solved]Imagemap indentation mismatch. Delete this ;_;

#1 Post by raeru »

I was following the one in the cookbook for making main menu. I did exactly as it written but still gave an error but when I use the provided sample by just changing the image name of file. It's work but not in my own project file

I just started an hour ago and noobie inprogramming ;_;

Edit. Sorry, I'm just being dumb. The main problem is the image itself so yeah, sorry again ;_;
Attachments
In my project file
In my project file
Last edited by raeru on Sun Jul 03, 2016 6:26 am, edited 2 times in total.

User avatar
korova
Veteran
Posts: 217
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:

Re: Imagemap indentation mismatch

#2 Post by korova »

The word "imagemap" must be strictly aligned with the word "window", on your screenshot there is a one space gap (imagemap is one space more on the right)

indentation is very important in python and in Ren'Py too (based on python)
Renpy documentation wrote:In Ren'Py, blocks must be indented relative to the prior statement, and all of the statements in a block must be indented by the same amount.

User avatar
raeru
Regular
Posts: 28
Joined: Fri Jun 17, 2016 7:45 am
IRC Nick: ryle
Deviantart: ryle-chan
Location: Philippines
Contact:

Re: Imagemap indentation mismatch

#3 Post by raeru »

korova wrote:The word "imagemap" must be strictly aligned with the word "window", on your screenshot there is a one space gap (imagemap is one space more on the right)

indentation is very important in python and in Ren'Py too (based on python)
Renpy documentation wrote:In Ren'Py, blocks must be indented relative to the prior statement, and all of the statements in a block must be indented by the same amount.
I see, spacing is also important ei. I'll keep it in mind :3 thanks~

Post Reply

Who is online

Users browsing this forum: No registered users