I need help for HHC2016!


#1

I need help for HHC2016! Can someone tell me how to keep score on a game?
For example when you tap a certain object your score goes up +1.
When I publish the project I will give credit to the person who helps me.


#2

You use this code:

When object is tapped
{
Increase value (Score) by 1
}


#3

I am still having a bit trouble.The number won't change.


#4

Then also have a repeat forever block with Set Text to (Score) inside it.


#5

I can't put score in the set text box.
Sorry, but I haven't made a game in months.


#6

Here:

Then


#7

Oh my gosh thanks so much! I guess I needed visuals.


#8

Mine doesn't seem to be working. Am I doing anything wrong?


#9

Change the anything block to the thing that hits the object. Then it should work.


#10

Thanks a lot! I appreciate it!


#11

You are welcome!! If you need anymore help just ask me!!


#12

It's still staying at one whenever an object hits it!


#13


Am I doing any thing wrong?


#14

It is doing the same to me.


#15

I tried to post a video on what's happening but I can't.


#16

Remove the Set Score to 0, because that resets the score everytime you tap on Zombear.


#17

@PenguinGaming713 @PIANOMAN Think about what's going on. When you tap or bump or whatever your rule is, your code sets "Score" to 0, increases score by 1, and then set's text to score. That means it will always stay at 1.
Instead, spread it out over multiple rules:

When play button is tapped:
Repeat forever
Set Text to Score

When (object) is tapped
Increase score by 1


#18


I did it!happy dance


#19

Yayayayayayayayayayayay


#20

Thanks @BuildASnowman! That helped a lot!