Smack wall this.Variable+=1
THe title pretty much says it all. Let me igve you the basics....
I have a hammer. All it does is change my ganis to paxe.ganis. I also have a wall that changes gif depending on the variable *this.raine*. Anyways, I need it so if I am standing right next to the wall (it is an NPC btw, a gif I drew) and I use the hammer, if it looks like it is hitting the wall i need this.raine to go up 1.
So basically:
Grab hammer. Run to wall. Use it so that it looks like the hammer is hitting wall. This causes this.raine+=1.
I dont know how to make it so if i am standing right next to the wall and use the hammer it will make the WALL's variable go up 1. |
|