Author Topic: [XP] Animation & Movement Script  (Read 6204 times)

Online Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1511
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
[XP] Animation & Movement Script
« on: May 01, 2013, 02:56:05 AM »
Animation & Movement Script
Authors: Zexion
Version: 1.5
Type: Enhanced Movement System
Key Term: Custom Movement System

Introduction

I created this script because I really loved the features of some of the scripts out there. Two in particular were DerVVulfman's Multi-Pose Charset Script and Dirties re-write that allows for vertical correction and a custom number of frames per charset. They both had features I disliked though. DerVVulfman's had too many features, that I just felt that I didn't need laying around. Dirties was highly incompatible because it is a full rewrite.
Though this is also a full rewrite, it also has just enough features to be of great use.


Features

  • Optional 8 directional movement - Does not require 8 directional poses
  • Optional 8 pose charset - Can be any number of frames by adding "iso"
  • Ability to customize ANY charset's frames by adding "cs_#"
  • Vertical correction - for charsets whose feet do not touch the bottom. "v_#"
  • Option to use first frame as a "standing" frame (1 frame idle) with "stn" tag

Screenshots

(click to show/hide)

Demo

No demo, but will make one upon request.

Script

Place above main:
(click to show/hide)

Instructions

Explained pretty thoroughly in the script!

Compatibility

I don't think it is compatible with other movement scripts, may cause issues with pixel movement. Haven't tried it with blizz abs, but there is a 75% chance that it is not compatible. Should work with SDK, but not tested.

Credits and Thanks

  • DerVVulfman for base of 8-directional movement.
  • Dirtie for the frame calculation
  • Me for Mashing the scripts together
  • KK20 for helping with my mashing errors :P

Author's Notes

Here is an 8 directional charset that you can use as an example.
Aluxes iso.png
It is simply an iso charset, you can still add cs_8 to make it have 8 walking frames, or stn to make it have a stand frame.

If you have a suggestion,
(click to show/hide)
please feel free to comment :) I'll try my best to add or help you add anything you want to it.
« Last Edit: April 09, 2014, 12:20:10 AM by Zexion »

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Lexima Warrior
  • ****
  • Posts: 2987
  • LV: 369
  • Gender: Male
  • Bringer of Salt
    • View Profile
Re: [XP] Animation & Movement Script
« Reply #1 on: May 01, 2013, 03:15:16 AM »
Forgot the XP tag in the subject.

Instructions are misleading: You say to put values in between square brackets when naming the files, but it doesn't work that way (at least, how your gsub is setup). Also might want to note how the character graphics should be designed in terms of directional facing.

+1 for scripting (woo!)



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


NNID: KK20-CP
Discord: KK20 Tyler#8901
Join the CP Discord Server

Online Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1511
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP] Animation & Movement Script
« Reply #2 on: May 01, 2013, 03:38:45 AM »
Forgot the XP tag in the subject.
Dang, I always forget something, haha. Thanks for fixing it :P

Instructions are misleading: You say to put values in between square brackets when naming the files, but it doesn't work that way (at least, how your gsub is setup). Also might want to note how the character graphics should be designed in terms of directional facing.
OMG, I totally forgot. Those were the instructions I wrote when I first planned it out haha. I'll fix it now.
Also, I'll add an 8 pose of aluxes as an example :P

+1 for scripting (woo!)

Yeah, woo!! VIVA SCRIPTING!!! :rockit: *goes crazy* :w00t:

EDIT: Updated the instructions within the script, and also added an example charset of Aluxes in the Author's Notes section, showing how to use the 8 directional poses.
« Last Edit: May 01, 2013, 04:19:17 AM by Zexion »

Online Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1511
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP] Animation & Movement Script
« Reply #3 on: May 15, 2013, 05:17:22 AM »
Updated to version 1.1

KK20 Fixed a bug that I found in the script which prevented character sets without the iso tag from working properly.

5/26/2013
Updated to version 1.2

Fixed the draw_actor_graphic definition.
« Last Edit: May 26, 2013, 12:32:49 PM by Zexion »

