Is there any problem with player.createDynamicEvent() in scenario mode, when created event is show on map but is not detected.
const event = player.createDynamicEvent({
x: 400,
y: 300,
event: DynamicEvent
})
@EventData({
name: 'Dynamic',
mode: EventMode.Scenario,
hitbox: {
width: 32,
height: 16
},
width: 32,
height: 16
})
export default class DynamicEvent extends RpgEvent {
onInit() {
this.setGraphic('hero');
this.attachShape({
height: 32,
width: 16,
positioning: ShapePositioning.Center
})
}