Ok.. so another annoying noob question frorm the noob king Fee... ::)
So.. In the fight sequence, im trying to make it so when you click the enemy with a wepon, the main character will walk over to him and then take a swing.
Is it possible to make him move to another character and swing? the character[FEE].Walk command only seems to accept co-ordinates. The Follow Command makes you walk around behind the Enemy. So if hes facing you, the character swings at nothing, then walks around the enemy. On the second attack they swing at nothing as they have their backs to each other.
So.. is there some other command that will make him move next to the enemy no matter what way hes facing? Can i use the character.walk command to do so?
The Follow command isnt too bad, i was goint to make them follow each other around in circles and fight for some reson he Swings at the enemy from a screen away, then procedes to follow him insted of follow then swing :/
Some1 wanna gime a hint here plz? :D
I have a few ideas i can do IF i cant get it to work like that, but they are crappy work arounds... then again, im pretty sure all my scripts are crapy work arounds lol :P
You could do a
player.Walk(cEnemy.x-20, cEnemy.y);
That'll walk your player to a spot just left of cEnemy (provided the enemy's scriptname is "ENEMY").
You could also add a check of the Enemys Loop (to see which way they're facing), and set the coordsinates based on the (so they're always in front of each other). Calling Character.FaceCharacter before the swing animation will stop them attacking thin air.
To delay the swing until after the walk, either use the eBlock parameter, or use variables to track whether they should attack when they stop moving. (The NoBlock module (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=26945.0), for cancelable interactions, might help here. At the least, you could get an idea how it's done.) Or you could base it on the distance between the characters (there's a formula for working that out in the Can I make an RPG (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=13649.msg305918#msg305918) thread) - just don't have the swing animation happen if they're too far apart.
Once again I thank you :D
I dont want to do too much scripting. Ive been using AGS only 2 weeks now so i was trying to keep things as simple as possible for this game to get the hang of things and i know the more complicated i try and make it, the more bugs it will have :P
Ill experiment a bit and see what i came up with that actually works :D
Unless the 'fight sequence' is just a Cutscene and not an actual fight, you're not going to be able to avoid doing a fair amount of scripting. As I just posted in another thread: AGS isn't meant for that kind of game, and while it's obviously possible there's no easy way to do it.
Nah its a fight.
And i dont mean No scripting, i just dont want to be scripting every possible animation depending on where they are standing. I was going to do the old Final Fantasy trick where they just stay on 1 sidede of the screen and swing at nothing and the enemy takes damage.
There is some controll, you can only swing as of right now, but after tonight i should have added eating health pots and a magic attack. I thought of some pretty simple ways to have a fight interaction setup. So if worst comes to worst i can fall back on them :P
(http://72.36.253.218/FIGHT.jpg)
Current fight screen :P