Android's back key - ingame function

Azgraal

Veteran
Veteran
Joined
Jan 31, 2016
Messages
15
Reaction score
1
First Language
Portuguese
Primarily Uses
Greetings.

I've been working on my first somewhat serious project on RMMV and after toying around a bit with the game on my phone I realised it could be really useful if I could use the physical back key of my phone for any function ingame.


Currently I have it so it doesn't force exit the game, but that's as far as my faint JS knowledge allowed me.

Is there any way to bind the android back key to the 'escape' object from the Input function on rpg_core.js?

Thanks a bunch.
 
Last edited by a moderator:

Ultimatony

Veteran
Veteran
Joined
Jan 6, 2016
Messages
72
Reaction score
6
Not all android phones have a physical back button on the phone, on mine its part of the screen. It hides itself whenever I do something full screen. It would make it harder to play your game on phones like that, unless you can make it stay up.
 

Azgraal

Veteran
Veteran
Joined
Jan 31, 2016
Messages
15
Reaction score
1
First Language
Portuguese
Primarily Uses
Oh yeah, I totally forgot about that, as all the android phones I have available have the physical key. I guess deactivating the key or adding a confirmation query will have to do then...

Thanks for the headsup!
 

Warped_Tales

Veteran
Veteran
Joined
Sep 17, 2016
Messages
47
Reaction score
64
First Language
English
Primarily Uses
N/A
Azgraal: How did you accomplish getting the back key not to force quit? I've been struggling with this for hours. 


Thanks in advance!


Nevermind - I got there in the end :p
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,015
Members
137,563
Latest member
MinyakaAeon
Top