Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Munkis' Invisible Timer snippet
munkis
post Jan 7 2011, 04:17 AM
Post #1


Woah, dude...
Group Icon

Group: Revolutionary
Posts: 197
Type: Writer
RM Skill: Intermediate




Munkis' Invisible Timer snippet

Version: 1.0
Author: munkis
Release Date: 01/07/2011


Exclusive Script at RPG RPG Revolution


Introduction
A (really) small script that lets you flip an in-game switch to render the timer invisible, in case you're feeling sneaky ph34r.gif

Features
You can flip an in-game switch to render the timer invisible.

Script
CODE
#------------------------------------------------------------------------------
#  * Munkis' Invisible Timer snippet V 1.0
#  * Made by munkis
#   •”•••••••••••—
#   •‘ FEATURES •‘
#   •š•••••••••••
#  * Lets you flip an in-game switch that makes the timer invisible, in case
#    you're feeling sneaky;)
#  * Aliases update method of Sprite_Timer.
#  * V 1.0: Initial release
#------------------------------------------------------------------------------
module MNK_Timer
  INVISIBLE_SWITCH = 7
end

class Sprite_Timer < Sprite
  alias munkis_timer_update update
  def update
    munkis_timer_update
    if $game_switches[MNK_Timer::INVISIBLE_SWITCH] == true
      self.visible = false
    else
      self.visible = $game_system.timer_working
    end
  end
end


Customization
The only thing to customize here is what in-game switch gets flipped.

Compatibility
I don't know of any other scripts that mess with Sprite_Timer, so there shouldn't be any issues. Even so, this script aliases the update method, rather than overwriting it.

Screenshot
Kinda hard to take a pic of something invisible happy.gif

DEMO
Shouldn't be necessary for a script this small.

Installation
Place in MATERIALS, above MAIN.

FAQ
Q: ZOMG teh scriptz doesn't werk!!!
A: First of all, be more specific. Second, all reports typed in chat-speak or 1337-speak will be ignored.

Terms and Conditions
I don't mind this script being posted or linked on other sites AS LONG AS YOU GIVE CREDIT!!! Same goes for using this in your project. Contact me if you want to use this in a commercial project.

Credits
Credit me (munkis).

This post has been edited by munkis: Jan 7 2011, 04:13 PM


__________________________
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 24th May 2013 - 06:53 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker