playMaker

Author Topic: key / string actions [SOLVED]  (Read 4078 times)

colpolstudios

  • Sr. Member
  • ****
  • Posts: 370
Re: key / string actions
« Reply #15 on: August 22, 2019, 06:27:53 PM »
Hi.
I cant really test as images and materials are missing.

But i can see that you save the key before checking, you should first check if equal to one of the other button strings.

Also on the 'new key' state you have set a equal AND a not equal event.
in this way only the 1st string compare will be compared, all the rest will not be checked.

it should look someting like this :



Also you might want to use the current ui as gui is outdated.

The way that you suggested will not work as there will always be a duplicate.

The answer was Not to do it in the state

The button checker stores the result of each possible key in one variable "stored key"

If any duplicate is found the bool will be true.

now the tricky part,

A pause key is used only when using the joystick control.

So,

In the pause fsm we get the reference of our bool.

storing this value, we can then check, with a bool test true or false.

True inform the user and reset the player prefs back to preset settings and return to start state.

Now you must change the buttons so no duplicates

False then load 0.

I am still working through most of this so update and a playable demo soon.



colpolstudios

  • Sr. Member
  • ****
  • Posts: 370
Re: key / string actions
« Reply #16 on: August 23, 2019, 08:52:13 AM »