How to destroy Blueprint Floor? *Narghile please read this*
@Narghile & others
I'm trying endless runner. I'm spawning 4 floor tiles in Level Blueprint. Every floor contains "Box Collision" at end point. When user overlap it, it create new floor and destroy current one after 2 secs delay.
@Narghile helped me. I was casting my BP_FloorTile in Level Blueprint. But Casting failed. He said Blueprint doesn't exist and I have to spawn one floor manually in the Level. So I did that.
Problem: When player starts from Manual Generated floor tile and overlap Box Collision of first Auto-Spawn tile, I get Infinite Loop error in Construction Script. If I move "Player Start" location to Automatic Spawn Floor Tiles then everything is fine.
I don't want to leave any Floor Tile (Manual generated tile here) in empty space. How can I solve this problem?
Update: Infinite loop error occuring, maybe, because Manually generated tile also contains an "Attach Point" which tells where next tile will come. And as soon Character overlap "Manually Generated Tile" it creates one more tile overlapping first tile of "Level Generated Tiles".
First Case: Character passed the Manual Tile. One Additional tile generated over "Level Generated Tile".
2nd Case: Character passed the both overlapping tiles. And so generated two additional tile.
And so on, at one point there will be infinite tiles. How to resolve this?
Update 2: I can create a BOOL which can check whether it is first tile. If is it first tile then just destroy it, don't call Add Floor Tile Function. And set the BOOL. But I think whenever Overlap event occurs, BOOL value sets to default. I don't know how to make it kinda STATIC BOOL.
Follow this question
Once you sign in you will be able to subscribe for any updates here