Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Heretic's Moving Platforms [XP]

Heretic's Moving Platforms XP
Authors: Heretic
Version: 1.0
Type: 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

Platform.gif

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

Demo

Download Version 1.0 Here



Script

Code:
 

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.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top