Coding tutorial/trick!

hopscotch
help

#1

Hi! I made this topic to share a cool trick for coding that I like to use in my projects.

This trick can be used to help trail art and pixel art respond to your tapping, or if you wanted just a characters arm or head or whatever to respond to your tapping, this will do it!


Here's the tutorial for how to do it!

1. Get out the Hopscotch character bear. In this tutorial, I'm going to make him jump when just his head is tapped.

2. Get out a circle and drag it onto bear's head. (you can also use a set position block for this step)

Go into the circles code and select a when game starts block, and then select a set invisibility block. Set the invisibility to 99.

3. Go into bear's code and select a when is tapped block. Choose when circle is tapped. Then select a pre-made custom jump block.


And there you go! With just three easy steps, bear now only jumps when his head is tapped. And you can't see the circle because it's invisibility is so high.


Try using this trick with trail art or pixel art to help make it respond when it's tapped! ;D


Thanks for reading! I hope you liked this tutorial, I'll probably make some more! :)


OMTL

List (114 tags)
@A.K_Studios46
@Allyb
@Artistic_cat
@ArtyAnimal
@AvocadoDont
@AwesomeNachos
@Awesome_giraffe
@BaconStudios
@BerryFOX
@BlastFusion
@braybraylovesmonkeys
@BubblegumCupcakeMix
@ButterBark
@celine
@ChocolateFox
@CodePerfect
@codingkit
@ColorlessCanvas
@ColourfulBlack
@ConnellCoder
@CreationsOfaNoob
@cupcakemaniac1
@Cutedolphin
@DatKawaiiPillow
@DECODECO
@DiamondDragon
@diss_track_queen
@DMF
@DragonMc
@Dylan329
@EmojiArts
@EmojisRUs
@Explorer_
@ExquisiteSoup
@FascinatingTreehouse
@FCD
@FearlessPhoenix
@FluffyMarshmellow
@FreshGuppy
@FunkyGoldfish
@GiraffeProductions
@GLaDOS_On_Da_Forum
@Gobli09
@Goobrgrlrye
@gryphonroadblocks
@happy12345678910
@HappyPerson
@Himynameismeredith1
@Hitokage
@Houseelf87
@HRR1213
@IKeudin
@ILoveFashion12
@Jess888
@Jojo
@JonnyGamer
@KawaiiHotDog
@KawaiiOaktree3
@Kayro
@kenlauescuadro
@KiraForPrez
@KoolM123
@Kosho
@kubajr
@KVJ
@LavenderArts
@LegendOfFriday
@Mei-The-Riolu
@Milkypup lol
@Mothwolf
@Mr.rex
@NeoPixel
@Petrichor
@Paige1212
@Paydent12
@PerfectPanda24
@PianoGorilla2006
@PIANOMAN
@Pink_Roses
@Periwinkle_Dolphin
@Potter_Head
@PumpkinGirl
@Puppylulu
@PurpleStorybook
@Rainboom
@Rider
@RubyStars
@RubyWolf1
@ScarySweetheart
@Sensei_Coder
@Silverdolphin
@Skyarmygenral
@SnowGirl_Studios
@sophia71205
@StarKid
@StarryDream
@Steelhooves
@StRiKe_Charler123
@Strongerthanyou
@Sugarisyummy
@Sweater
@TACOCODE
@treefrogstudios
@TrevCoding
@UnderagedCoder1
@Valgo
@ValueGamesStudio
@Vortex.inc
@waddlemarco
@W-Healer
@WhiteFeathers
@William04GamerA
@Work_kids_coding
@Yellow_Mellow
@YuxinaYammy
@Zachyswag
Get the latest list here: http://forum.gethopscotch.com/t/official-mass-tag-list-omtl/16843


How to tap invisible things
#2

Cool :D


#3

Thanks!!


#4

This is a really cool trick!!! Thanks for making and sharing this! :smiley:


#5

Woah, this is cool! Thanks for the tip! :D


#6

Why don't you make the invisibility 100%?


#7

Awesome, I love tutorials!


#8

Because then if you tap it it is invisible so it won't do anything


#9

Nice
I would give u a award for best kindness and best topics


#10

It won't respond to taps.


#11

Interesting. I never thought of that consept before. Thanks @lollypopcorn!


#12

This is really cool. Great topic and thanks for sharing this to the community @lollypopcorn!


#13

@Paige1212
@t1_hopscotch
@UnderagedCoder1
@LavenderArts
@William04GamerA
@TheAcingGamer

Thank you all so much!!!!

Can't wait to see what you can do with it ;D


#14

We should make a tutorial collab on hs
Just do tutorials for hopscotchers


#15

That would be cool! Unfortunately, I'm too busy to join in a collab. But you can ask some other people! :)


#16

Yeah
It looks soooooooooooooooooooooOoooooooo cool!
I could go on with the o's lol


#17

Fantastic tutorial, @lollypopcorn! If you use this in the Circle's code:

When 7=7:
-Set Position x(Bear X) y(Bear Y + 50) (or wherever his head is)

then it won't matter where Bear is, and you can always tap this head.


#18

Great trick frenapai!!!


#19

Thanks!

And that's cool! :D


#20

Thanks you too explorerpai ;D