Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Script Hanging Error
#1
So, while i get why I am getting the error I have no idea how to fix it. I create the following method to make the player move slow in snow, shallow water, etc. However, after about 10-20 seconds of walking I get a script hanging error telling me there is either a loop issue (maybe) or something causing graphics not to update. Disregard the x,y that was for when i was using $game_map's terrain tag. Then I say the player has a dedicate terrain tag and just never removed the x,y.

Code:
 
def move_shallowly?
   # Save Player Position
   x, y = self.x, self.y
   # Check for Terrain Trigger
   tile_effect = self.terrain_tag
   autotile_names = $game_map.autotile_names
   if tile_effect == 1 # Deep snow, High Grass, bushes - Slow Down
     @move_speed = 2
     @move_frequency = 3
   end
 end

I have a similar method that speeds the player up and i have no issue. Any ideas for a solution?

Code:
 def move_normally?
   # Save Player Position
   x, y = self.x, self.y
   # Check for Terrain Trigger
   tile_effect = self.terrain_tag
   autotile_names = $game_map.autotile_names
   if tile_effect == 0 # Reset Non Status Effects
     if not running?
       @move_speed = 4
       @move_frequency = 5
     end
   end
 end
Reply }


Messages In This Thread
Script Hanging Error - by BeJeremiah - 06-04-2015, 06:55 AM
RE: Script Hanging Error - by thephantom - 06-04-2015, 07:14 AM
RE: Script Hanging Error - by BeJeremiah - 06-04-2015, 07:19 AM
RE: Script Hanging Error - by Charlie Fleed - 06-07-2015, 09:26 PM
RE: Script Hanging Error - by BeJeremiah - 06-08-2015, 05:00 AM
RE: Script Hanging Error - by MechanicalPen - 06-08-2015, 10:52 PM
RE: Script Hanging Error - by BeJeremiah - 06-09-2015, 02:42 AM
RE: Script Hanging Error - by kyonides - 06-13-2015, 06:56 AM
RE: Script Hanging Error - by BeJeremiah - 06-17-2015, 01:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Script compatibility help Lord Vectra 3 3,534 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 12,767 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   "Wait" in the script Whisper 13 13,618 04-28-2020, 04:06 PM
Last Post: Whisper
   Skill Cooldown script Fenriswolf 11 14,010 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   (RMVXace) Battle error with Tankentai's battle system, help. x( Starmage 0 3,463 02-14-2018, 04:25 PM
Last Post: Starmage
   Help iwth script (RGSS Player crash) Whisper 3 6,494 06-17-2017, 05:03 PM
Last Post: Whisper
   Help modifying a script Keeroh 7 8,890 06-11-2017, 04:43 PM
Last Post: DerVVulfman
Question  Mog Menu script: help me stop the crazy picture movement during transitions Zachariad 4 8,567 05-31-2017, 05:10 AM
Last Post: Zachariad
   Actor names in Quest Script jreagan406 5 7,557 03-07-2017, 08:06 AM
Last Post: JayRay
  Expiration States with Atoa acbs: error Noctis 5 8,054 02-18-2017, 01:10 AM
Last Post: DerVVulfman



Users browsing this thread: