Author Topic: Pop-up message with input  (Read 1606 times)

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
Pop-up message with input
« on: October 23, 2018, 09:26:27 AM »
This shows like a pop-up message but it has an input to write in, then you can detect what you have written in the answer. Will be something like this:

Code: [Select]
/+(Message)
if answer = (value)
[answer]
If the command /+Write your game skill level from 1 to 5
Will show like a pop-up message with that message but with also an input
Then, when you click enter, the value you entered will be the answer, so
Code: [Select]
if answer = 5 will detect if you entered 5 in the input.

Example to use this
Code: [Select]
/+Enter your age for family-friendly reasons
if answer < 13
{
_Activating child filter
game var 1 = [answer]
}
Other example:
Code: [Select]
/+Enter the password to continue
if answer = 1581
{
unlock = blue
<block 3>Correct password. You can pass!
}
else
{
<block 3>Wrong password! You cannot pass!
}
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Pop-up message with input
« Reply #1 on: October 23, 2018, 04:31:13 PM »
I think this is what menus are for. And that's also what I was trying to suggest when conditionals were going to come out. But this makes more sense.

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Pop-up message with input
« Reply #2 on: October 23, 2018, 04:33:52 PM »
But I do have to disagree with the child filter example. PB games are for everyone. So, there's no need to do that.

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: Pop-up message with input
« Reply #3 on: October 23, 2018, 05:17:09 PM »
But I do have to disagree with the child filter example. PB games are for everyone. So, there's no need to do that.
It's just an example
I think this is what menus are for. And that's also what I was trying to suggest when conditionals were going to come out. But this makes more sense.
You're totally wrong with this, menus give you a full set of options to select. With an input, the player can input whatever he wants inside it, and I think you don't want to add a menu with all numbers from 0 to 9999 to make a 4-character password. Something that is easier in the password example. You understand now?
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Pop-up message with input
« Reply #4 on: October 23, 2018, 05:22:11 PM »
Oh! Yeah. Passwords would be cool.