help with scripting

Talk about making games.

help with scripting

Postby Kooldudese » Wed Jan 23, 2008 10:51 pm

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,
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: help with scripting

Postby Electric360 » Thu Jan 24, 2008 4:37 am

This demo I made is not that great but it might help.
Attachments
Attack.zip
Cheap version of attacking
(23.22 KiB) Downloaded 102 times
The Fable of the Guardians:The Lost Haven(title pending)
Game Stats
Complete percentage: Didn't start
Currently working on: Making the spirtes.
User avatar
Electric360
 
Posts: 15
Joined: Wed Dec 05, 2007 2:00 am
Location: Right here :)
Score: 0 Give a positive score

Re: help with scripting

Postby Kooldudese » Thu Jan 24, 2008 11:59 pm

you mind cheking that data file? it doesnt work with me
it says that it cant find "robotleftattack*.png"
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: help with scripting

Postby makslane » Fri Jan 25, 2008 12:06 am

Rename the folder "data folder" to "data".
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: help with scripting

Postby Kooldudese » Fri Jan 25, 2008 1:02 am

oh, thx this was pretty helpful, i got it to work with markslane's advice :P
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: help with scripting

Postby alkoh002 » Fri Jan 25, 2008 8:27 am

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.
Current games:
Kreon (rpg) 2%
Gitaaah! (interactive) 5% (paused)

Past games:
Gurkot the game (arcade) 100% (ready)
Aeroth (rpg) 5% (cancelled)
User avatar
alkoh002
 
Posts: 33
Joined: Fri Sep 28, 2007 4:46 pm
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron