Hey guys I started eventing recently in JS and everything went smooth for a while and then I reached this problem while trying to
create an event via Plugin.
so everything is fine until here...
the event creates but it is invisible
now i looked up this thread here https://rpgmakermv.co/threads/how-to-add-an-event-using-js-dynamically.3578/
and it gave me some insight
I could not make the event show up with the first method(it shows up only briefly like a ghost and then vanishes)
But the second one blew my mind away.
Why is it that when i call something like:
console.log(SceneManager._scene.children) (it presents me with an array containing what i need and what I would like to use)
but then if i call console.log(SceneManager._scene.children[0])//element which EXISTS(i get something undefined)
Why is this happening and how can I make my event visible?
create an event via Plugin.
Code:
function create_event(ID,NAME,X,Y) {
var e=(a jason like u find in the map files)
$dataMap.events[ID] = e;
$gameMap._events[ID] = new Game_Event($gameMap._mapId, ID);
/*
}
so everything is fine until here...
the event creates but it is invisible
now i looked up this thread here https://rpgmakermv.co/threads/how-to-add-an-event-using-js-dynamically.3578/
and it gave me some insight
I could not make the event show up with the first method(it shows up only briefly like a ghost and then vanishes)
But the second one blew my mind away.
Why is it that when i call something like:
console.log(SceneManager._scene.children) (it presents me with an array containing what i need and what I would like to use)
but then if i call console.log(SceneManager._scene.children[0])//element which EXISTS(i get something undefined)
Why is this happening and how can I make my event visible?