[XP] Heretic's Moving Platforms

Started by Heretic86, April 21, 2016, 06:11:19 am

Previous topic - Next topic

Heretic86

April 21, 2016, 06:11:19 am Last Edit: April 21, 2016, 06:16:52 am by Heretic86
Heretic's Moving Platforms XP
Authors: Heretic
Version: 1.0
Type: Movement Add-on
Key Term: Movement Add-on



Introduction
This script allows you to easily create Platforms that your Player and even other NPCs can hop on and be transported around with!


Features


  • Allow the Player to get on a Platform and ride it across impassable areas**

  • Allow NPC Characters to ride on Platforms**

  • Intended for large Multi Event Platforms

  • Platform Master allows one Event to control many

  • Platforms should "feel" just like walking around on normal Map Tiles

  • My fingers hurt from all this typing so I am not sure if that is a feature, does show commitment...



** Additional Scripts required for use of these features


Screenshots

Spoiler: ShowHide

(Animated Gif, give it a moment to load...)



Demo

Download Version 1.0 Here


Script

Spoiler: ShowHide

Script is in the Demo



Instructions

REQUIRES:
Heretic's Modular Passable
Heretic's Collision Optimizer
Heretic's Restrict Tile Passages (to move on Impassable Tiles)

Platforms are easy!
To create a Platform, just put in a Comment in the first 10 lines or so that says "\platform[n]" where "n" is a Number!

Next, give it a Comment of "\tile_allow_move[n, n]" where "n" is a Simple Tile ID!  (See Restrict Tile Passages for more info)

Next, give it a Comment of "\allow_npc" if you want NPC Events to move on your Platform.  (Feature requires NPCs on Event Tiles)

Next, give your Platform a Map Tile as a Graphic, set the Move Frequency to Highest, then give it a Move Route that has a WAIT command at locations you expect characters to get on and off.

Thats it!

If you wish to control a bunch of Platforms, use a Platform Master!  Just change one Event from "\platform[n]" to "\platform_master[n]" and that Platform Master will control ALL other Platforms where "n" is the same Number!  You don't even have to give the other Platforms Move Routes, Speed, Move Frequency, just set the Graphics!  This is a Platform Group!

NOTE:  You can only use one Platform Master per Platform Group

You can sync two or more Platform Groups by giving your Platforms or Platform Masters a "\platform_sync[n, n]" Comment where "n" is the Platform Group ID of the other Platform Groups you wish to sync with!  This means when a Platform waits for characters to get on and off, other Sync Groups will also wait for characters.  This is better displayed in the Demo.


Compatibility
Fully compatible with all other scripts that require Modular Passable, including Looping Maps.

This DOES work with Jumping and 8D Movement Systems.

This DOES work with Heretic's Caterpillar 2.0+

This most likely will not work with Pixel Movement scripts.

This does work with both ForeverZer0's and Blizzards Pathfinder scripts, however, you will not be able to pathfind on a Platform.

Not compatible with thin crust pizza when toppings include baloney and peanut butter.  What a disgusting combination.  Squid and Kiwi Fruit Pizzas are untested.


Credits and Thanks


  • Thanks to everyone that Beta Tested this script for me

  • Thanks to Blizzard for hosting the files I uploaded for the Demo

  • Thank you to Enterbrain for not putting this feature into RPG Maker XP and thereby giving me something to do.




Author's Notes

LEGAL

Pre release versions of this script included very strong legal restrictions preventing distribution of games with those versions due to known game crashing bugs.  Those bugs have since been corrected and the Legal has been altered to allow distribution of games, both free and commercial.  Trust me, if you are using an older version, your players will find those game crashing bugs and you'll only end up making yourself look bad.  I worked very hard to make sure this version does not have any game crashing bugs, but you may still experience some while building your game.

WAITING

If your Platform is not given a Wait command, then characters will not be able to get on or off of Platforms or Platform Groups by stepping or jumping on or off.  Platforms must have a Wait command for boarding and unboarding to commence.

DEBUG:

Additional stuff was written into the code to allow you to hold down the CTRL Key and get on or off of ANY valid Platforms.  This was done because once you are on a Platform, youre pretty well stuck there until the Platform uses a Wait command as part of its Move Route.  While in DEBUG mode, creators need to be able to hop on and off Platforms at any time.
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.)

Zexion

So I tried out the demo. It's like 99% probably my pc, but my fps was like 5. Regardless, I managed to get through the whole demo and I noticed something in the lava section at the end. If you take the platform and let it cycle through once, quickly take it again, it won't move. Simply getting off and back on fixes it but I just found that odd xD

Heretic86

Quote from: Zexion on April 23, 2016, 08:27:37 pm
So I tried out the demo. It's like 99% probably my pc, but my fps was like 5. Regardless, I managed to get through the whole demo and I noticed something in the lava section at the end. If you take the platform and let it cycle through once, quickly take it again, it won't move. Simply getting off and back on fixes it but I just found that odd xD


Hmm, thats kind of odd that your framerate would drop that much.  Both demo maps have Optimization scripts running so I'll try to dig into that and see if that is possibly script related or maybe something on your PC.  The maps are exactly the same as the ones in the "Collection".  Does the "Collection" version give you a poor framerate also?

As far as the lava cave platform cycling once, that was intentional.  That platform takes such a long time that I didnt want to trap people if they missed an opportunity to step off.  Of course, they can hold down CTRL (while in Debug / Edit mode) to leave the platform at any time, but I dont think everyone knows that...
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.)