Platform Builder Forums

Help and Support => Working with Platform Builder => Topic started by: Wizard Indie Games on November 23, 2020, 08:36:16 AM

Title: Making The Completion of All Goals Necessary
Post 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?
Title: Re: Making The Completion of All Goals Necessary
Post by: War on November 23, 2020, 12:39:58 PM
@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.
Title: Re: Making The Completion of All Goals Necessary
Post by: Antikore on November 23, 2020, 03:10:44 PM
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
Title: Re: Making The Completion of All Goals Necessary
Post by: War on November 23, 2020, 04:14:20 PM
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.
Title: Re: Making The Completion of All Goals Necessary
Post by: Wizard Indie Games on November 24, 2020, 11:21:22 PM
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!