Easiest way to spawn a staircase

butterbeanbutterbean Member Posts: 4,315
edited November -1 in Working with GS (Mac)
I was thinking of having a switch that once the player triggers it, it spawns a staircase to a doorway, but I wanted the staircase to spawn each stair separately until it reaches the doorway...

What would be the most efficient way of accomplishing this?

The problem I'm thinking of is alligning each stair with the appropriate X/Y coordinates so that they align to create one large staircase....

Is the only way to do this to create a rule that once player overlaps, collides with switch, executes button, that I have to spawn each stair separately via each coordinate?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Beware of feature creep!

    One way to do it would be to make the staircase out of cubes. Then use the cubes to build the staircase.

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • butterbeanbutterbean Member Posts: 4,315
    But how could I spawn each stair separately like the stairs are building up to something? Would I have to spawn each cube individually or is there a more efficient way to do it?

    Also, when we place items on the screen, is there a way to track what X/Y position they are in or not yet?
  • quantumsheepquantumsheep Member Posts: 8,188
    Well you could spawn the cubes to lead to something!

    Dr Ray Stantz: Hey... Where these stairs go?
    Dr. Peter Venkman: They go up!

    :D

    Also, if you've placed an actor in a scene, just look in the inspector window (where you can adjust the size, gravity, collision etc) - You'll notice it says 'position' and looking in there will give its x and y coords.

    Hope that helps!

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • butterbeanbutterbean Member Posts: 4,315
    You're always making a funny! :)

    Awesome! That does help !

    So If I place a cube on the screen where I want it to spawn, use that as the X/Y coordinate, it should spawn there, thanks Quantum, you are the best :)
  • quantumsheepquantumsheep Member Posts: 8,188
    I know, I know ;)

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

Sign In or Register to comment.