Moving Character like in FF series Combat
Brainstorming:
3 Objects flagged as Player
3 Objects flagged as Enemies
At the moment, the Player Object picks one of Enemies and change Anim to Attack, while the Enemies lose HP and changes Anim to Taking Hit. Also Create 'Slash' object at the Enemies.
Now, if we want the Player to approach the target too before attacking it.....
1st Attempt
* Player's Movement = Path
* Advanced Path Movement extension
Actions:
* APM Sets Object to Player
* Create New Path Node at Player's X and Y (problem is it doesn't know which Player to get locations from, since there're 3 Player Objects)
* Create New Path Node at Enemies' X and Y (Should be fine since there's Pick Enemies in the Condition)
* Connect Nodes 0 to 1 (Player to Enemies)
* Add Path Nodes 0 and 1 to Journey
* Start Movement
And I run out of Ideas now <_<'
Any1 with any idea or different approach?
Re: Moving Character like in FF series Combat
2nd Attempt
* Player's Movement = Sinewave
Actions:
* There's no 'Set Final X and Y position for the movement.
So the Player Object can only move to a specific location of the screen.
Re: Moving Character like in FF series Combat
3rd Attempt
* Player's Movement = Sinewave
* Set Speed to 999, uncheck 'Move at Start', On Completion 'Reset'
* Gwerdy movement controller extension
Actions:
* Set Final X and Y with extension
* Player object Move
But still unable to return the object back to the original location after attacking.
Re: Moving Character like in FF series Combat
why not something like using an alterable value:
Attack button pressed
+Alt A = 0
+Alt B = 0
+Flag 1 = off
-->
set Alt A to 32
Alt A > 0
-->
Move character Xpos to character Xpos -1
+Sub 1 from Alt A
Alt A = 0
+Flag 1 = off
-->
Play anim attack
Flag 1 = on
Set Alt B to 32
Alt B > 0
-->
Move character Xpos to character Xpos +1
+Sub 1 from Alt B
Alt B = 1
-->
Flag 1 = off
Hope that makes sense, but it should work, possibly smoother with fastloops but they might be too fast, who knows. :D
You might have to tweak it a bit for the flags to make sure they can't attack if attacking already, but for the most part it should work.
Re: Moving Character like in FF series Combat
Hmmm
well, one thing is that, each player's object has diff location. They're placed randomly. ( on those 12 'beacons' )
http://i28.photobucket.com/albums/c2...tanaSaga02.jpg
And I was hoping to making the 'moving' to the enemy part actually a Movement, so I can code that no Unit would gain Speed while anyone is moving..... Hmmmm, maybe I can make it by using Flag instead....... No speed gain while Flag Z is on, perhaps.
Lemme try a different approach then.
Re: Moving Character like in FF series Combat
Ummm, and because if the 'moving to the enemy' part and the 'attacking' part is a different Condition, I'm not sure the Unit will atk the enemy it moves to.... It might attack a different one.
Unless there's a way to ID each object. (which would help a lot, if it's flexible and powerful)
Gonna try Spread Value...