Chaos Project

RPG Maker => RPG Maker Scripts => Topic started by: Heretic86 on April 02, 2013, 05:28:07 pm

Title: Are There Any Non 8-Directional Movement Scripts? [solved - I wrote one]
Post by: Heretic86 on April 02, 2013, 05:28:07 pm
Im just curious if there is any way to pull this off.  Say I had an event that I wanted to move directly to a location.  The event would move over say 4 tiles and up 1 tile.  The way it moves currently is go move one of the 8 directions, up, down, left, right, or diagonals.  Is it possible to just have the event move in a straight line from point A to point B?
Title: Re: Are There Any Non 8-Directional Movement Scripts?
Post by: Blizzard on April 02, 2013, 05:33:30 pm
You would have to change how RMXP handles movement. But yes, this is technically possible.
Title: Re: Are There Any Non 8-Directional Movement Scripts?
Post by: Heretic86 on April 02, 2013, 06:42:04 pm
Blizz, wouldnt you have something like this for Blizz-ABS already, like some sort of Auto Targetting Projectile, like Magic Missle that just hits the closest target Auto-*ahem*-Magically?

--- Edit ---

Okay, think I could talk someone into writing a script to do this?  I can do it myself, but, hopefully this should be challenging enough for up-and-coming scripters to get in some good practice...
Title: Re: Are There Any Non 8-Directional Movement Scripts?
Post by: Aqua on April 03, 2013, 01:06:49 am
What you want is Pixel Movement (one script) with Pathfinding (another script).
They both exist like a bazillion times in the script world.
Unless I misinterpreted what you meant.
Title: Re: Are There Any Non 8-Directional Movement Scripts?
Post by: Heretic86 on April 03, 2013, 01:41:12 am
I just wanted something to allow direct movement from point A to point B, no pathfinding, but something that doesnt move in one of the 8 directions.  Say you wanted to move from X-10, y-10 to x-12,y-17 in a straight line.  Straight here doesnt meaning that movement is limited only to the X or Y axis.  Think of it like a variation of Jump, but without the curve...

--- Edit ---

Nevermind.  I already wrote one.  But it still might be interesting to see what other people come up with...