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.

z coordinate of sprite picture

arev

Sponsor

does anyone know how to change the "z" of a picture? I've tried messing with Sprite_Picture Z, and Spriteset_Map viewports Z, but it didn't change anything. so... can you hel me? please :D
 
From looking in Spriteset_Battle and Spriteset_Map, you can see which viewport they are assigned to.
Code:
# SS_Map
    for i in 1..50
      @picture_sprites.push(Sprite_Picture.new(@viewport2,
        $game_screen.pictures[i]))
    end

# SS_Battle
    for i in 51..100
      @picture_sprites.push(Sprite_Picture.new(@viewport3,
        $game_screen.pictures[i]))
    end

The Z coordinate on the map would be viewport 2's z, which is
@viewport2.z = 200

The Z on the battle would be viewport 3
@viewport3.z = 200


Something like that I believe
 

arev

Sponsor

changing viewport z was the first thing I did. also I've tried changing the viewport in which the picture was created... nothing :/
I'm trying to display the pictures (or at least one of them) at the z of player. maybe there's another way to do it? I tried deifining self.z of Sprite_Picture as $game_player.screen_z but again, no results :(
 

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