Android specific features possible on Ren'py?

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
Mari_em0
Newbie
Posts: 3
Joined: Wed Oct 30, 2019 7:18 am
Contact:

Android specific features possible on Ren'py?

#1 Post by Mari_em0 » Wed Oct 30, 2019 7:39 am

Since I'm new and planning on making a vn for mobile specifically. I was wondering if the following would be possible to accomplish, using the engine and ofcourse a good amount of python know-how.

1. Notifications.
You know the kind that tells you to come back to the app because xy reason. Triggered by real time that is pre-coded into the game?

2. Vibration.
Like, let's say- vpunch or hpunch (if I remember these correctly) would also have the device vibrate from the supposed impact.

3. Sensors. I'm not that big on camera features, because what's the point in a vn, but sensors- Like AR
I know that is advance stuff as it is, but is it possible to use AR motion sensors to make sort of a large parallax (if I'm understanding parallax properly, may have not...) that exceeds just minor shifts to make it like a whole 360° view of a place?, using the phone sensors with no touch.
Like how the new Wizarding World app has it for selecting the pet you would have? I mean is it possible?
(An example of what I'm talking about)

https://youtu.be/cOg-zPZlFoc

And simply is a sensor kind of parallax possible, if the more heavy advanced looking AR isn't?

Thank you all in advance!
Hope you all have a great day!

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

Re: Android specific features possible on Ren'py?

#2 Post by Imperf3kt » Wed Oct 30, 2019 2:42 pm

1 and 3, no. You might be able to do notifications by editing the APK file in Android studio. I've never tried.

2 is possible, in your script use $ renpy.vibrate(#) where the # is the duration in seconds.
https://www.renpy.org/doc/html/other.html#renpy.vibrate
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Todo list:
Actually finish a project

Mari_em0
Newbie
Posts: 3
Joined: Wed Oct 30, 2019 7:18 am
Contact:

Re: Android specific features possible on Ren'py?

#3 Post by Mari_em0 » Thu Oct 31, 2019 7:37 am

Imperf3kt wrote:
Wed Oct 30, 2019 2:42 pm
1 and 3, no. You might be able to do notifications by editing the APK file in Android studio. I've never tried.

2 is possible, in your script use $ renpy.vibrate(#) where the # is the duration in seconds.
https://www.renpy.org/doc/html/other.html#renpy.vibrate
Thank you for the link and the reply! Just needed an idea on the type of vn I can make.

Also, (I forgot to ask this) what about swiping?

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

Re: Android specific features possible on Ren'py?

#4 Post by Imperf3kt » Thu Oct 31, 2019 4:22 pm

Gestures are also possible.
The documentation is a little vague on how to use them, so if you require specific help, just ask.

https://www.renpy.org/doc/html/gesture.html
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Todo list:
Actually finish a project

Mari_em0
Newbie
Posts: 3
Joined: Wed Oct 30, 2019 7:18 am
Contact:

Re: Android specific features possible on Ren'py?

#5 Post by Mari_em0 » Fri Nov 01, 2019 10:53 pm

Imperf3kt wrote:
Thu Oct 31, 2019 4:22 pm
Gestures are also possible.
The documentation is a little vague on how to use them, so if you require specific help, just ask.

https://www.renpy.org/doc/html/gesture.html
Thank you so much for your help! And I will!

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

Re: Android specific features possible on Ren'py?

#6 Post by Imperf3kt » Wed Nov 13, 2019 10:22 pm

Just coming back to report that I was mistaken about notifications, there is actually a way to include them.
This excellent post by storykween describes the whole process.

viewtopic.php?f=51&t=46091
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Todo list:
Actually finish a project

User avatar
isobellesophia
Miko-Class Veteran
Posts: 701
Joined: Mon Jan 07, 2019 2:55 am
Projects: Maddox's Everyday Talk! (13+ Unreal version), Maddox Everyday Talk! (3+ Real-Friendly version)(Upcoming 2020)
Organization: Friendly Teachers series
itch: .......
Location: Philippines, Mindanao
Contact:

Re: Android specific features possible on Ren'py?

#7 Post by isobellesophia » Wed Nov 13, 2019 11:37 pm

I cant belieave it you did really shared the same thing i shared 0_0
I am a friendly user, please respect and have a good day..


Working on a talking simulation game for everyone, except children.

Maddox Everyday Talk!
Is my very very main project, not contain 13 below.

Main project here viewtopic.php?f=43&t=56564
Image

Post Reply

Who is online

Users browsing this forum: IaMe, Majestic-12 [Bot]