Hello,
I am very much a newb to Playmaker and game production in general, so please dont flame me if I'm missing something obvious.
I am trying to implement a basic move away from player (flee) routine into a gameobject, but am having trouble to get it to work.
Basically I have a friendly little bunny that bounces around randomly and will flee if the player gets too close.
There is an outer, and an inner trigger parented to the bunny.
Currently it goes something like this:
- Object wanders around, listens for player to enter outer trigger
- When player enters outer trigger object stops and tweens to face player, and waits for player to either exit the outer trigger, or enter the inner trigger
- When player enters the inner trigger, object rotates 180 degrees to the player's current Y rotation and then heads in that direction for several units and then goes back to step one
This issue I am having is on the last step, I am not sure how to properly face away from the player and then head away from the player for x amount of units...
Obviously an iTween "move away from" action would be ideal, but no such thing exists?
Any advice on how to implement this would be greatly appreciated, thanks