Null action help

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
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Null action help

#1 Post by isobellesophia »

Hello,

how am i supposed to add a NullAction in this?
If i review the gallery, i want it to NOT view the image in full, instead, i want it to be like this.
screenshot0002.png
I want to put a NullAction, but if i put that, it keeps having me a child error..

Can somebody help me how?

Thanks.
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
arty
Regular
Posts: 120
Joined: Sat Jan 06, 2018 11:55 am
Completed: White Monday
Projects: HATE is a 4 Letter Word
Organization: KATHARSIS ART
itch: artys-games
Contact:

Re: Null action help

#2 Post by arty »

What gallery code are you using?

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Null action help

#3 Post by isobellesophia »

arty wrote: Thu Aug 22, 2019 8:40 am What gallery code are you using?

Code: Select all

screen imagegallery():
    tag menu
    use exgame_menu(scroll="viewport"):
        grid 3 3:
            style_prefix "gslot"
            xalign 0.5
            yalign 0.5
            spacing gui.slot_spacing
            add g.make_button("cg_gallery02","images/placeholder.png")
            add g.make_button("cg_gallery03","images/placeholder.png")
            add g.make_button("cg_gallery04","images/placeholder.png")
            add g.make_button("cg_gallery05","images/placeholder.png")
            add g.make_button("cg_gallery06","images/placeholder.png")
            add g.make_button("cg_gallery07","images/placeholder.png")
            add g.make_button("cg_gallery08","images/placeholder.png")
            add g.make_button("cg_gallery09","images/placeholder.png")
            add g.make_button("cg_gallery10","images/placeholder.png")

style gslot:
    xsize 256
    ysize 144
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
arty
Regular
Posts: 120
Joined: Sat Jan 06, 2018 11:55 am
Completed: White Monday
Projects: HATE is a 4 Letter Word
Organization: KATHARSIS ART
itch: artys-games
Contact:

Re: Null action help

#4 Post by arty »

Why not just put cropped images in place of the "images/placeholder.png" graphics then?

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Null action help

#5 Post by isobellesophia »

arty wrote: Thu Aug 22, 2019 8:45 am Why not just put cropped images in place of the "images/placeholder.png" graphics then?
Well.. i dont know how, could you gave me a example?

I dont know anything about cropping so..
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
arty
Regular
Posts: 120
Joined: Sat Jan 06, 2018 11:55 am
Completed: White Monday
Projects: HATE is a 4 Letter Word
Organization: KATHARSIS ART
itch: artys-games
Contact:

Re: Null action help

#6 Post by arty »

Basically what I would do is take the image processing program of your choice (for example GIMP, which is free) and cut the images as desired. Then save them to your folder and put the path in the make_button lines.
Alternatively, you could try Ren'Py code cropping: https://www.renpy.org/doc/html/displayables.html#Crop ...but I haven't tried that yet.

Post Reply

Who is online

Users browsing this forum: voluorem