• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Character shadows

Skystrike

[i]As old as time itself.[/i]
1,641
Posts
15
Years
  • This (very basic) script will put shadows under your characters. This includes shadows disappearing when in tall grass, and shadows staying under the character when jumping.

    This script by all means could possibly be cleaner and can be definitely improved, but I was thinking of not releasing it.


    Installation

    Replace your Spriteset_Map script with this:
    Spoiler:


    And that's all you need!

    Bugs


    • If a character is consistently jumping, and the player moves while its in view, the shadow will slide out of place for a few seconds and then adjust itself. Nothing major, because who has an NPC consistently jump like that?

    You also need to put a Shadow graphic in the Graphics/Pictures folder. Look in the attachments for a sample one.

    To make shadows appear under events, tag them using a comment with "Shadow" in it.

    Enjoy, and updates will probably come in the future.

    Give credit to me if you use this, thank you!
     
    Last edited:

    Skystrike

    [i]As old as time itself.[/i]
    1,641
    Posts
    15
    Years
  • Quick question, does this apply only to the player, or NPCs aswell?
    NPCs, but there's a small drawback with that: it'll apply it to every dang event that's not tagged with noshadow in its name. I've figured out how to stop that from happening, but the code for it is kind of messy:

    Spoiler:

    You would replace that where you put the original code for noshadow of course.
    And even then that wouldn't fix invisible events, but I fixed that with something new in the main post.
     
    Last edited:

    tImE

    It's still me, 44tim44 ;)
    673
    Posts
    17
    Years
  • Hmm, slight issue, though.

    Code:
    ---------------------------
    Pokémon: Essentials
    ---------------------------
    Exception: NoMethodError
    
    Message: undefined method `push' for nil:NilClass
    
    Spriteset_Map:239:in `_animationSprite_initialize'
    
    Spriteset_Map:232:in `each'
    
    Spriteset_Map:232:in `_animationSprite_initialize'
    
    AnimationSprite:43:in `shadow_initialize'
    
    Shadow:221:in `initialize'
    
    Scene_Map:29:in `new'
    
    Scene_Map:29:in `createSpritesets'
    
    Scene_Map:28:in `each'
    
    Scene_Map:28:in `createSpritesets'
    
    Scene_Map:63:in `main'
    
    
    
    This exception was logged in 
    
    C:\Users\... .../errorlog.txt.
    
    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK   
    ---------------------------

    EDIT: Does that mean events without graphics also get a shadow?
     

    Skystrike

    [i]As old as time itself.[/i]
    1,641
    Posts
    15
    Years
  • Hmm, slight issue, though.

    Code:
    ---------------------------
    Pokémon: Essentials
    ---------------------------
    Exception: NoMethodError
    
    Message: undefined method `push' for nil:NilClass
    
    Spriteset_Map:239:in `_animationSprite_initialize'
    
    Spriteset_Map:232:in `each'
    
    Spriteset_Map:232:in `_animationSprite_initialize'
    
    AnimationSprite:43:in `shadow_initialize'
    
    Shadow:221:in `initialize'
    
    Scene_Map:29:in `new'
    
    Scene_Map:29:in `createSpritesets'
    
    Scene_Map:28:in `each'
    
    Scene_Map:28:in `createSpritesets'
    
    Scene_Map:63:in `main'
    
    
    
    This exception was logged in 
    
    C:\Users\... .../errorlog.txt.
    
    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK   
    ---------------------------

    ...what o_O
    If I understand correctly, it's saying that the main part of the script doesn't exist???

    Just (make a backup of Spriteset_Map first of course lol) and paste this whole script in Spriteset_Map:
    Spoiler:
    EDIT: Yes, it does, but that's fixed now. lol
     

    tImE

    It's still me, 44tim44 ;)
    673
    Posts
    17
    Years
  • Well, I'll be damned.

    I compared our two scripts with notepad++ and except for the updated stuff (door, berry, etc.) they were exactly the same, but when I replaced mine with yours in-game, it worked.

    I'm confused.

    Well, it works now, so thanks! :D

    EDIT: Now for the hell of renaming all door-events... ;__;
     

    Skystrike

    [i]As old as time itself.[/i]
    1,641
    Posts
    15
    Years
  • Well, I'll be damned.

    I compared our two scripts with notepad++ and except for the updated stuff (door, berry, etc.) they were exactly the same, but when I replaced mine with yours in-game, it worked.

    I'm confused.

    Well, it works now, so thanks! :D

    That's good, I was kind of worried for a minute.
    Glad that you like it! ^^
     

    tImE

    It's still me, 44tim44 ;)
    673
    Posts
    17
    Years
  • fc08c5bceddafd350bc23d435626f285.png


    Wow, those are some weird lightposts... XD

    I absolutely love this script though. I've always missed those little shadows in Essentials.
    Thanks a lot! :D

    PS. The Ledge jump looks sexy as ****. <3
     

    Skystrike

    [i]As old as time itself.[/i]
    1,641
    Posts
    15
    Years
  • fc08c5bceddafd350bc23d435626f285.png


    Wow, those are some weird lightposts... XD

    I absolutely love this script though. I've always missed those little shadows in Essentials.
    Thanks a lot! :D

    PS. The Ledge jump looks sexy as ****. <3
    Spoiler: There's actually spooky invisible people near them :O

    just kidding XD

    No problem, this script had to be made sometime!
     

    Dylanrockin

    That guy
    276
    Posts
    12
    Years
    • Seen Jun 9, 2016
    Okay, I wanna ask. When you say, "put this whole script under the class 'ReflectedSprite(s)'" what exactly do you mean, what line exactly? Because first off, I go to said lines that you tell me to go to, and I do not find anything of what you are finding, and instead have to search for it by copy and pasting. I kept getting errors because of the way you worded that first sentence.
     

    Skystrike

    [i]As old as time itself.[/i]
    1,641
    Posts
    15
    Years
  • Okay, I wanna ask. When you say, "put this whole script under the class 'ReflectedSprite(s)'" what exactly do you mean, what line exactly? Because first off, I go to said lines that you tell me to go to, and I do not find anything of what you are finding, and instead have to search for it by copy and pasting. I kept getting errors because of the way you worded that first sentence.
    Updated the post. Just post the whole script in Spriteset_Map.
     

    Dylanrockin

    That guy
    276
    Posts
    12
    Years
    • Seen Jun 9, 2016
    For some reason this error appears in the newer version of this script: ---------------------------
    Pokemon: Symphonic Horizon
    ---------------------------
    Exception: Errno::ENOENT

    Message: File Graphics/Pictures/Shadow not found.

    Spriteset_Map:106:in `initialize'

    Spriteset_Map:106:in `new'

    Spriteset_Map:106:in `initialize'

    Spriteset_Map:242:in `new'

    Spriteset_Map:242:in `_animationSprite_initialize'

    Spriteset_Map:232:in `each'

    Spriteset_Map:232:in `_animationSprite_initialize'

    AnimationSprite:43:in `shadow_initialize'

    Shadow:221:in `initialize'

    Scene_Map:29:in `new'



    This exception was logged in

    C:\Users\Dylan\Saved Games/Pokemon_ Symphonic Horizon/errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------
     

    Skystrike

    [i]As old as time itself.[/i]
    1,641
    Posts
    15
    Years
  • For some reason this error appears in the newer version of this script: ---------------------------
    Pokemon: Symphonic Horizon
    ---------------------------
    Exception: Errno::ENOENT

    Message: File Graphics/Pictures/Shadow not found.

    Spriteset_Map:106:in `initialize'

    Spriteset_Map:106:in `new'

    Spriteset_Map:106:in `initialize'

    Spriteset_Map:242:in `new'

    Spriteset_Map:242:in `_animationSprite_initialize'

    Spriteset_Map:232:in `each'

    Spriteset_Map:232:in `_animationSprite_initialize'

    AnimationSprite:43:in `shadow_initialize'

    Shadow:221:in `initialize'

    Scene_Map:29:in `new'



    This exception was logged in

    C:\Users\Dylan\Saved Games/Pokemon_ Symphonic Horizon/errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------

    You need a shadow graphic in the Pictures folder of your game lol
     

    Ramond Hikari

    - Lonely Shooting Star -
    74
    Posts
    12
    Years
  • Nice script overall :3
    I have a suggestion: Whichever event needs a shadow, just add a comment (Like @>Comment: Shadow) to draw a shadow beneath the event, as there are more events which don't need a shadow, and the event name checking is quite troublesome (For example, an NPC which disappears after talking, using a blank event page).
    Thanks!
     

    Skystrike

    [i]As old as time itself.[/i]
    1,641
    Posts
    15
    Years
  • Nice script overall :3
    I have a suggestion: Whichever event needs a shadow, just add a comment (Like @>Comment: Shadow) to draw a shadow beneath the event, as there are more events which don't need a shadow, and the event name checking is quite troublesome (For example, an NPC which disappears after talking, using a blank event page).
    Thanks!
    Yes, it is quite troublesome, so I took your suggestion. :)

    Update!

    Made shadow placement calculations more dependent on width/height (you still need to adjust for your own character sets though ;B) and made it so that event shadows just need a comment with "Shadow" in it for the shadow to show up.

    Thanks for the suggestion!
     

    Rayd12smitty

    Shadow Maker
    645
    Posts
    12
    Years
    • Seen Feb 21, 2016
    I have a few questions about how this works

    1) For the comments, if an event has multiple pages, such as a random trainer, does the comment need to be on both pages?
    2) If the answer to the previous question is no, then if I were to accidentally put it on both pages would the shadow "double up"?
    3) If I wanted to add shadows to dependent events, would you know anything about that? Since they aren't standard events on a single map their location would change differently, and I'm not sure how this shadow script would work on them, if at all.


    Thanks for sharing this awesome resource with us and ahead of time for answering my questions!
     
    Back
    Top