Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: dudebxl on June 06, 2015, 04:32:56 PM

Title: Fighter 3D Camera (Camera for a 3D fighting style game)
Post by: dudebxl on June 06, 2015, 04:32:56 PM
Original script from: http://hutonggames.com/playmakerforum/index.php?topic=10493.0

Originally for 3D Fighting game but can be used for anything and it does have some interesting camera movement with the right settings.

Get it from Ecosystem or https://snipt.net/dudebxl/  *** (only Fighter3DCamera.cs on Ecosystem)

FighterCameraAdvance is a different effect (3D or 2D compatible) but it is adapted for 3 or more players.

Update: Action on ecosystem has been updated. FighterCameraAdvance => FighterCameraAdvance2d (the old one will remain here as they are a bit different) & new action which is similar but different  -  TargetsTrackingOrthoCamera ** both on ecosystem.

enjoy
Title: Re: Fighter 3D Camera (Camera for a 3D fighting style game)
Post by: mdotstrange on June 07, 2015, 02:38:11 AM
You're awesome for creating all these new actions!  :)

Thank you!
Title: Re: Fighter 3D Camera (Camera for a 3D fighting style game)
Post by: cloud03 on June 07, 2015, 09:53:29 PM
Wow, I really believe this is going to be useful for a lot of people, thanks a lot for creating this!
Title: Re: Fighter 3D Camera (Camera for a 3D fighting style game)
Post by: LogLady on June 08, 2015, 11:30:45 AM
Thanks for converting this to an action! Would it be possible to add 2 more characters so the camera could track 4 players?
Title: Re: Fighter 3D Camera (Camera for a 3D fighting style game)
Post by: dudebxl on June 09, 2015, 08:31:58 AM
Bump

New camera action added.
Title: Re: Fighter 3D Camera (Camera for a 3D fighting style game)
Post by: jeanfabre on June 09, 2015, 10:53:06 PM
Hi,

 I realized that if you search for "fighter", it won't list it, because I htink the snipt search engine get's confused with the class name parsing or it searches for whole words only. I have raised an issue to make sure of the behavior to expect:

https://github.com/nicksergeant/snipt/issues/153

meanwhile, I would suggest you put in the script comment itself the search words, and then it will return it properly if you search for "fighter". As long as the whole word is somewhere int he script it will find it. So "// Keywords: Figher 3d Camera"  will do the job ( I have such keywords json property on metadata for some existing content on github.

Bye,

 Jean

Title: Re: Fighter 3D Camera (Camera for a 3D fighting style game)
Post by: dudebxl on January 02, 2016, 12:19:36 PM
*** Update bump
Title: Re: Fighter 3D Camera (Camera for a 3D fighting style game)
Post by: AlexarahX on January 08, 2016, 06:31:45 PM
Hi dudebxl do you plan on giving documentations or a tutorial on how to use this because Unity 5 still being typical Unity always manages to display errors and does not give reasonable detail as to what's causing it. I swear bros Unity 5 can be a low class engine at times.
Title: Re: Fighter 3D Camera (Camera for a 3D fighting style game)
Post by: dudebxl on January 08, 2016, 06:53:42 PM
Warning or error?

If warning then ignore.. but it should work as i was using it the other day in Unity5.2.

No doc, just play around until you find something you like  ;D
Title: Re: Fighter 3D Camera (Camera for a 3D fighting style game)
Post by: AlexarahX on January 09, 2016, 12:36:55 AM
 :-\ Hmm so you're using Unity 5.2 but I'm using 5.3 so is it possible that the changes that were possibly made in the newest version of Unity could cause these errors because I can't figure them out. Don't know if you noticed dudebxl but the Unity Team often make too many changes to every new version without even thinking of how it will affect the community. If I have to I'll try the version you're using and I'll let you know if that works. ;)
Title: Re: Fighter 3D Camera (Camera for a 3D fighting style game)
Post by: dudebxl on January 09, 2016, 05:33:48 AM
Can you post here the error? Would be good to know what is going on..
Title: Re: Fighter 3D Camera (Camera for a 3D fighting style game)
Post by: dorkirt on January 20, 2016, 07:44:11 AM
Hey

 Once again, thanks for your actions, really usefull!

I am getting this:

NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.FighterCameraAdvance.GetInterpolation (Single t, LerpInterpolationType type) (at Assets/_MMO GAME/Playmaker Custom Actions/FighterCameraAdvance.cs:309)

Thanks !
Title: Re: Fighter 3D Camera (Camera for a 3D fighting style game)
Post by: dudebxl on January 20, 2016, 08:22:30 AM
euh.. I don't know.

try with 2 cubes in the scene and see what happens (replace camera.. and Npc gameobject). If it works then it is the objects you are using.

Let me know
Title: Re: Fighter 3D Camera (Camera for a 3D fighting style game)
Post by: szomaza on October 13, 2018, 04:06:12 AM
Hi,

Just tried FighterCameraAdvance2d and in
2018.2.7f1
Playmaker: 1.9.0.p4

it says:

Code: [Select]
NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.FighterCameraAdvance2d.CalculateCameraPosAndSize () (at Assets/PlayMaker Custom Actions/Camera/FighterCameraAdvance2d.cs:271)
HutongGames.PlayMaker.Actions.FighterCameraAdvance2d.OnLateUpdate () (at Assets/PlayMaker Custom Actions/Camera/FighterCameraAdvance2d.cs:154)
HutongGames.PlayMaker.FsmState.OnLateUpdate () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:277)
HutongGames.PlayMaker.Fsm.LateUpdateState (HutongGames.PlayMaker.FsmState state) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2789)
HutongGames.PlayMaker.Fsm.LateUpdate () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2094)
PlayMakerLateUpdate.LateUpdate () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerLateUpdate.cs:21)

edit:
the simpler: TargetsTrackingOrthoCamera action works.

Br,
szomaza