Hello! I am trying to get weather effects to show up on the panorama layer, but with no luck.
I am using this little method:
When @panorama is true, the effects should move to the panorama layer, but it doesn't work. I don't get any errors at all, it just refuses to change z values!
I already added an attribute reader for sprite to RPG::Weather, so it should be reading it. If I am making some silly mistake, then I'm sorry. Maybe it has something to do with the way I am trying to use each? idk...
I am using this little method:
Code:
def panorama_effects
if @panorama == true
RPG::Weather.sprites.each {|s| s.z = -999}
else
RPG::Weather.sprites.each {|s| s.z = 1000}
end
return
end
When @panorama is true, the effects should move to the panorama layer, but it doesn't work. I don't get any errors at all, it just refuses to change z values!
I already added an attribute reader for sprite to RPG::Weather, so it should be reading it. If I am making some silly mistake, then I'm sorry. Maybe it has something to do with the way I am trying to use each? idk...