Playmaker Forum
PlayMaker Feedback => Action Requests => Topic started by: westingtyler on September 14, 2017, 06:35:03 AM
-
Hello. I want to have random-seeming numbers appear on a display when you use a level key to "orient the sensors" to point at the new level to load.
What I really want to do is take the level name, auto convert its first five letters to integers, and display that, so it's not random each time, and each level has a unique one.
Basically, you'll be able to input these numbers as passwords even in a brand new game to go to any level at any time, and they'll always display the same when you use a key.
for example:
you used the "secret lab" key on the keyhole?
s=19
e=5
c=3
r=18
e=5
t=20
new coordinates to display: 195.318.520
a letter to int action would save a lot of time. a letter to int to string action (convert 1 letter to a string after first converting it to an int) would save even another step.
-
hi,
This is a very specific thing,
i think best is to an array for this.
if you want 'a' to be 1 leave "element 0" empty
Then place 'a' on "element 1" 'b' on "element 2" and so on
Then you can use array contains to look for the letter and save the index in a variable.
-
Hi,
You could also use ArryMAker and hashtables then you would have keys and values which could be easier to setup and may be clearer visually.
Bye
Jean
-
hey, guys. thanks. this makes it a lot simpler.