Hi,
when I'm using a viewport with a larger scrollable screen, how can I get and save the x and y coordinates of the viewport in a variable?
[SOLVED] How can I get the x and y coordinates of the viewport?
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.
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.
-
- Regular
- Posts: 72
- Joined: Tue Jul 11, 2017 2:13 am
- Contact:
[SOLVED] How can I get the x and y coordinates of the viewport?
Last edited by felsenstern on Sun Jun 20, 2021 6:52 am, edited 1 time in total.
---
Yes, I've Read The F*cking Manual
Yes, I've used the f*cking search function
Yes, I've used a site search
No, I don't need a reminder that search functions exist
No, I don't need your astonished outbreak that I couldn't find the information
No, I don't need your answer if you can't just give it without all the BS around it
Yes, I've Read The F*cking Manual
Yes, I've used the f*cking search function
Yes, I've used a site search
No, I don't need a reminder that search functions exist
No, I don't need your astonished outbreak that I couldn't find the information
No, I don't need your answer if you can't just give it without all the BS around it
Re: How can I get the x and y coordinates of the viewport?
If you'll make it like this - viewtopic.php?f=8&t=58441#p526802
You'll be able to get values like
You'll be able to get values like
Code: Select all
"[my_x_adj.value] / [my_y_adj.value]"
-
- Regular
- Posts: 72
- Joined: Tue Jul 11, 2017 2:13 am
- Contact:
Re: How can I get the x and y coordinates of the viewport?
sweet, thanks a lot!
---
Yes, I've Read The F*cking Manual
Yes, I've used the f*cking search function
Yes, I've used a site search
No, I don't need a reminder that search functions exist
No, I don't need your astonished outbreak that I couldn't find the information
No, I don't need your answer if you can't just give it without all the BS around it
Yes, I've Read The F*cking Manual
Yes, I've used the f*cking search function
Yes, I've used a site search
No, I don't need a reminder that search functions exist
No, I don't need your astonished outbreak that I couldn't find the information
No, I don't need your answer if you can't just give it without all the BS around it
Who is online
Users browsing this forum: No registered users