Offline WhiteRose

  • Trying to code in Ruby
  • Moderator
  • Lexima Warrior
  • ***
  • Posts: 2341
  • LV: 127
  • Gender: Female
  • <3
    • View Profile
Re: [XP] Animation & Movement Script
« Reply #4 on: November 01, 2013, 12:29:36 AM »
This script is just perfect for a super-secret old project that I am resurrecting, but unfortunately, I get a syntax error when I put it in my game. :(

It's on line 633, so I think it's a problem with a method not being closed with an "end" or something that like. I actually tried adding an "end" to the script, and it ran without any trouble, but I couldn't move in eight directions, so that didn't end up accomplishing much. Haha.

Online Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1511
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP] Animation & Movement Script
« Reply #5 on: November 01, 2013, 05:20:23 AM »
Yeah I'm gonna take a look at this script tomorrow because there are a few bugs other than that

Offline WhiteRose

  • Trying to code in Ruby
  • Moderator
  • Lexima Warrior
  • ***
  • Posts: 2341
  • LV: 127
  • Gender: Female
  • <3
    • View Profile
Re: [XP] Animation & Movement Script
« Reply #6 on: November 01, 2013, 06:10:54 AM »
Yeah I'm gonna take a look at this script tomorrow because there are a few bugs other than that

Great! No rush, though.

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Lexima Warrior
  • ****
  • Posts: 2987
  • LV: 369
  • Gender: Male
  • Bringer of Salt
    • View Profile
Re: [XP] Animation & Movement Script
« Reply #7 on: November 02, 2013, 02:26:00 AM »
While you're at it, you should try to make it BlizzABS compatible.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


NNID: KK20-CP
Discord: KK20 Tyler#8901
Join the CP Discord Server

Offline hirasu

  • Trained Member
  • *
  • Posts: 16
  • LV: 0
    • View Profile
Re: [XP] Animation & Movement Script
« Reply #8 on: November 03, 2013, 04:29:52 AM »
While you're at it, you should try to make it BlizzABS compatible.

I want it too! This is perfekt for my project  :D

Online Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1511
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP] Animation & Movement Script
« Reply #9 on: November 03, 2013, 04:43:33 AM »
(click to show/hide)
Edit: I've updated the script with the fixed version that I had all along o.o  In any case, the script that I had posted on here was not actually v1.2 so I won't change that :s
I don't know if I was imagining this bug, but it seems that the events also use the correct graphics when moving in eight directions without eight poses. (Previously they would randomly disappear.)

Edit: From re-reading it seems that KK20 fixed that bug a while back,
« Last Edit: November 04, 2013, 10:12:05 PM by Zexion »

Offline WhiteRose

  • Trying to code in Ruby
  • Moderator
  • Lexima Warrior
  • ***
  • Posts: 2341
  • LV: 127
  • Gender: Female
  • <3
    • View Profile
Re: [XP] Animation & Movement Script
« Reply #10 on: November 05, 2013, 07:24:37 AM »
Hahaha. We all make mistakes like that sometimes. :P I'm glad it was so easy to fix! I'll definitely be giving this a try in my project. Thanks for your help!

EDIT: I just gave it a try and it looks like it's working perfectly. It gives a nice Earthbound-style feel to the movement. Great work. :)
« Last Edit: November 05, 2013, 07:30:08 AM by WhiteRose »

Online Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1511
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP] Animation & Movement Script
« Reply #11 on: April 08, 2014, 11:58:20 PM »
(click to show/hide)
Updated to Version 1.5 (Which was my latest version that I never released)
Added a fix for draw_actor_graphic
Added character rows with vs_# : Allows for 1 frame 1 pose charsets. Eg any picture can be saved as a charset with vs_1 cs_1
Fixed a limit that the old code placed : Previously it would not read numbers that were more than one digit. Very small fix, but it's fixed now.
Added animation speed control. Now there is a default animation speed, which is configurable and you can set a custom speed by using a_# in the file name.

(I might have posted the wrong version, but it will be fixed in a bit)
Fixed.
« Last Edit: April 09, 2014, 12:15:32 AM by Zexion »