Absolutes for Tags?

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
Johny_Bobman
Newbie
Posts: 3
Joined: Thu Oct 10, 2019 4:33 pm
Contact:

Absolutes for Tags?

#1 Post by Johny_Bobman »

How do you make images with the tag "tc" always be positioned at truecenter? (i.e. tc fire, tc sky, tc tree will always be positioned at truecenter)

User avatar
pyPat
Regular
Posts: 30
Joined: Wed Sep 11, 2019 5:34 pm
Github: patlol
Location: France
Contact:

Re: Absolutes for Tags?

#2 Post by pyPat »

I don't know if I understood your request correctly.
But in order that an image is always positioned in the same way, we can write:

Code: Select all

image jparle_tc:
    Solid('505a', xysize=(320, 240)),
    truecenter
image pierre_tc:
    "images/pierre2 mad side.png",
    truecenter
image pierre = "images/pierre2 mad side.png"
 
label start:   
     show jparle_tc
     show pierre_tc
     show pierre at left
edit:
If you talk about image name called "image tag".

Code: Select all

image tc pierre:
    "images/pierre2 mad side.png",
    truecenter

label start:   
     show tc pierre
English is not my native language; please excuse typing errors.

Post Reply

Who is online

Users browsing this forum: Google [Bot]