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.

[Resolved] More than 20 pictures in VX, possible?

Hello all!
I would like to know if is possible to show more than 20 pictures in RPG maker VX, i searched a lot and couldn't find an answer.

I tried to change the Spriteset_Map script, in the picture part:
Code:
  

def create_pictures

    @picture_sprites = []

    for i in 1..[color=#FF0000]20[/color]

      @picture_sprites.push(Sprite_Picture.new(@viewport2,

        $game_map.screen.pictures[i]))

    end

  end

 

I changed the '20' to a higher number and i get an error in Sprite_Picture related to name, I didn't understood at all.
The reason to change the number 20 is because 20 is the maximum number of pictures, and I though this 20 would be the same thing =/

If anyone can answer me, I would be very grateful :smile:
 
Let's teach you to fish....

Let's say we change the 20 to 30

when it gets to 21, you are calling

@picture_sprites.push(Sprite_Picture.new(@viewport2, $game_map.screen.pictures[21]))

So, let's go look at $game_map.screen.pictures

in Game_Map, @screen = Game_Screen.new

in Game_Screen,

@pictures = []
for i in 0..20
@pictures.push(Game_Picture.new(i))
end

Hmmmmm, it's only creating 20 pictures

dig?
 

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