Topic: Scripts to edit for moves to spawn different particles based on facing

Hi,
Brilliant work on the UFE framework. I would like moves to spawn different particles systems based on whether a character is facing left or right so that attack animations face the correct direction. I know how to achieve this in code, but I don't know which scripts I need to edit in order to do so. Can you please advise? Thank you
Cheers
Jerrel

Share

Thumbs up Thumbs down

Re: Scripts to edit for moves to spawn different particles based on facing

#on runtime ,you can see what different between player1 and player2.

my way is:
1.checked "sticky" on particle of MOVE
2.write a script to detect parent gameObject's transform.rotation.y
3.compare this rotation.y is '0' or '180'
4.according that, use script to modify your particle transform once.

note:
you need select render mode 'Mesh' in renderer of particle system component
http://www.lindsaygcox.co.uk/wp-content … /rain2.png

Share

Thumbs up +2 Thumbs down

Re: Scripts to edit for moves to spawn different particles based on facing

Thank you for posting the helpful information.
Cheers!

Share

Thumbs up Thumbs down