Guest Access
Administrator
Administrator
Administrator
profile
G@MeF@Ce
profile
XAS Creep
Version:v1.3
by gameface101
Date:2-7-2011
Press a button, slow players speed, turn enemy sensor off
Version:v1.3
by gameface101
Date:2-7-2011
Press a button, slow players speed, turn enemy sensor off
- Another simple experiment gone right but still needs a few touches to it.
All in time like each of my scripting adventures...
Planned Future Versions
- next version I would like to have this script override the XAS Battler script so that enemies with preset sensors will be set to 0
also when the button is released it will default back to whatever variable 10 was set to and to the preset sensors on the XAS battler script.
Plan to include a graphic change Hero_CREEPand opacity adjustment
Screenshots
Instructions
in the script
XAS Creep v1.3
- Spoiler:
Instructions
in the script
XAS Creep v1.3
- Spoiler:
- Code:
################################################################################
#=============== XAS Creep V1.3 by Gameface101.com 2/7/2011 ===================#
################################################################################
=begin
Instructions: in RMXP Script Database(F11)
copy and paste above Main and below XAS - Movement
=end
#===============================================================================
module Xcreep
#CREEP OPTIONS =================================================================
CREEP_BUTTON = Input::B
CREEP_SPEED = 2
CREEP_FADE = 150
CREEP_ANI = true
PRESS_SENSOR = 0 #edit later
REAPPEAR = 255
RELEASE_SENSOR = 8 #edit later
end
#===============================================================================
def self.creeping?
if Input.press?(Xcreep::CREEP_BUTTON)
return true
else
return false
end
end
def self.creep_off
$game_system.creep_on = false
end
def self.creep_on
$game_system.creep_on = true
end
#==============================================================================
class Game_System
attr_accessor :creep_on
alias xas_creep initialize
def initialize
@creep_on = true
xas_creep
end
end
#===============================================================================
class Game_Character
attr_accessor :move_speed
attr_reader :opacity
end
#===============================================================================
class Scene_Map
include Xcreep
alias xas_creep_update update
def update
if Input.press?(CREEP_BUTTON)
$game_system.creep_on
$game_player.move_speed = CREEP_SPEED
$game_player.opacity = CREEP_FADE
$game_variables[10] = PRESS_SENSOR #will edit later
if CREEP_ANI == true
if Input.trigger?(CREEP_BUTTON)
$game_player.animation_id = 220
end
end
end
xas_creep_update
$game_player.opacity = REAPPEAR
$game_variables[10] = RELEASE_SENSOR #will edit later
end
end
Support
Gameface101.com
Gameface101.com
Known Compatibility Issues
let me know!
Restrictions
Free to use must give credit
let me know!
Restrictions
Free to use must give credit
Administrator
Show Signature
EVENTALIST
EVENTALIST
EVENTALIST
profile
mr_wiggles
profile
Very nice, i will be sure this will make a fine addition to Outbreak. Was thinking about doing something like this my self.
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
ACTIVATED
profile
nhokbutchi6
profile
When I stand next to monster, is sensor also set to 0?
ACTIVATED
Show Signature
ACTIVATED
Administrator
Administrator
Administrator
profile
G@MeF@Ce
profile
^at default yes, PRESS_SENSOR = 0
simply edit the module how ever you like ^,^
edit: newer version!
+ easy settings for hero fade away and reappearance
+ easy animation assignment
still a work in progress, next version the release sensor will
default back to original enemy sensor setting or specific sensor for each enemy.
simply edit the module how ever you like ^,^
edit: newer version!
+ easy settings for hero fade away and reappearance
+ easy animation assignment
still a work in progress, next version the release sensor will
default back to original enemy sensor setting or specific sensor for each enemy.
Administrator
Show Signature