Tilt-ing platform script. (Help)

Discussion in 'Halo and Forge Discussion' started by FORGE PLAY, Jun 23, 2017.

  1. FORGE PLAY

    FORGE PLAY Legendary

    Messages:
    59
    Likes Received:
    19
    It sounds easy.

    But I need a floor to tilt 15 one way, flatten out than tilt 15 the other way.
    Repeat in reverse, repeat again.

    Tilting back and forth.

    Whichever trigger I use it will tip dominant to one side eventually.
     
  2. ExTerrestr1al

    ExTerrestr1al Forerunner
    Senior Member

    Messages:
    2,387
    Likes Received:
    2,515
    this will be tricky, for sure. The main problem being, that a player's "weight" negatively affects the movement of pieces. It will likely knock the platform out of position when a player touches it, and then not go back to the way it was supposed to be without respawning it.

    Take a look at Octagon Ex linked in my sig, which employs a method of respawning its rings after movement is complete.

    You will likely need: (to get you started... I can't spend much time on this write-up now)
    A script On Timer, telling the piece to rotate to one side, wait x time (optional), reset position (time =same time used in first action)
    If you did not want a wait time, you can fit two more actions on same script. Despawn, then spawn. If you do this, it will not be apparent the thing has respawned.
    Then a script doing the same as the first, just to the other side, with enough initial delay in the timer, to allow the completed first script.

    If you time those exactly right, there should be no possibility of them overlapping and getting messed up.

    As mentioned above, however, your biggest challenge may be that players will upset the positioning of the platform. That is why you MUST respawn it between movements. (Again, see Octagon Ex as a successful implementation of this respawn method)

    Good luck.
     
    FORGE PLAY, Portaleer and qrrby like this.
  3. Portaleer

    Portaleer THE FORGERUNNER
    Staff Member Forge Critic Senior Member

    Messages:
    319
    Likes Received:
    565
    I wish I had a solution for you but I'm no script brain, but a script tard rather. I read this though and I found it very informative. Makes sense that you would have a floor tilt, move back, despawn, being immediately replaced with another one so that it can lean the other way. Sounds awesome.
     
    ExTerrestr1al likes this.
  4. FORGE PLAY

    FORGE PLAY Legendary

    Messages:
    59
    Likes Received:
    19
    This gives me an idea.
    Have a clone platform despawn on match start.
    The first one rotates once, moves back than despawn its self while spawning the clome back.

    The clone moves the opposite direction, rotates back.
    Despawn itself and spawns the original back....repeat..
     
  5. ExTerrestr1al

    ExTerrestr1al Forerunner
    Senior Member

    Messages:
    2,387
    Likes Received:
    2,515
    FP, that should work, but may not be necessary. I think you just need several scripts with two movement scenarios placed on the same platform. Respawning it afte revery sequence is very similar to your cloning method, but with fewer pieces obviuosly...

    Test the simultaneous depsawn/respawn by setting a timer to just do both actions ever X sec, and stand on the platform. It should not be apparent to you at all that it has occured. You can also trigger a Sound to play every interval too, so that you know when this should be noticeable.

    Respawn resets things perfectly back to their original position, which is why it is so attractive, if viable.
     
    #5 ExTerrestr1al, Jun 26, 2017
    Last edited: Jun 28, 2017

Share This Page