Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=======================================================================
- # ** Lock Pictures
- # VX Original by KD , Ace Edit by Valentine
- # Credits: KD
- #-----------------------------------------------------------------------
- # Bild fixieren:
- # lock_scroll(PICTURE_ID)
- #
- # Bild nicht mehr fixieren:
- # unlock_scroll(PICTURE_ID)
- #=======================================================================
- class Game_Picture
- LOCK = true
- UNLOCK = false
- #--------------------------------------------------------------------------
- # * Start processing
- #--------------------------------------------------------------------------
- def loki=(value)
- @loki = value
- end
- def x
- if @loki then (@x - $game_map.display_x) * 32 else @x end
- end
- def y
- if @loki then (@y - $game_map.display_y) * 32 else @y end
- end
- alias pic_show show
- def show(*picture_lol)
- @move_with = UNLOCK
- pic_show(*picture_lol)
- end
- end
- class Game_Interpreter
- def lock_scroll(id, v=Game_Picture::LOCK)
- screen.pictures[id].loki = v if screen.pictures[id]
- true
- end
- def unlock_scroll(id)
- lock_scroll(id,Game_Picture::UNLOCK)
- end
- end
Add Comment
Please, Sign In to add comment