If an object(Hero) collide with another object(A) it increase its size,also when it collide with another object(B) size decreases. So can you tell me how to set up global variable for Hero to achieve this.
Develop games in your browser. Powerful, performant & highly capable.