Page 1 of 1

help with scripting

PostPosted: Wed Jan 23, 2008 10:51 pm
by Kooldudese
i need help,,, scripting... i need to know how to make a game so that when you press an animation to attack... it wont continuously attack... (the attack animation is on the actor...) and i need to know how to make it so that... when im attacking... and i colide with the enemy... he gets damaged, but when im not attacking he doesent get damaged. (this is different from the cases where you shoot something because the attack, is an animation on the player...ex.when a persons punching.) please help,

Re: help with scripting

PostPosted: Thu Jan 24, 2008 4:37 am
by Electric360
This demo I made is not that great but it might help.

Re: help with scripting

PostPosted: Thu Jan 24, 2008 11:59 pm
by Kooldudese
you mind cheking that data file? it doesnt work with me
it says that it cant find "robotleftattack*.png"

Re: help with scripting

PostPosted: Fri Jan 25, 2008 12:06 am
by makslane
Rename the folder "data folder" to "data".

Re: help with scripting

PostPosted: Fri Jan 25, 2008 1:02 am
by Kooldudese
oh, thx this was pretty helpful, i got it to work with markslane's advice :P

Re: help with scripting

PostPosted: Fri Jan 25, 2008 8:27 am
by alkoh002
You could also (if u dont want to script) make another actor (sword/fist) that will hurt the enemy on collision, and when u press the attack key it creates actor sword/fist on the right position of the character. This takes a while but it doesn't require scripting, though i recommend using scripts for this.