NPC Doesn't Show Up During Cutscene

StrawberryFlower

The Talking Fruit
Veteran
Joined
Nov 23, 2012
Messages
1,905
Reaction score
707
First Language
English
Primarily Uses
RMMZ
The basic setup is - the party just enters the sewers when a monkey is supposed to jump to a certain area, steal an item, and runs off. Unfortunately, the monkey never appears. Everything works perfectly up until this point.

EventSetup.png
He's simply off-screen and is supposed to jump according to the arrow. Here is the cutscene event:
MainEventPt1.png
MainEventPt2.png

MainEventPt3.png

MainEventPt4.png
And here is the monkey's event page:
MonkeyEvent.png

Thanks for any help!
 

Iron_Brew

Veteran
Veteran
Joined
Nov 19, 2021
Messages
655
Reaction score
1,864
First Language
English
Primarily Uses
RMMV
What is on the monkey's second event page?

Might be making him transparent etc if you've activated it too early
 

StrawberryFlower

The Talking Fruit
Veteran
Joined
Nov 23, 2012
Messages
1,905
Reaction score
707
First Language
English
Primarily Uses
RMMZ
Nothing, except a variable for when the cutscene is over.

MonkeyEventPg2.png
 

StrawberryFlower

The Talking Fruit
Veteran
Joined
Nov 23, 2012
Messages
1,905
Reaction score
707
First Language
English
Primarily Uses
RMMZ
I totally forgot the variables for showing the party members and the monkey was different. XD

Thanks!!
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
6,947
Reaction score
4,789
First Language
English
Primarily Uses
RMMV
There's your problem. Variables initialise at 0
Just as a quick note, technically the variables don't initialize.

They start as an array of undefined data - if you look at it using anything that utilizes the inherent $gameVariables.value() method, that will return 0 if that variable is still undefined, but it remains undefined until you assign it a value.

I don't mean to be picky, but it can make a difference if you access the variable directly or if you look at it using a damage formula or any plugin code that works the same way. An unused game variable in that case will return undefined, not 0.

So it's always best practice to actually initialize any variable you intend to check later on in the game.
 

Latest Threads

Latest Posts

Latest Profile Posts

Now that I have linklists on large trees and cars, is there any theme that would interest you?
Debugging multiplayer issues... I'm having fun, right?
yay_streaming.jpg

For just starting streaming on the 10th... Definitely not the worst. :LZScheeze:

Granted I need 333.34 hours a month on average to achieve money. So I don't really expect that, but it sure has helped my game dev go much faster.
Proud on how this map turned out.

FnmhDLIXgAAOvIC
I just finally fixed a huge problem that wouldn’t let my game load and would crash it.. I thought that I was gonna have to trash the project and start over lol

Forum statistics

Threads
128,328
Messages
1,193,648
Members
168,813
Latest member
jasper1hu
Top