Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: MatiasHarder on February 22, 2018, 09:24:27 PM

Title: Action Fsm to click an prefab and send to other location different[SOLVED]
Post by: MatiasHarder on February 22, 2018, 09:24:27 PM
Action Fsm to click an prefab and send to other location different

Hello everyone, a long time without communicating with you!

I would like to know how I can click on a prefab and send it alone to a different location where it is.

Example:

Before clicking

https://i.gyazo.com/673d66cd1a269d6e566778da68244b11.png

After clicking

https://i.gyazo.com/55e50b63d3b4ef13f98fcb3261ddc0ad.png

As you see in the image after clicking the prefab changes position (as a teleportation) as when goku is teleported from one place to another.

I hope you can help me, thank you very much and sorry my bad english.
Title: Re: Action Fsm to click an prefab and send to other location different
Post by: Fat Pug Studio on February 23, 2018, 02:25:46 AM
Define what position would you like it to move to (XY), and when you click it (on mouse down) set position to desired coordinates.
Title: Re: Action Fsm to click an prefab and send to other location different
Post by: MatiasHarder on February 24, 2018, 08:31:55 PM
Thanks you bro :D