how to grow in width only?
ragg
Member Posts: 65
it is possible to make an actor grow only in width and reduce to its original width when touching something?then grow again when reaching its original width?
Comments
when collide with wall:
timer :every 0.01s
change attr: self.size.width to max(self.size.width-1,20)
otherwise
timer :every 0.01s
change attr: self.size.width to self.size.width+1
but when collide with the wall...it couldnt reduce its width...i think because of the not colliding with wall rule keep it increasing size while colliding with wall keep it decreasing size,causing neither increment not decrement at the end....
how to solve this problem?thanks