Easiest way to spawn a staircase
butterbean
Member Posts: 4,315
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?
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
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
Also, when we place items on the screen, is there a way to track what X/Y position they are in or not yet?
Dr Ray Stantz: Hey... Where these stairs go?
Dr. Peter Venkman: They go up!
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
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
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io