Go Back   The PokéCommunity Forums > xalien95
Reload this Page Conversation Between xalien95 and FL

Notices
For all updates, view the main page.



Conversation Between xalien95 and FL
Showing Visitor Messages 1 to 5 of 5
  1. xalien95
    July 19th, 2013 01:34 PM
    xalien95
    I solved it in another way, but thank you for the reply n__n
  2. FL
    July 18th, 2013 04:09 PM
    FL
    You code make no sense because of elsif has no condition. Try this (untested): In PokemonFieldBefore line 'elsif $PokemonGlobal.bicycle' put

    Spoiler:
    elsif $PokemonGlobal.bicycle && !$game_player.moving?
    $game_player.character_name=meta[2] && meta[2]!="" ? meta[2] : meta[1] # Change this line to your graphic.


    In Walk_Run change
    Spoiler:
    if !moving? && !@move_route_forcing && $PokemonGlobal
    meta=pbGetMetadata(0,MetadataPlayerA+$PokemonGlobal.playerID)
    if $PokemonGlobal.playerID>=0 && meta &&

    to:
    Spoiler:
    if !@move_route_forcing && $PokemonGlobal
    meta=pbGetMetadata(0,MetadataPlayerA+$PokemonGlobal.playerID)
    if $PokemonGlobal.bicycle
    Kernel.pbUpdateVehicle
    elsif $PokemonGlobal.playerID>=0 && meta &&


    There are ways to reduce the lag, like using a variable to also record the moving? (like last_moving) before the "return" in def character_name, so you only need to call the Kernel.pbUpdateVehicle when last_moving!=moving?
  3. xalien95
    July 18th, 2013 05:16 AM
    xalien95
    I'm editing PokemonField, def Kernel.pbUpdateVehicle. It's weird it doesn't work.
    I'm adding in def character_name:

    if !moving?
    Kernel.pbUpdateVehicle
    elsif
    Kernel.pbUpdateVehicle
    end

    Hope it wont lag XD
  4. FL
    July 17th, 2013 05:50 AM
    FL
    $game_player.moving? should works. I guess that the method that you are calling isn't updated every frame (or a similar frequency). Try to use a new condition in 'def character_name'.
  5. xalien95
    July 15th, 2013 10:14 AM
    xalien95
    Hi FL ., I'm adding the charaset that will be show when the player is using bicycle but isn't moving. Well, how could I set the condition "isn't moving"? XD
    I tried with !$game_player.moving? but it doesn't work.
    I tried also Input.dir4==0 and it doesn't work.

All times are UTC -8. The time now is 06:39 PM.