Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Shadow Eliminator, Eliminates the shadows created by your autotiles!
Dark Gaia
post Jan 26 2009, 05:53 AM
Post #1


Chaotic Good
Group Icon

Group: +Gold Member
Posts: 2,538
Type: Writer
RM Skill: Masterful




Shadow Eliminator 2.0

Script by GameClover, edited from the shadow eliminator by gamebaker.com to have improved features, and to eliminate a few problems. (Posted here with permission by Dark Gaia)

Introduction

This script, when inserted into your game, will stop RMVX generating shadows next to your wall autotiles, yet still retains the functionality of bushes and counter tiles. It's really that simple! This can help to negate some of the inconsistancy these shadows may cause in some detailed maps.

Installation/Compatibility

This script is plug and play! Simply insert it above Main and you're ready to get to work, no configuring needed! This script is compatible with most other scripts, except any Mode 7 scripts, or any other scripts that involve the editing or changing of how Sprite_Tileset works.

Screenshot

This small screenshot demonstrates the shadow elimination at work.




Script

CODE
# Ultimate shadow remover!
# By the folks at http://rmvx.gameclover.com

# Problems?
# http://rmvx.gameclover.com/scripts/shadow-remover/

class Game_Map
alias gamebaker_goodbyeshadow_oldsetup setup
def setup(*args)
gamebaker_goodbyeshadow_oldsetup(*args)
goodbye_shadows
end

def goodbye_shadows
for x in 0...$game_map.data.xsize
for y in 0...$game_map.data.ysize
if $game_map.data[x,y,0] >= 4352
$game_map.data[x,y,1] = $game_map.data[x,y,0]
$game_map.data[x,y,0] = 0
end
end
end
end
end


Credits

This script was made by GameBaker and improved/enhanced by GameClover. Visit GameClover at their site today at http://rmvx.gameclover.com!
Script posted on RRR by Dark Gaia with permission.


__________________________
Things I've made/written/developed:


Find out more and get the latest news at my website or Facebook
Go to the top of the page
 
+Quote Post
   
woratana
post Jan 26 2009, 08:09 AM
Post #2


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




As far as I know, gamebaker IS gameclover. Isn't it?


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
BigEd781
post Jan 26 2009, 09:55 AM
Post #3


No method: 'stupid_title' found for `nil:NilClass'
Group Icon

Group: Revolutionary
Posts: 1,829
Type: Scripter
RM Skill: Undisclosed




So, I am looking forward to trying out this new version, but have you found any other issues? The way this works could cause z order problems, or perhaps issues with custom tilesets. Of course, the last one worked in a similar way, it just screwed up counter tiles. I assume that is why the check for some tile id greater than or equal to 4352.


__________________________
`
Give me teh codez!!!


I am the master debator!
Go to the top of the page
 
+Quote Post
   
Dark Gaia
post Jan 26 2009, 10:05 PM
Post #4


Chaotic Good
Group Icon

Group: +Gold Member
Posts: 2,538
Type: Writer
RM Skill: Masterful




Don't ask me, I only posted it, not wrote it! However, the site says that this is an enhanced version over the previous one and should have no problems with tile order anymore.

No, GameClover is affiliated with GameBaker, but they are different. GameClover is run by different people, and of course GameBaker does not allow anyone to redistribute their scripts.



__________________________
Things I've made/written/developed:


Find out more and get the latest news at my website or Facebook
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th June 2013 - 05:40 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker