4.1.5 When 2 sprites collide

View

Figure 108: Sprite changing colour when touches another sprite

 

With this code, a sprite will move from one point to another and will change colour when a black sprite is touching the white sprite. One sprite will be black, and another will be white, so when they meet, they will change costumes.


Last modified: Wednesday, 29 September 2021, 4:32 PM