Player types in a number in game? Help


#1

Hi,

How do you get a player to change a 'value' by typing in a number from keyboard?

Is this feature already available?

I'd thought of coding a keypad with numbers and an enter key...

But hoped there was an easier way to do it.

Thanks

MrD


#2

Eh...I'm too lazy to code it sorry
But
List (93 tags)
@BB-Box
@Allyb
@ArtyAnimal
@AvocadoDont
@AwesomeNachos
@BaconStudios
@BellaWafflez17
@BerryFOX
@BlastFusion
@bluedogmc-official
@BubblegumCupcakeMix
@ButterBark
@Candycane
@CatWithABrush
@ChocolateFox
@CodePerfect
@codingkit
@ColourfulBlack
@ConnellCoder
@CreationsOfaNoob
@cupcakemaniac1
@Cutedolphin
@DA-BEASTY
@DiamondDragon
@diss_track_queen
@DMF
@Dylan329
@Ella_13
@EmojiArts
@EmojisRUs
@Explorer_
@FascinatingTreehouse
@FluffyMarshmellow
@FoodDelivery
@FortatoBuilder
@FunkyGoldfish
@GiraffeProductions
@GLaDOS_On_Da_Forum
@Goku
@happy12345678910
@HappyPerson
@Himynameismeredith1
@IKeudin
@Jess888
@JojoDude
@KarmicSans2
@KawaiiRose
@Kitkat26
@KittyShip
@KoolM123
@KVJ
@LavenderArts
@lollypopcorn
@Mei-The-Riolu
@MiiR_legend
@MiNi
@minioncandy
@MudFlowerCat
@Murphy1
@NeoPixel
@Petrichor
@Paige1212
@Paydent12
@PerfectPanda24
@PianoGorilla2006
@Potter_Head
@PumpkinGirl
@Puppylulu
@PurpleStorybook
@Rainboom
@RubyStars
@ScarySweetheart
@Sensei_Coder
@Silverdolphin
@SnowGirl_Studios
@StarryDream
@Steelhooves
@StRiKe_Charler123
@Sugarisyummy
@TheDrawer
@Themasterofairjitzu
@treefrogstudios
@TrevCoding
@Valgo
@ValueGamesStudio
@Vortex.inc
@waddlemarco
@WasIdealessHere
@weathercats
@William04GamerA
@Yellow_Mellow
@YuxinaYammy
@Zachyswag


#3

I don't clearly understand what u mean tho


#4

Say you had a game where you needed the player to type in a number choice.

e.g. A multiplication tables game - What table do you want to learn? (enter digit 2 - 12) then keyboard pops up you type in a number and that changes the 'value' to what ever is typed in.

...Or An adventure game - What do you want to do now? (enter command. e.g. n = north)

Thanks

Mr D


#5

Gah. Sorry I have trouble understanding . I'm learning while dying this.
Do you mean that you want to make a keyboard? If so, I can help you!


#7

I made a keyboard like this in one of my drawing pads.


#8

Yeah I know ur project @Creationsofanoob @MrD sry I dunno how to solve this but these people might do


#9

@KVJ @Anonymous @BuildASnowman


#10

Welcome to the forum! I don't think this feature is possible, but you can make your own keyboard!


#11

This feature isn't currently available but some people have made keyboards and password type games before. This would obviously require quite a bit more coding.


#12

Is that the type of "keyboard" that you need?

Here's a link to the project: https://c.gethopscotch.com/p/y0u36oj8x


#13

@MrD

I love this idea (You must be "old" like me. I don't think most hops will know what you're referring to)

I've considered this previously and think you'll find 2 primary difficulties

  • Lack of arrays
  • Lack of text comparison operators

Both could be overcome but will quite difficult on Hopscotch. If you'd like to discuss these or any other topics, feel free to tag me.


#14

Right now, you can't use the iPad's keyboard to type in numbers. It isn't completely impossible though. You can make your own keyboard, each number a different sprite, so you can, for example, say "when '4' is pressed set value 'first number' to 4"


#15

You must create your own. Maybe email tht (help@gethopscotch.com) with this suggestion.


#16

M confused a born x:


#17

Thanks for all the help everyone, I'll have a look at the keyboard already coded, then think of a way of adapting. Will also try asking for the feature. Though if nobody else has asked for it then maybe it's unneeded?

Mr D


#18

I might be able to help you here–
What I understand for the multiplication table game is:
A text has the question "what multiplication table do you want to learn?" A keyboard pops up, and you type in the number of the table you want to learn while a text object changes to what you're typing? Once you press enter, the multiplication table for the number you typed in appears~sorry if I'm completely wrong.


#19

This is definitely possible (I think even a backspace would work), but it might be a little time consuming and difficult to make.


#20

Yes thanks, that is the idea, also answering the questions with a text input would be useful.

I'm working on a project which uses different buttons to select different tables but you fly a rocket to the correct answer.

Mr D


#21

Backspace is fully possible.