RPG Maker Forums

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.
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?

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top