Pages: 1
Topic closed
When a sprite touches another, I want a variable to go up in value by just one. However, because they’re still touching, the variable keeps going up after the initial contact. How can I stop the variable from accumulating value after the first contact? Thanks in advance.
Offline
Just tell it to wait until it's not touching the sprite any more before it adds another value, like this:
When green flag clicked Forever If <touching sprite1> change variable by 1 wait until <not <touching sprite1> > End If End Forever
Offline
Hey I am making a scratch game... obviously.... but i need help with it! I want a sprite to be able to be clicked when 4 other sprites are touching a block. but they will not touch in a specific order. Is this possible using a variable count up until all 4 sprites are touching the block? Then what!?!?!
Please Help!
Offline
paragonanimation wrote:
Hey I am making a scratch game... obviously.... but i need help with it! I want a sprite to be able to be clicked when 4 other sprites are touching a block. but they will not touch in a specific order. Is this possible using a variable count up until all 4 sprites are touching the block? Then what!?!?!
![]()
Please Help!
Put this in the four sprites touching the block:
Put this in the sprite being clicked:
Offline
Topic closed
Pages: 1