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
> [RMXP] No Scrolling Pictures, YESH!!!!
felipe_9595
post Jul 14 2011, 09:51 PM
Post #1


Level 12
Group Icon

Group: Revolutionary
Posts: 201
Type: Writer
RM Skill: Undisclosed




I found a way to show non scrolling pictures. To do that, go to Sprite_Picture and change:


CODE
# Set transfer starting point
    if @picture.origin == 0
      self.ox = 0
      self.oy = 0
    else
      self.ox = self.bitmap.width / 2
      self.oy = self.bitmap.height / 2


And change it to :

CODE
# Set transfer starting point
    if @picture.origin == 0
      self.ox = $game_map.display_x / 4
      self.oy = $game_map.display_y / 4
    else
      self.ox = self.bitmap.width / 2
      self.oy = self.bitmap.height / 2


In this way, we can have fogs and light effects at the same time:



Credits: me xD

Extra Info:
  • When you show a picture, you can set the display position as the upper left corner, or the center.
  • This script makes all pictures that have their display position as the upper left follow the map, leaving all pictures with their display position in the center function as normal


__________________________
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: 25th May 2013 - 02:37 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker