Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Showing Event Graphic Over Pictures

Hey, Is there any way to show an event's graphic over top of a picture.
I'm hoping that there will be a simple little line of code for this.
 
The event graphics are placed on a different viewport than the picture graphics, so the event graphics can't be over picture graphics without heavy modification.

You can go into Game_Map under initialize and change:
Code:
    # Make picture sprites
    @picture_sprites = []
    for i in 1..50
      @picture_sprites.push(Sprite_Picture.new(@viewport2,
        $game_screen.pictures[i]))
    end
To
Code:
    # Make picture sprites
    @picture_sprites = []
    for i in 1..50
      @picture_sprites.push(Sprite_Picture.new(@viewport1,
        $game_screen.pictures[i]))
    end

Then they will be on the same plane, but the events z constantly change, and the pictures z is dependant on the picture number.

What are you trying to do? We need to do something different than using pictures.
 
This is for a menu I'm creating through events. I wanted to have have an animated event graphic that reads "Press Enter". I could do this through even more pictures but It Is easier to animate through events.

Just curious, what plane are animations on?
 
Yep. But unfortunately, the sprites are set on viewport, and since the character sprites viewport is lower than the picture viewport, always on top wouldn't do anything, just place the character sprite on the highest z on their viewport. The picture sprites' viewport is always higher.


What you are going to have to do is make an object class, like Sprite_X, add an array in Spriteset_Map just like the picture_sprites array, then work with that, or a simpler adding of an instance somewhere like Scene_Map and doing that. Your only other option is to display something like 2 pictures, and just change the bitmap on one of the pictures.

I will work something out for you soon.
 
uh...Isn't this resolved?

EDIT: Nevermind >>

EDIT 2: Are you wanting the player's sprite to be shown on top or a Event's sprite?

EDIT 3: Eh, Can't help with either one right now.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top