Hello,
Use
scene-map.ts
import { type RpgSceneMapHooks, RpgSceneMap, Control } from '@rpgjs/client'
const sceneMap: RpgSceneMapHooks = {
onAfterLoading(scene: RpgSceneMap) {
scene.on('click', () => {
scene.controls.applyControl(Control.Action)
})
}
}
export default sceneMap
to apply an action to the click on the scene. In the configuration, it only concerns the keyboard
Preview