- Joined
- Oct 28, 2015
- Messages
- 30
- Reaction score
- 3
- First Language
- PT_BR
Hello, i was looking for a plugin that removes the auto shadow generated by some tiles. You can see that some tiles don't generate, and the result is something like:
i've found a code for VX, but i was looking for MV:
Thanks!
#Credits for Abt Ploutonclass Game_Mapattr_writer :autoshadowsdef autoshadows# Set autoshadows to false if it is not yet defined@autoshadows = @autoshadows == nil ? false : @autoshadowsreturn @autoshadowsendalias ma_remove_auto_shadows_on_setup setupdef setup (map_id)ma_remove_auto_shadows_on_setup (map_id)# Rather than repeatedly call a method, set a local variable to have it's datama_data = datareturn if autoshadows# For all squares on the mapfor x in 0...ma_data.xsizefor y in 0...ma_data.ysize# If there is an autoshadow on this tileif ma_data[x,y,1] == 0# Delete auto Shadowma_data[x,y,1] = ma_data[x,y,0]ma_data[x,y,0] = 0endendendendend
