Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Closed TopicStart new topic
> Some way to break 20 pictures limit/cap
irbis
post Sep 21 2010, 10:01 AM
Post #1


Level 3
Group Icon

Group: Member
Posts: 30
Type: Writer
RM Skill: Beginner




Anybody heard about something like that?
basicly in VX you can show pictures with number 0-20 only.
Is it hardcoded or there is a way around it? i was looking in the Script Editor checking values but i havent found anything usefull in this case.
Google left me with some rubish too.
so maybe you guys have an idea or clue how to fix this?

This post has been edited by irbis: Sep 21 2010, 10:02 AM
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Sep 21 2010, 10:41 AM
Post #2


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




Yes, it's hard coded. You can bypass the limit but only in scripts, not in the editor. To do that, go in the Spriteset_Map script section and find this:
CODE
  def create_pictures
    @picture_sprites = []
    for i in 1..20
      @picture_sprites.push(Sprite_Picture.new(@viewport2,
        $game_map.screen.pictures[i]))
    end
  end

Replace the 20 with another number. Then you'll be able to use a Call Script command to display pictures with a number superior to 20. Like this (I used 21 as an example)::
CODE
$game_map.screen.pictures[21].show(name, origin, x, y, zoom_x, zoom_y, opacity, blend_type)

Everything is self-explanatory except maybe the origin: it's 0 or 1. 0 is the top-left part of the screen and 1 the center.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 12:51 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker