Sprite Reflection

TDS

- T D S -
Veteran
Joined
Mar 5, 2012
Messages
361
Reaction score
130
First Language
English
Primarily Uses
Sprite Reflection 1.4




by TDS


Introduction

This script creates the effect of reflection on certain map tiles.

Features

- Set reflection tiles based on terrain.

- Set Y offset of reflection based on terrain tag on the tile notes.

- Set individual Y offset for character or events.

- Turn reflection ON/OFF for the player, events and followers on the map.

Screenshots

How to Use

Instructions are on the script.

Demo

http://dl.dropbox.co... Reflection.exe

Script

Script

Credit and Thanks

- TDS

- Cozziekuns for his help with the clipping method.

- voyager4383 for helping by reporting fatal bugs in the script.

Author's Notes

This script is meant to be used mostly with the default sprites and square water tiles. If people need more complex clipping and X offset I will add them in a later version.

Restrictions

Only for use in non-commercial games.
 
Last edited by a moderator:

Panda

Level 15 Fluffy Bear
Veteran
Joined
Mar 13, 2012
Messages
296
Reaction score
165
First Language
English
Primarily Uses
N/A
I do like how the ghost doesn't have a reflection, nice little touch there. :)

I'll test this out when Ace finally comes tomorrow.
 
Last edited by a moderator:

Link

Hero of Slime
Veteran
Joined
Mar 13, 2012
Messages
227
Reaction score
11
First Language
English/Engrish
Primarily Uses
Now all we need is a dynamic shadow generator.
 

Dr.Yami

。◕‿◕。
Developer
Joined
Mar 5, 2012
Messages
1,004
Reaction score
758
First Language
Vietnamese
Primarily Uses
Other
Very sexy script <3 Nice one TDS <3
 

Knightmare

Knight of the Night
Veteran
Joined
Mar 14, 2012
Messages
1,230
Reaction score
292
First Language
English
Primarily Uses
RMMV
Oh this is very nice TDS thanks.
 

TDS

- T D S -
Veteran
Joined
Mar 5, 2012
Messages
361
Reaction score
130
First Language
English
Primarily Uses
Thank you all for the comments.

I updated the script and added a way to turn the reflections ON/OFF for the characters on the map.
 

Icenick

Veteran
Veteran
Joined
Mar 28, 2012
Messages
410
Reaction score
61
First Language
English
Primarily Uses
This doesnt work for me. I tried setting the water to terrain 1 or 2, and no reflections. I tried creating a parallel process event with the title [Reflect], nothing....

What am I missing?
 

TDS

- T D S -
Veteran
Joined
Mar 5, 2012
Messages
361
Reaction score
130
First Language
English
Primarily Uses
You don't create a "Parallel" event to make it reflect, you add [Reflect] to the events you want to reflect.

I added a demo to show people how it works, and updated the script.
 

Icenick

Veteran
Veteran
Joined
Mar 28, 2012
Messages
410
Reaction score
61
First Language
English
Primarily Uses
No idea... The demo doesnt have the rpg maker file, just the game export. Plus theres no text in demo, I talked to a dog and the reflections stop... I dont know why however.
 

TDS

- T D S -
Veteran
Joined
Mar 5, 2012
Messages
361
Reaction score
130
First Language
English
Primarily Uses
That's weird, I downloaded it and it's not encrypted for me.

As for the text, I made the demo on a hurry since I'm very busy at the moment. I'll make a better one soon.
 

Icenick

Veteran
Veteran
Joined
Mar 28, 2012
Messages
410
Reaction score
61
First Language
English
Primarily Uses
That's weird, I downloaded it and it's not encrypted for me.

As for the text, I made the demo on a hurry since I'm very busy at the moment. I'll make a better one soon.
Oh your right, re downloaded it and its not encrypted. Dunno what happened before.

Well, I still cant get reflections in my game, I copied the events and script from demo, still nothing.
 
Last edited by a moderator:

voyager4383

Villager
Member
Joined
Apr 24, 2012
Messages
5
Reaction score
0
First Language
English
Primarily Uses
Hi TDS!

First off, I love the script. Thank you for making it and offering it for others to use! Reflections add that extra layer of realism that a lot of 8 bit RPG's didn't used to have in the past.

Second...Of course, I am having an issue, lol.

