Blocks Not Working In Math Game

beginner

#1

I am making a maths game but my blocks are not working. what exactly i am doing is assigning a specific value to number (say button 1 ,2,3,4,5 etc) and default text of the button is “0” when some one tap at the button it changes the value from x to y … i want to add all these values to another separate button Say button A. but it is not working it do change it’s value from x to y … but it dose not add the value in button A.


#2

Instead of using the plus block try using the join text block.


#3

I made a example how you can do what you want.

Try this:

math.aia (1.9 KB)


#4

@Mika It is very nice of you, almost problem solved . but i have only one thing left . the function will perform when someone clicks the sumbutton i want it to perform simultaneously without timer , because if i will use timer he will do its work after said time. say if i have 20 levels and i will be using 20 clocks. and that will create a mess.Can you help me there ?

Thank you again :slight_smile:


#5

Why not use a procedure and call it after every button click? Then you don’t need any clocks at all! :slight_smile:


#6

Thank You all @Mika @Domhnall For your help . i did it with this block


#7

Glad to hear that everything is working!