Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: DeerHunter on April 15, 2017, 02:48:55 AM

Title: Problems with Cannon I made[SOLVED]
Post by: DeerHunter on April 15, 2017, 02:48:55 AM
I made a Cannon, However, after shooting, the rotation of my cannon changed randomly
Title: Re: Problems with Cannon I made
Post by: djaydino on April 15, 2017, 03:02:09 AM
Hi.
It might be because of the cut to camera action.

try turning of Cut back on exit and make another state and use cut to camera to go back to your main camera or the camera you want to.

If it is stil the same, try to put a state in between with a 'next frame even' action.
Title: Re: Problems with Cannon I made
Post by: DeerHunter on April 17, 2017, 04:31:00 AM
First solution doesn't fix the problem, and I am not quiet understand your 2nd solution, Would you elaborate 2nd solution?
Title: Re: Problems with Cannon I made
Post by: Ofonna on April 17, 2017, 03:03:35 PM
you should rectify the 1 error in i see on the picture as that could be the cause, secondly the mouse look could also have an effect, what object are you rotating with it?, thirdly the prefab itself could have an awkward rotation so you might have to set the rotation in the "create object" action, fourthly in reference to his second solution, theres an action called "next frame event " which is used to avoid  events overlapping or overlooping in a single frame and so it causes the event to take place in the next frame
Title: Re: Problems with Cannon I made
Post by: DeerHunter on April 18, 2017, 07:16:30 AM
Thank you I solve this problem by using rotate.