Platform Builder Forums
Help and Support => Working with Platform Builder => Topic started by: Wizard Indie Games on November 23, 2020, 08:36:16 AM
-
I have a level in which the player must collect all score items to win the course. That works fine.
However, I have the secondary goal of finding the exit sign. I want the player to have to get all score items before being able to use the exit. It seems the exit sign works regardless of whether the primary goal have been completed. Likewise, finding all score items triggers the win immediately.
Is there any way to make the player find the items, then reach the exit before triggering the win?
-
@Wizard Indie Games maybe you can put a exit sign scenery sprite and a command area that checks if you have collected all items and wins course if the condition is fullfilled? That would also allow you to make a message like "you don't have all items" if the condition isn't fullfilled.
-
I have a level in which the player must collect all score items to win the course. That works fine.
However, I have the secondary goal of finding the exit sign. I want the player to have to get all score items before being able to use the exit. It seems the exit sign works regardless of whether the primary goal have been completed. Likewise, finding all score items triggers the win immediately.
Is there any way to make the player find the items, then reach the exit before triggering the win?
You can put a cp on score goal and set a variable to true, then instead of completing course with the exit sign, you make it manually with command prompt and check if the variable is true
-
You can put a cp on score goal and set a variable to true, then instead of completing course with the exit sign, you make it manually with command prompt and check if the variable is true
That's similar to what I said, except for the great idea of setting a variable to true, it could allow for getting a message "you can use the exit sign" when fullfilling the condition. However checking for score is a bad idea, he better make custom score objects that increase the checked value when collected.
-
Thanks so much, guys! You both helped me with this one. I have tested it several times and so far the player can trigger an exit only after collecting all items. Nice!