How to create image button with information

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
cdstar99
Regular
Posts: 25
Joined: Fri Aug 18, 2017 10:58 am
Contact:

How to create image button with information

#1 Post by cdstar99 » Thu Dec 12, 2019 7:21 pm

With my imagebuttons wich I use with the screen function I want to navigate (jump) to other labels and it works fine.
But how I can set even values/informations, so I can bring this information to a button like this
$ used_steps = 3
?

This was my try but I doesent work.
imagebutton idle "curser01" ($ alternative_position = nothing) action Jump("timecontroll") yalign 0.31 xalign 0.08
$ renpy.block_rollback()

What way should be good to solve this problem?
In my imagebutton I want to use jump and set information all at one.

Thank you

User avatar
Per K Grok
Miko-Class Veteran
Posts: 673
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1
Projects: Defenders of Adacan Part 2
itch: per-k-grok
Location: Sverige
Contact:

Re: How to create image button with information

#2 Post by Per K Grok » Fri Dec 13, 2019 1:48 am

cdstar99 wrote:
Thu Dec 12, 2019 7:21 pm
With my imagebuttons wich I use with the screen function I want to navigate (jump) to other labels and it works fine.
But how I can set even values/informations, so I can bring this information to a button like this
$ used_steps = 3
?

This was my try but I doesent work.
imagebutton idle "curser01" ($ alternative_position = nothing) action Jump("timecontroll") yalign 0.31 xalign 0.08
$ renpy.block_rollback()

What way should be good to solve this problem?
In my imagebutton I want to use jump and set information all at one.

Thank you


imagebutton idle "curser01" action [ SetVariable(" alternative_position", nothing), Jump("timecontroll")] yalign 0.31 xalign 0.08

Post Reply

Who is online

Users browsing this forum: Google [Bot]