By using this code, it allows both sprites to move randomly. (move 10 steps, if on edge bounce, turn 15 degrees)
I also made the cat sprite say "hello", when it touches the bat for 1 second (if touching sprite 2? say hello for 1 sec, change score by 1) And it also has a point score, so when the cat touches the bat, it changes the score to one. The screen shot refers to the coding i have on each sprite.
No comments:
Post a Comment