PatternY

Gyldstrand

Veteran
Veteran
Joined
Oct 16, 2014
Messages
76
Reaction score
4
I have been messing with...

Sprite_Character.prototype.characterPatternY

...and I got it set up so it will change based on my players direction but it also applies to all the events. I can't yet figure out how to make make it apply a value to the player and a separate value to the events.  I would like to know if its possible, how to do it and if i have to move some update functions around and where. 
 
Last edited by a moderator:

Sarkilas

Villager
Member
Joined
Jun 8, 2014
Messages
16
Reaction score
7
First Language
Norwegian
You can do this fairly simply. I'm sure there are better ways, but within any function member of Sprite_Character, you can check if the character for this sprite is the player or not with the following snippet:

Code:
if(this._character instanceof Game_Player) {  // do something for the player} else if(this._character instanceof Game_Follower) {  // do something else for followers} else {  // do something else for events}
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

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.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,017
Messages
1,018,356
Members
137,802
Latest member
rencarbali
Top