Pages: 1
Topic closed
A dot is moving to the right on the screen and hits a red rectangle. Here's the problem I keep finding: as long as the dot is "touching" the rectangle the Score keeps rolling upwards!! If the dot hits the rectangle I'd like the score to change only by +1 or -1, depending on the game. And I want the dot to keep on going, because there are other rectangles to meet. But as the dot emerges from the rectangle the score might have gone from 0 to 118!!!! Reducing the size of the Sprites hasn't solved the problem; the score still rolls up because the Sprites are touching for more than an instant. Solutions would be MUCH appreciated!!!
Offline
I used to have the same problem... ^^ that helps!
Offline
^ That post will help you
|
|
|
Offline
The-Whiz wrote:
Code:
[if <touching [rectangle]>] [change [score] by (1)] [wait until <not <touching [rectangle]>>] [end of if]That should work.
WOW!!! That works perfectly! Really amazing. And I wouldn't have thought of that in a million years. Thanks so much: my project is working now.
Offline
Yeah I figured that out a while ago too it helps so much O.o
Offline
Topic closed
Pages: 1