How to change the color when they connect?
Camila

Can you see the lines and gray balls?I need to paint the ball and the line with the same color as the ball pair, when connecting is correct.

 

The colored ball will be a question and the gray will be the answer. When the right question find the right answer, they have to be with the same color.

 

print-waze.png

1 Comment
Gio

Hi

 

Assuming you are following this tutorial, that should be quite easy because the draw function of those dots is just looking at the color property of the sprite object. So something like this should work:

dotSprite.color = 'red';dotSprite.setDirtyArea();

setDirtyArea is just used to tell WADE that the sprite has changed, and it needs to redraw it.

Post a reply
Add Attachment
Submit Reply
Login to Reply