Rhudra

Veteran
Veteran
Joined
Feb 2, 2013
Messages
30
Reaction score
3
First Language
French
Primarily Uses
Hello.

I'm using overlay images and they appear over Balloon icons when I use them.

Is there a way to modify the Z entry of every balloon icons?
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,812
Reaction score
889
First Language
German
Primarily Uses
RMMZ
Try modifying this methode in Sprite_Character:

def update_balloon    if @balloon_duration > 0      @balloon_duration -= 1      if @balloon_duration > 0        @balloon_sprite.x = x        @balloon_sprite.y = y - height        @balloon_sprite.z = z + 200        sx = balloon_frame_index * 32        sy = (@balloon_id - 1) * 32        @balloon_sprite.src_rect.set(sx, sy, 32, 32)      else        end_balloon      end    end  endBy default, it sets the z-index of the balloon sprite to be 200 higher than the z-index of the character it's displayed on.

/edit: That said, it seems like the z-index of pictures is equal to their number, so they usually should be displayed below balloons anyway. In theory, at least.
 
Last edited by a moderator:

Latest Threads

Latest Posts

Latest Profile Posts

Got sick and had to take a few days off work in order to get tested and make sure it wasn't the big one. Felt a lot better today and thought to myself, "Hey now, I can't get tested until tomorrow anyway, I can get so much character art done today!"
....I watched Youtube and browsed this site for hours instead.
>.>
But at least I'm doing the art now! Yaaaaay.......
1638314262144.png
Didn't wanna spam the feed by posting Denzel's spritelayer separae, but I'm real happy with how this concept is coming along so wanted to share it, innit :D
EVXA wrote on Avery's profile.
Not sure how often you take time to play the games sent to you, but if you could give my game a shout & review on steam maybe that would be amazing, only if you like the game of course, I'd love to know which games have been your favorites over the years too.
I'm seeing my god daughter's school play next week. Being the mild agoraphobe I am this makes me nervous. Thus I had a dream that it was actually a plot by my best friend to take me clubbing at an establishment where it is customary to throw a harpoon at staff members to reward good service.
Praise be to the game make!

Forum statistics

Threads
117,090
Messages
1,104,486
Members
153,087
Latest member
Luphelia
Top