Need help with score on game

helpwithcode

#1

Okay, so I want when the object touches the other object the score to stop counting up and that would be the final score. Though I don't know how to make it stop. Help anyone?

OTML

List
@BB-Box
@aquaturquoise
@ArtyAnimal
@AvocadoDont
@AwesomeNachos
@BellaWafflez17
@BaconStudios
@bluedogmc-official
@BubblegumCupcakeMix
@ButterBark
@Candycane
@CatWithABrush
@ChocolateFox
@Cutedolphin
@CodePerfect
@codingkit
@ColourfulBlack
@ConnellCoder
@CreationsOfaNoob
@cupcakemaniac1
@DA-BEASTY
@diss_track_queen
@DMF
@Dylan329
@Ella_13
@EmojisRUs
@Explorer_
@FascinatingTreehouse
@FluffyMarshmellow
@FoodDelivery
@FortatoBuilder
@FunkyGoldfish
@GiraffeProductions
@Goku
@GLaDOS_On_Da_Forum
@happy12345678910
@HappyPerson
@Himynameismeredith1
@IKeudin
@Jess888
@JojoDude
@KarmicSans2
@KawaiiRose
@Kitkat26
@KoolM123
@KVJ
@KittyShip
@Mei-The-Riolu
@MiiR_legend
@minioncandy
@MudFlowerCat
@Murphy1
@NeoPixel
@Paige1212
@Paydent12
@PerfectPanda24
@PianoGorilla2006
@Potter_Head
@Puppylulu
@PumpkinGirl
@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
@DiamondDragon
@Refugeecat123


#2

Here's a basic solution you could implement. Have a value called "Stop Counting" (you don't have to call it that exactly, but that's what I'll call it.)
When the objects touch, you can set Stop Counting to 1. Also have an "if" block wherever you increase the score, only increasing the score if Stop Counting = 0.
Try that, and it should work!


#3

Okay, thank you @Valgo!


#4

Oh, and by the way should it be check if else or check once if? I think it should be check once if but I dunno.


#5

If you want it to do nothing instead of increasing the score, just make it the normal "if". If you want it to do something instead of increasing the score, then you will need the one with else.


#6

Got it, thanks


#7

@Valgo omg you just got help from a legendary coders @Himynameismeredith1