[SOLVED] GALV_BasicEventShadows.js: Sprite_BasicShadow

Status
Not open for further replies.

aporokizzu

anti-kumbaya
Veteran
Joined
Jan 14, 2020
Messages
59
Reaction score
89
First Language
english
Primarily Uses
RMMV
Greetings, Boils and Ghouls!

I am trying to amend the following function from the GALV_BasicEventShadows.js plugin:
carbon.png

I created another JS file- dismal_GALV_BasicEventShadows_Extended.js- which I have placed below aforementioned plugin in the Plugin Manager window):
Plugin_Manager_window.PNG

And within it, is the following alias:
carbon (1).png

However, when I playtest my project, I get the following error:
console_window.PNG

I was wondering if anybody could tell me what I am doing wrong?

Thanks in advance for whatever advice you can give me.
 

aporokizzu

anti-kumbaya
Veteran
Joined
Jan 14, 2020
Messages
59
Reaction score
89
First Language
english
Primarily Uses
RMMV
After mulling over it, I found out what the problem was-

Sprite_BasicShadow is a custom class created within GALV_BasicEventShadows.js 's Immediately Invoked Function Expression (IIFE) or Self Executing Anonymous Function ("(function(){})()").

So it's scope is limited to that and cannot be accessed outside of it.

Luckily, per Galv:
galv_terms_of_use.PNG

So all that I needed to do was copy the relevant code and paste it outside of the IIFE (after the "})()" part of the plugin).

galv_shadow_code.PNG
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,682
First Language
English
Primarily Uses
RMMZ

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top