This in renpy possible?

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.
Message
Author
User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

This in renpy possible?

#1 Post by Andredron »



Without pressing the screen
Last edited by Andredron on Wed Sep 14, 2022 8:53 am, edited 2 times in total.

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: And this in renpy possible?

#2 Post by Remix »

e "..."
pause 1.5
show my_image

?
Frameworks & Scriptlets:

User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: And this in renpy possible?

#3 Post by Andredron »

Remix wrote: Tue Oct 23, 2018 5:16 am e "..."
pause 1.5
show my_image

?
No, paralaks without pressing the screen

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: And this in renpy possible?

#4 Post by Remix »

Please explain fully what you mean...

An image that appears 2 days 6 hours after starting?
One that appears if you do not hit any key/mouse for 2 hours?
One that appears 9 hours after reading a line?

What do you want?
Frameworks & Scriptlets:

User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: And this in renpy possible?

#5 Post by Andredron »

Remix wrote: Tue Oct 23, 2018 8:19 am Please explain fully what you mean...

An image that appears 2 days 6 hours after starting?
One that appears if you do not hit any key/mouse for 2 hours?
One that appears 9 hours after reading a line?

What do you want?
I want to learn pygame, or Python 2.7, in Android when you rotate the screen the phone worked parralax, as shown in the animation.

User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: And this in renpy possible?

#6 Post by Andredron »

viewtopic.php?f=51&t=47482

here is an example of parallax with the mouse

User avatar
Kinmoku
Miko-Class Veteran
Posts: 591
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: VIDEOVERSE
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Re: And this in renpy possible?

#7 Post by Kinmoku »

That looks super cool :) I wish Ren'Py could do that, but I don't think it's possible without touching the screen.

Have a look into the 3D camera though. You can find some information here: viewtopic.php?t=29778

User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: And this in renpy possible?

#8 Post by Andredron »

Kinmoku wrote: Tue Oct 23, 2018 8:33 am That looks super cool :) I wish Ren'Py could do that, but I don't think it's possible without touching the screen.

Have a look into the 3D camera though. You can find some information here: viewtopic.php?t=29778
I studied that project, Yes it is interesting, but I need a code that would be able to recognize the phone in what position lies, in pygame and phyton documentation, I unfortunately could not find the information

User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: This in renpy possible?

#9 Post by Andredron »

https://github.com/kivy/python-for-android

there's a project

https://github.com/kivy/kivy/blob/maste ... oplayer.py

I saw the code to create a video player on a Python in Android... but repay not support module kivy, despite the effort to port it
Last edited by Andredron on Tue Oct 23, 2018 9:01 am, edited 3 times in total.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: This in renpy possible?

#10 Post by trooper6 »

Searching the forums for the word "parallax" would yield a few results. For example:
viewtopic.php?t=47482
viewtopic.php?t=42368
viewtopic.php?t=23438
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: This in renpy possible?

#11 Post by Alex »

Looks like the problem is in recognizing the phone movement, like you swing it back and forth and this cause the parallax motion in game.

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

Re: This in renpy possible?

#12 Post by Imperf3kt »

You'll probably have to ask PyTom if Ren'Py can access a phone's location, proximity and GPS sensors, which right now it doesn't and without those, you can't do what you want.
Probably help if you can use an accelerometer and orientation sensor as well.
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
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: This in renpy possible?

#13 Post by Remix »

If you have Pyjinus running ok, you could leverage the full suite of actions through Kivy's Plyer (MIT licence) module... Compass and Accelerometer are among the many supported facades on Android

https://github.com/kivy/plyer/blob/mast ... ntation.py

Might be best though
Frameworks & Scriptlets:

User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: This in renpy possible?

#14 Post by Andredron »

Remix wrote: Tue Oct 23, 2018 3:02 pm If you have Pyjinus running ok, you could leverage the full suite of actions through Kivy's Plyer (MIT licence) module... Compass and Accelerometer are among the many supported facades on Android

https://github.com/kivy/plyer/blob/mast ... ntation.py

Might be best though
thanks, this is what I was looking for

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: This in renpy possible?

#15 Post by Remix »

Andredron wrote: Wed Oct 24, 2018 6:47 am
thanks, this is what I was looking for
If possible, please let us know how you get on. :)

I (and I'm sure many others) would certainly be interested to learn how easy (or difficult) it was to integrate those sensors into a game mechanic.
Frameworks & Scriptlets:

Post Reply

Who is online

Users browsing this forum: No registered users