Author Topic: Making The Completion of All Goals Necessary  (Read 1204 times)

Wizard Indie Games

  • Level 7: Tilbub
  • *
  • Posts: 145
    • View Profile
Making The Completion of All Goals Necessary
« 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?
« Last Edit: November 23, 2020, 08:37:03 AM by Wizard Indie Games »
Developer of:

AI Anomaly
Dickie A Cumming
Someone Cloned The President
Freedom! Do or Die
Pension Day
Red Mist: Rivers of Blood

Available on Steam

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: Making The Completion of All Goals Necessary
« Reply #1 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.
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Re: Making The Completion of All Goals Necessary
« Reply #2 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
Sorry because my English is not very good because I'm Spanish ;) :P

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: Making The Completion of All Goals Necessary
« Reply #3 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.
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

Wizard Indie Games

  • Level 7: Tilbub
  • *
  • Posts: 145
    • View Profile
Re: Making The Completion of All Goals Necessary
« Reply #4 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!
Developer of:

AI Anomaly
Dickie A Cumming
Someone Cloned The President
Freedom! Do or Die
Pension Day
Red Mist: Rivers of Blood

Available on Steam