Essentials Series/Platforms: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1:
{{EssentialsSeriesBox}}
This page is part of the Essential Series modding tutorials. A '''Platform''' ([[PLAT]]) is an [[Asset#Entity Asset|entity asset]] that creates a model in the world, with all the possibilities of a [[SIMP]], but with the added functionalities. Usually, this is a programmable movement, but can be other things as well (such as springboards and conveyor belts). There are many different platform types and they can perform all sorts of functions. Platforms are, in the game, not only platforms in a literal sense. Anything that perfoms programmable patterns of movement that are not [[ANIM|Animations]] is a platform. Platforms can move on their own or be moved by [[../Links/|events]]. PLATsPlatforms are usually found in the Default layer of the level's HIP.
 
== Using Platforms ==
[[Industrial Park (level editor)|Industrial Park]] has a Generic Platform [[../Asset Templates/|template]]. After placing the template, you '''must''' assign it a model yourself, otherwise the game will crash.
 
You can check [[Asset#Entity Assets|Entity Assets]] and [[../Editing Assets/#Gizmos|Gizmos]] for general information about placement of Entity assets. [[../SIMPsSimple Objects/#Animations|Animations]] and [[../SIMPsSimple Objects/#Drivenby|Drivenby]] of SIMPsSimple Objects apply the same way for PLATsplatforms.
 
== Movement Preview ==
Line 11:
 
== Events ==
All [[../SIMPsSimple Objects/#Events|events which work for SIMPsSimple Objects]] function the same way on PLATsplatforms. Other events are also used on PLATsplatforms:
 
* '''Run''': send this to a platform to make it start moving.
Line 42:
 
=== MovePoint ===
This is a platform that moves according to a move point ([[MVPT]]) chain, much like enemies also can. The speed is also configurable.
 
Place Point_MVPT templates to use this platform type.
Place Point_MVPT templates to use this platform type. The platform will start at the MVPT whose asset ID is in the Motion section, and when moving will continue to the '''NextMVPT''' of the MVPT asset. Once the next has been reached, it will continue to the next's next, and so on. You can set the last point's Next to the first one to put the platform in a continuous loop. The platform will not function properly if it reaches a MVPT with no Next, but you can set the Next of the last one to itelf if you want it to stop there. The speed is also configurable.
* The platform will start at the MVPT whose asset ID is in the Motion section.
* When moving, it will continue to the '''NextMVPT''' of the MVPT asset.
* Once the next has been reached, it will continue to the next's next, and so on. The chain can be as long as you like.
* If you want the platform in a continuous loop, set the last point's NextMVPT back to the first one.
* If you want the platform to stop at the final MVPT, set its Next to itself. Do not leave any MVPT in the chain without a Next as the platform will not function properly.
* If a MVPT has multiple NextMVPTs, the platform will randomly choose one of them!
 
The platform will send the Arrive event to each move point when it arrives on it. You can use this to detect when a platform has reached a specific move point.
Line 71 ⟶ 77:
* '''Reverse''': send this to make it move in the opposite direction. This can be done while the platform is still moving forward. It will immediately reverse its movement.
 
If the information above confuses you, you can take a look at the game's original PLATplatform assets and even copy them to your level if one has a similar movement to the one you're looking for.
 
=== Pendulum ===
Line 154 ⟶ 160:
=== GroupUpdateTogether ===
Since platforms only update when the player is in a specific distance, two or more platforms might get off sync due to being in different positions. If you don't need a platform to always update, but you need its movement to be synced with other platforms:
# Create a [[GRUPGroup]] asset (you can place the Group template).
# Add all platforms that need to be synced to this group.
# Add the link ScenePrepare => GroupUpdateTogether to the group's links, with the group itself as the target.
When you are in the range for one of the platforms, all of them will be updated together instead of separately.
 
[[Category:Modding]] [[Category:Tutorials]]