I am having an issue where reflections are all not turning on (Except for the Actors) when you transition to a new map. Returning to the starting map the reflections return. I tested to ensure this was happening by changing the game starting location to be on one of the maps that wasn't working, and reflections were back...although only for the starting map.

I must be missing a critical but obvious part...a script call or something, but I am still too new to know better. ^_^

Any help would be appreciated!
 

TDS

- T D S -
Veteran
Joined
Mar 5, 2012
Messages
361
Reaction score
130
First Language
English
Primarily Uses
Thank you for reporting the bug, and no you are not missing anything, it's a bug caused by something I forgot to add that was a change from RGSS2 to RGSS3 and the update of sprites in the map spriteset class.

I've updated the script and it should work properly now.

Let me know if you find any other bugs or problems.

Have a nice day.
 

Icenick

Veteran
Veteran
Joined
Mar 28, 2012
Messages
410
Reaction score
61
First Language
English
Primarily Uses
Thank you for reporting the bug, and no you are not missing anything, it's a bug caused by something I forgot to add that was a change from RGSS2 to RGSS3 and the update of sprites in the map spriteset class.

I've updated the script and it should work properly now.

Let me know if you find any other bugs or problems.

Have a nice day.
Mine still dont work at all, pretty much gave up. I set the terrain in the water to 1 or 2 and no reflections.
 

voyager4383

Villager
Member
Joined
Apr 24, 2012
Messages
5
Reaction score
0
First Language
English
Primarily Uses
@ TDS: Thanks, that worked like a charm! The only thing I am noticing now is that when you are walking "North" or "South", your screen is scrolling with you as you walk as normal...the reflective events that are moving left or right have their reflections moving off the water instead of staying in place. The only way I can describe to reproduce it is to make an event like a dog, have it walk left and right, and play test walking north or south to the point where the map scrolls. You will see the "reflection" will not stay put where it originated. Meh, prob didn't describe it well...a pic would be better. If I can get one, I'll show you what I mean. (Added "Reflection moving.png" so you can hopefully see what I mean)

@ Icenick: Did you make sure to go to Tools > Database > Tilesets. Then choose your tileset from the left that you plan to use, then go to "Notes" on the bottom right and input the code like so:

S_REFLECT_OFFSET:

1: 9

2: 14

E_REFLECT_OFFSET:

From your previous posts you didn't mention that you did that step.

Good luck! (Added that "RPG Maker Reflections.png" to show you where!)

RPG Maker Reflections.png

Reflection moving.png
 

Icenick

Veteran
Veteran
Joined
Mar 28, 2012
Messages
410
Reaction score
61
First Language
English
Primarily Uses
Oh man, my mistake I thought you had to put the terrain number on the map itself... Thanks for clearing that up!
 

TDS

- T D S -
Veteran
Joined
Mar 5, 2012
Messages
361
Reaction score
130
First Language
English
Primarily Uses
Sorry for the delay.

@voyager4383:

Very strange bug, with an even stranger fix. Once again thank you for reporting the bug and if you find anything else let me know.

@Icenick:

I honestly have no idea why it's not working for you and sadly I do not have the time at the moment to figure it out.
 

CRBeam

Villager
Member
Joined
Mar 14, 2012
Messages
27
Reaction score
5
First Language
English
Primarily Uses
I'm using a Script to change the screen resolution. I have it set at 640 x 416 to work better with my widescreen display, this causes the relfections to be off by about 1.5 tiles.

It works perfect if the relolution is set to default, Is there a way to get it to work with the widescreen resolution?
 

TDS

- T D S -
Veteran
Joined
Mar 5, 2012
Messages
361
Reaction score
130
First Language
English
Primarily Uses
I tried to replicate the bug, but I was not able to.

Is the script you're using to change the resolution below the reflection script? You could try to put the reflection script below it and see if that fixes it.

If not, then could you please make a small demo with the problem?
 

Latest Threads

Latest Posts

Latest Profile Posts

Stream will be live shortly! I will be beginning a play-through of Resident Evil 4! Feel free to drop by!

1st iteration on castle interior in Tiled.
I've started up Pillars of Eternity. It's interesting how the game does a "select choice" cutscene using still image art for dramatic flair. I wonder if that might work for my RPGMaker project.
The self-righteous indignation of family when you expect them to pay back money you've leant to them never ceases to amaze me.
Gamedev for relaxing? yes or no?

Forum statistics

Threads
107,735
Messages
1,031,745
Members
139,872
Latest member
ExSaNTIEr76
Top