Tracking Numbers and making them display an image

Hello there, I'm trying to build a game. In the game you press a button then 2 numbers will pop up on the screen, then if both the numbers land on 1, you will have an image pop up on a canvas..
I can not find out how to make it where I can track when both numbers land on 1. Here's how I have tried:"If dice 1 text = dice 2 text = 1, then set canvas 1 background image to 422131.png. It still doesn't work. Do you know how to fix this?

Try like this

image

1 Like

@TIMAI2 I don't have just a normal "and" button all I have in my Logic blocks are "Black AND blank. not just a normal "and"

I meant blank AND blank

In designer, check your Screen1.properties for this setting:

image

It should look like the above ?

1 Like

or do you mean it looks like this:

image

If so, you can right click on this block and select External Inputs to make it look like mine. it is the same block, just a different view

1 Like

@TIMAI2. I have the exact blocks thing you put in at the top but when both numbers land on 1, the picture does not display.

Try this simple project

diceImage.aia (9.3 KB)

(I set the randoms to 1 and 3 otherwise it takes ages to get 1&1) :wink:

image

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.