Here's another way to do it:
Initially give "Sprite" the attribute solid. Sprite only needs 1 private variable 'time'.
Also add a box object and add it to a container with sprite. The box objects will serve as the collision detection for sprite because when sprite is set to no collision an overlapping condition can never be true.
Here's what I came up with: