gravity/ and using a sword
Posted: Thu Sep 22, 2011 7:19 pm
1. for gravity i use yvelocity + yvelocity = 2; it works and everything but when i get to the edge of a platform, he starts sliding away on the edge and eventually falls off. is there another code that I could use for the gravity script?
2. My character is a stick man with a sword and shield, when i want him to attack how do i make it so that if his sword hits an enemy then the enemy will die or get hurt depending on the hp level.
thanks,
Praaab.
2. My character is a stick man with a sword and shield, when i want him to attack how do i make it so that if his sword hits an enemy then the enemy will die or get hurt depending on the hp level.
thanks,
Praaab.