Author Topic: [XP] Heretic's Circular Sprite Motion  (Read 1647 times)

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 732
  • LV: 29
    • View Profile
[XP] Heretic's Circular Sprite Motion
« on: April 30, 2015, 01:59:50 AM »
Circular Sprite Motion XP
Authors: Heretic
Version: 1.1
Type: Custom Movement System
Key Term: Custom Movement System

Introduction

This script will allow you to give Sprites a Circular Motion, where they can "spin" around their Parent Event.  It does not affect Collisions.

You can also use Circular Motion to create a "Float" Effect by setting the X Radius Value to 0.

Features

  • Circular Motion
  • Create a "Float" Effect
  • Transition either the Speed of Rotation, or the Radii
  • Hey look!  I'm Spinnin!  Anyone remember Frog in a Blender?

Screenshots







New in Version 1.1



Demo

http://downloads.chaos-project.com/heretic86/MP/CircularSpriteMotion.exe

Script

Place below Modular Passable (Required)
Place below Loop Maps and Collision Optimizer (Optional, both require Modular Passable)
Place above Main

(click to show/hide)

Instructions

Circular Motion, or "Spin" Effects are created by adding Comments to Events.  Each Event will require THREE Comments:

\spin
\spin_speed[N]
\spin_radius[N]

Spin Speed can be a Negative Number.

Spin Radius will accept ONE or TWO RADII, allowing for Floating Effects:
\spin_radius[0, 16]

Transition either Spin or Radius with Scripts:

spin_speed_to(new_speed, duration)
spin_radius_to(new_radius, duration)

You can Transition from One to Two Radii by using an [X, Y] Array in new_radius:
spin_speed_to([32, 64], 20)

Apply these Effects to Events or the Player:
$game_map.events[12].spin = true
$game_map.events[12].spin_speed = -5.25
$game_map.events[12].spin_radius = 16
$game_player.spin_speed_to(15, 40)


Compatibility

Dryclean Only!!!

Credits and Thanks

  • I'd like to thank whoever invented Sarcasm, its delicious!

Author's Notes

This is a Movement Effects Script.  It does NOT affect Collisions, so you may want to be careful about confusing Players in the way you apply the effects.
« Last Edit: July 05, 2015, 10:24:51 PM by Heretic86 »
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Online KK20

  • Master Scripter Fixer
  • Global Moderator
  • Lexima Warrior
  • ****
  • Posts: 2988
  • LV: 369
  • Gender: Male
  • Bringer of Salt
    • View Profile
Re: [XP] Heretic's Circular Sprite Motion
« Reply #1 on: June 18, 2017, 11:53:00 PM »
Kise reported having issues setting up the event to make the circular motion. Perhaps a rewrite of the instructions is in order (maybe with a text-based example too, like what you did with the script call options). Make it clear that each spin configuration needs to be in a separate comment (or change the script to allow it all in one comment instead). Also, you list the options with a forward slash when they should be backslashes.
Code: [Select]
#  /spin              - Enables Circular Motion Effects
#  /spin_radius[N]    - Distance in Pixels from actual Event Map location
#  /spin_radius[N, N] - Distance in X, Y Distance for a Elliptical Movement
#  /spin_speed[N]     - Speed in Degrees Per Frame
#  /spin_speed[N, N]  - X and Y have different Rotational Speeds (non circles)
#  /spin_angle[N]     - Initial Angle (0.0 - 360.0)
#  /spin_angle[N, N]  - X and Y have different Inital Angles



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