Help with text (code) please help

I’m trying to make it so if the player types a certain text it switches another frame but I can’t make it so it can recognize the text

Dude! I also need help with code, Because when I try to use the " random.float " script/code thingy. It doesn’t!

If you go to the wick editor web site and go to learn it should help you

Okay, I’ll check

Did it work?

Yeah it did.

Let’s go :D

I was able to fix it by outing let and only adding 2 equal signs

Text is handled partially like Clips.
Use this as an example:

// prompts are better than text inputs in Wick, the input is experimental...
var response = prompt("What frame should we go to?");
var where = parseInt(ressponse); // use parseInt to turn String into Number
if (!isNan(where)) { // parseInt returns NaN (Not a Number) when it's a string.
  // if the parsed string is a valid int-like float, then go there!
  gotoAndStop(where);
} else {
  alert("Hey buddy! Type a number!"); // if the number is NaN, then ask again
}

Some text handling code:

if (!isNan(where)) myTextThing.setText(where); // this should work if:
// you named the text myTextThing.

Thanks, I was able to fix it because it was doing === instead of ==

Oh… Now it makes sense.

1 == "1" // true
1 === "1" // false

Note: The creator of JavaScript made the == quirky. Because he wanted to help beginners in the 90s, where the majority of sites were a Perl-Powered mess.

Oh, that’s cool!!!

Btw since you now a good amount of code do you use a game engine?

I’m not making games, but if I ever make any, I would make a vector game engine, with tools, like Adobe Ilustrator, but a game.

Ah, ok. If you ever do want to though godot is really good

You should bring the stick man characters into the real world in a part