Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Different animations on walking,standing, and dash made by rune76
#1
This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


I Founud this on a Forum, so i figured i'd share it with you guys!

Code:
#============================================
#This script was made by rune76
#============================================
if $game_party.actors.size != 0
    if @actor_temp == nil then @actor_temp = "" end
    if @dashing == nil then @dashing = false end
    actor = $game_party.actors[0]
    if @character_name == nil
      @character_name = actor.character_name
      @character_name.gsub!("_stand") {""}
      @character_name.gsub!("_dash") {""}
   end
    if !actor.character_name.include?("_stand") and !actor.character_name.include?("_dash")
        @character_name = actor.character_name
    end
    if @character_name != nil
     if Input.press?(Input::UP) or Input.press?(Input::DOWN) or Input.press?(Input::RIGHT) or Input.press?(Input::LEFT)
      if !@dashing
       if @actor_temp != "walking"
        $game_player.straighten
        actor.set_graphic(@character_name, actor.character_hue, actor.battler_name, actor.battler_hue)
        $game_player.refresh
        @actor_temp = "walking"
      end
    end
      if $game_temp.dash_mode and $game_switches[99] == false
        if @actor_temp != "dash"
          $game_player.straighten
          actor.set_graphic(@character_name + "_dash", actor.character_hue, actor.battler_name, actor.battler_hue)
          $game_player.refresh
          @actor_temp = "dash"
          @dashing = true
        end
      else
        @dashing = false
      end
    elsif !$game_switches[98]
       if @actor_temp != "standing"
         $game_player.straighten
          actor.set_graphic(@character_name + "_stand", actor.character_hue, actor.battler_name, actor.battler_hue)
         $game_player.refresh
         @actor_temp = "standing"
       end
     end
    end
  end

Instructions:
For people that never has seen the other topic before all you have to do is to add this in Scene_Map, just below the line that says def update.
You also must have a few pics, three actually and for all the characters you're going to add to your party at any time in the game.
If you want to use this knowing that then read this.
The three different pics must have a special ending of their name;

Dash: The original name except that you add _dash in the end, not after the .png or whatever you use though.
Walking: No change, just simply the name you've selected.
Standing: The original name, just add _stand in the end.

If you don't understand here's an example with Arshes' pic's name:
Dash: 001-Fighter01_dash.png
Walking: 001-Fighter01.png
Standing: 001-Fighter01_stand.png

If you do not wish to use the dash animation just put Switch 99 to true, note that this only works with the dash animation.

Now because I've updated the script there are some few other changes you have to do.
First of all go to Game_Temp and below all the other attr_accessor's add
Code:
attr_accessor :dash_mode
And then right above the first end add
Code:
@dash_mode = false
The other change you need to make is in Game_Player, or wherever you have the input for dash mode. When you find it add below @move_speed = 5 (Or whatever dash speed you have)
Code:
$game_temp.dash_mode = true
And now after it says @move_speed = 4 (Or the normal speed) add
Code:
$game_temp.dash_mode = false

hope u like it. don't give credit to me, i just found it.
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Animations. A cool script indeed!!! squall789 0 2,079 09-22-2005, 01:00 PM
Last Post: squall789
  Dash Mode Script Near Fantastica 0 1,947 02-01-2005, 01:00 PM
Last Post: Near Fantastica



Users browsing this thread: