How does buttons actions work on mobile device [SOLVED]

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
Luxliev
Veteran
Posts: 242
Joined: Sat Feb 07, 2015 11:01 am
Soundcloud: Luxliev
Contact:

How does buttons actions work on mobile device [SOLVED]

#1 Post by Luxliev »

As in subject. How does buttons actions work on mobile android and ios device?
action is touch?
alternate is long touch?
What about hovered and other options?
Is there some tutorial that shows what is different between pc, android, ios, mac versions?
Last edited by Luxliev on Mon Aug 14, 2017 1:50 am, edited 1 time in total.
Newest classical cover: Advance Wars - Sami Theme: https://www.youtube.com/watch?v=657Jt7hJRVc

Forum with my music: http://luxliev.proboards.com/

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: How does buttons actions work on mobile device

#2 Post by Imperf3kt »

There is no alternate. You only have touch and drag abilities.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: How does buttons actions work on mobile device

#3 Post by PyTom »

That's not true. Alternate is long press.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: How does buttons actions work on mobile device

#4 Post by Imperf3kt »

Must be a really long press because on my mobile alternate doeen't do anything because the first 'press' action instantly takes effect.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

sandpie
Newbie
Posts: 18
Joined: Tue Apr 25, 2023 1:43 pm
Contact:

Re: How does buttons actions work on mobile device [SOLVED]

#5 Post by sandpie »

Hi I am sorry to resurrect this post: did someone manage to make alternate(longpress) work on mobile?
I tried placing several values in setting config.longpress_duration and config.longpress_radius but those seem to have no effect.
I defined those in options.rpy so I presume that those should be taken into account by renpy.

It's not that longpress doesn't work at all, it seems just really difficult to trigger because fingers are not as steady as a mouse pointer: longpress always works using a mouse on mobile, doing the longpress through the left button, and sometimes it even works using a finger, but the chance to trigger it is so low that it's not something that can be used in the real world.

Even "clicked" is difficult to trigger on mobile because you need to be super fast (fast as a mouse click :) )
any advice? I am still on Renpy 7 though because I need html5 export too

Post Reply

Who is online

Users browsing this forum: No registered users