Skull Kingz
Active member
I'm not sure if I'm having a phone error or what, but I'm trying to rearrange the button configuration on the Android port and I'm having no luck at all. Any advice? The way my game is set up just doesn't feel comfortable.
@Skull Kingz Are you trying to change the touch button layout? If yes, it's not possible through the controller config. menu (but the menu works for usb/bluetooth controllers), instead you need to edit it manually placing the "touch.txt" file inside the "saves" folder of your OpenBOR installation and then adding the code below.I'm not sure if I'm having a phone error or what, but I'm trying to rearrange the button configuration on the Android port and I'm having no luck at all. Any advice? The way my game is set up just doesn't feel comfortable.
// BUTTON X Y SIZE SECTION
button moveleft 0.14 0.25 0.09 3
button moveright 0.36 0.25 0.09 3
button moveup 0.25 0.36 0.09 3
button movedown 0.25 0.14 0.09 3
button special 0.38 0.10 0.07 2
button attack 0.24 0.24 0.07 2
button jump 0.10 0.10 0.07 2
button attack2 0.52 0.24 0.07 2
button attack3 0.38 0.38 0.07 2
button attack4 0.10 0.38 0.07 2
button esc 0.00 -0.99 0.07 0
button start 0.12 0.69 0.07 2
button screenshot 0.12 0.69 0.07 3
folder will most probably supercede/override any touch.txt file outsidethe only thing that has been missing for a while is the method to replace the button graphics in order to have , say yellow buttons, custom button names , etc..

External saves touch.txt overrides the data folder version, this is how I change the layout/texture in the SORX. A filestream script exports a new txt file every time you change the layout through the menu.(or is it the other way around? a touch file on the saves folder overrides the one inside the PAK?)
These red arrows are just an illustration to show the combo keys. I posted this image to show an example of how SORX is using a custom graphic for the touch buttons.@Kratus what are those red arrows ?
is this template able to make those red arrows touchable or are the red arrows the place where you add other button info in your buttons .txt ?
surface {path}
- You can define your button's appearance using this. The path is relative to the OpenBOR folder path. If you plan to include it to your mod, you should point your touch.txt to point at the data folder. Example:
surface data\yourbutton.png- The button should be in PNG and you need to follow the button template included in the tutorial zip.
is there any way to adjust the transparency of the buttons?
Like bWWd said, it's only accessible directly in the source code but I can check the possibility of adding it in the engine through a native function in the v4.0.Another question about the buttons, was there ever an option for a second texture for when buttons are active?