Author Topic: [XP] Heretic's Move Straight (useful for simulating projectiles)  (Read 2765 times)

Online Heretic86

  • Astral Trancist
  • *****
  • Posts: 740
  • LV: 29
    • View Profile
Heretic's Move Straight
Authors: Heretic
Version: 1.0
Type: Custom Movement System
Key Term: Custom Movement System

Introduction

This script allows you to move your Characters in a Straight Line from Point A to Point B.

You might think it is useless, but try moving a Character up two spaces and right five spaces.  You'll see the
movement comes out a bit strange without this script.  When you use this command, it moves your character in a
straight line directly to your target, regardless if the target can not be reached by moving one of the 8 default directions.

THIS IS NOT A PATHFINDING SCRIPT.

THIS IS NOT A PIXEL MOVEMENT SCRIPT.


Features

  • Just one command to use: move_straight(x, y, [optional duration])
  • Optional Duration for precise movement timings
  • One time, at band camp...

Screenshots

No Screenshots

Demo

No Demo.  I might build one upon request.

Script

(click to show/hide)

Instructions

Place below any other movement related scripts.  Some fine tuning may be required, and I can help with that.

Compatibility

Compatible with pretty much everything.  If it isn't, this script isn't too difficult to modify so I can work with you to make it 100% compatible with your script.

Credits and Thanks

  • KK20 for a precise explanation why a particular glitch occured.

Author's Notes

It works just like Jump, except it moves in a straight line.  Speed is based on the current move speed of the Character.  The optional duration can be very useful for perfect synchronization of animations.  You'll probably find that it is rather useful for simulating projectiles, although it is not a Projectile script in and of itself.

Think: Magic Missle

Legal:  See Script



« Last Edit: April 04, 2013, 12:00:59 AM 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.)

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1511
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP] Heretic's Move Straight (useful for simulating projectiles)
« Reply #1 on: April 04, 2013, 01:45:13 AM »
/Love
I needed this a few times in the past for cutscenes. I'm sure I'll need it some time soon...

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19929
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Heretic's Move Straight (useful for simulating projectiles)
« Reply #2 on: April 04, 2013, 08:41:04 AM »
Nice work. I'm glad to see that you got it done. xD
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Online Heretic86

  • Astral Trancist
  • *****
  • Posts: 740
  • LV: 29
    • View Profile
Re: [XP] Heretic's Move Straight (useful for simulating projectiles)
« Reply #3 on: April 05, 2013, 01:43:06 AM »
Thanks!

I was hoping to give someone else a chance and a goal to script something.  But the more I thought about it, the more I came up with ways to "improve" it, and decided I had to do it myself.

So although it is pretty simple, I tried to put it together in a way that it would become a very useful Animation Tool instead of something that is fairly well useless.  Hence the extra option to specify a duration in frames as opposed to just being speed dependant, which, when I thought about it, I most likely would have had to build that in anyway.
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.)

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1511
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP] Heretic's Move Straight (useful for simulating projectiles)
« Reply #4 on: June 23, 2013, 04:33:53 AM »
Hey is there anyway you can make this for VXA? I use it for cutscenes because in isometric maps i need the characters to walk at a different angle than normal

Online Heretic86

  • Astral Trancist
  • *****
  • Posts: 740
  • LV: 29
    • View Profile
Re: [XP] Heretic's Move Straight (useful for simulating projectiles)
« Reply #5 on: June 27, 2013, 10:41:13 AM »
I havent tried it on ace (dont own it) but it should work.  Might need to change the name of the classes or methods tho.  There isnt really that much to it, as 90% of the script is comments explaining stuff.  Havent had time recently, being nice and warm outside and Im sick of being stuck inside due to crappy weather!  Maybe this weekend I can take a crack at it...
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.)