Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Toggle the pluggin

A topic by Rizky Fauzy Ananda created 26 days ago Views: 38 Replies: 4
Viewing posts 1 to 2

Hey, is there any way to toggle on/off the plugin by script?

Developer

Hi there!

You can use the Control Button to hide all mobile controls. Why do you want to turn the plugin on/off mid-game? Maybe I can help you better if I know the reason.

My game starts with an in-game cut scene while not having any conversation/dialog/message box, and the controls just appeared by default. I feel like I need to hide it first before we get to the tutorial passage etc.

Developer

Ok! You can try this on a script call field, to hide:

Eli.MobileControls.hideButtons()
Eli.MobileControls.controlButton.hide()

And these ones, to show:

Eli.MobileControls.showButtons()
Eli.MobileControls.controlButton.show()

Let me know if it helps you!

Thanks~! I’ll try it later.