Create your own FPS Game - Part 1 - Unity3D using Playmaker

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024

Комментарии • 92

  • @TimM-kz1vl
    @TimM-kz1vl 4 года назад +9

    I did it. I bought Playmaker and followed this tutorial. It really is this simple. I was so damn nervous. gonna leave my notes below so people, including myself, don't have to keep rewatching this vid if they need a refresher.
    Create a capsule for player, a plane for ground. Make a new material and name it Ground, drag it onto plane, name the plane “ground”. Click on Albedo, set it to some random design.
    Create a new empty object under player, name it Position_Camera_Here. Position it roughly where the character’s forehead would be.
    Create new object called Player_System, drag Player to it. This is where we will store all of our stuff for the player.
    Setting up our camera
    Create new empty game object. Call it Camera_Base and drag it under player system. Create a NEW camera, call it fps camera and drag it under Camera Base.
    Create new fsm on CAMERA BASE. Click on first state, go to action browser bottom right. Type in move to. Select move towards, set “target object” to “position camera here” set speed to 25. Set “Finish “ to 0.
    Rename state 1 to followthecameraherepos
    Setting up player controlsNew FSM on player, call it FPS_Movement
    First state: rename to SetPlayerState
    Add transition FINISHED
    Create new State and link FINISHED to it.
    State 1(SetPlayerState):
    Add variable>Gameobject call it PlayerObj.
    If you check “Inspector” what you are doing will show up under the inspector in real time.
    Add an action called Set Game Object. Add Playerobj to it’s variable. Set gameobject to player.
    This means that every time we reference PlayerObj it will always be our player.
    Change the name of the second state to “Movement”.
    State 2(Movement):
    Add action “Get axis vector”
    It drives our character motion, but we need to create a vector for our character movement first.
    Add variable type vector 3. Name it “input vector”. Go back to the state tab and set the “store vector” to “inputvector”
    Create another variable as a float. Name it “inputmagnitude” Go back to state and set Store magnitude as “inputmagnitude.”
    Make sure “inspector” is checked for all variables.
    State 2(Movement):
    Add action “controller simple move” Set it’s move vector to ” inputvector”
    Go to the “get axis vector” action and set it’s “relative to” as the “FPS_CAMERA”
    Go to the player FSM, go to the movement state, controller simple move and change speed to ten.
    To set up looking where the mouse goes, go to FPS_CAMERA and set up a new FSM called FPS_Lookaround.
    Change state 1 to Camera_Look. Action browser> Mouse look. Change sensitivity to a 3.
    To invert, project settings>input. Then axis, mouse y, and select invert.
    If you look down, you clip through the capsule of the player. Move the “position_camera_here” up and out a little so it sits away from the capsule’s “forehead”
    You can copy a component’s variables by going to the component, right clicking and going to “copy component” and then paste them later, so if you screw with something in playmode, you can save the data instead of retyping it.
    Now the camera is moving but the player doesn’t stay behind it. Create new empty object under FPS_CAMERA called Player_LookAt_here. Move object out, but no other axis or the player will be offset.
    Go to player FSM>movement state. New action “Look at”. Set “target object” to “Player_LookAt_here”
    Now you’re all set up.

    • @CadaverKuma
      @CadaverKuma 4 года назад

      Why are you a legend?

    • @JJforYoutube
      @JJforYoutube 4 года назад +1

      This guy is prolly one of the greatest human beings in history

    • @kanavsethi5726
      @kanavsethi5726 4 года назад

      Thank you so very much!

  • @artcadev
    @artcadev 4 года назад

    Amazing! Still relevant in todays Unity 2019 LTS version, both love Unity and Playmaker, one of those users who got Playmaker 6 years ago and never gave it a try until now. Cheers thx for the making it XD

  • @ResonanceMusic2011
    @ResonanceMusic2011 8 лет назад +1

    You are awesome mate. Graduating from Construct 2 this is perfect. Please more Unity Playmaker Tutorials! I'm gonna be a patron when I get a job, no doubt. Broke business major here with a heavy interest in game design. Best tutorial's on the net here man. Pacing is perfect.

    • @Filmstorm
      @Filmstorm  8 лет назад

      Thanks for the compliments, but thankyou for taking the time to go through them. I am making sure with each tutorial it's easy to follow, keep an eye out for more :)

  • @TimM-kz1vl
    @TimM-kz1vl 4 года назад

    This is both quick and simple. Thank you so much. I'm still debating on getting Playmaker since it's currently 65

  • @quae6843
    @quae6843 5 лет назад +2

    10:15
    Also you can just set the "Mouse Look" Sensitivity Y to -3 as another way to avoid inverted Y axis look.

  • @dcadjust
    @dcadjust 9 лет назад +1

    Glad I found you. Your tutorials are really good and your explanations are crystal clear.
    It makes things easy to understand for newcomers.
    Thank you. Subscribed!

    • @Filmstorm
      @Filmstorm  8 лет назад

      +Sam Botha All good, thanks for watching!

  • @JRichard112
    @JRichard112 8 лет назад +1

    Hey, great tutorial, I really learned a lot about the different ways to use multiple empties as a "system". Thanks.

  • @shrekdedos
    @shrekdedos 9 лет назад +1

    Very good tutorial! Would love to see other Playmaker ones with advanced FPS camera effects, Raycast, etc...

  • @MrSurviv0r
    @MrSurviv0r 7 лет назад +1

    Thank you for taking the time out to make these. I sincerely appreciate it.

    • @Filmstorm
      @Filmstorm  7 лет назад

      +Mr Verbatim You're welcome!

  • @williamstowaway1115
    @williamstowaway1115 6 лет назад +1

    Good tutorial man, learnt alot about playmaker in such a short video

  • @MechanicOrga
    @MechanicOrga 8 лет назад +1

    I followed the tutorial up to 4:20 and typed in "fsm", but I do not get any searches for Playmaker despite it being installed. Why is it doing this?

    • @Filmstorm
      @Filmstorm  8 лет назад

      First save and close unity and reopen - this may get it to work. Otherwise try deleting the playmaker folder and reimporting it again... sometimes it may take a couple of goes to get it compile :)

    • @MechanicOrga
      @MechanicOrga 8 лет назад +1

      Okay, I will try that when I can. o3o

    • @Filmstorm
      @Filmstorm  8 лет назад

      Excellent.

    • @MechanicOrga
      @MechanicOrga 8 лет назад +1

      I found the problem. I installed the "installer" and then had to install it again. IDK why it was that complicated but I didn't do it incase I duplicated the addon. :P

  • @punchdarkwing1591
    @punchdarkwing1591 6 лет назад +2

    YOU ARE AMAZING! I LOVE THE TUTORIAL!

    • @Filmstorm
      @Filmstorm  6 лет назад

      You are very welcome! Glad you enjoyed it! 👍🏼

  • @hasnain_elahi
    @hasnain_elahi 4 года назад +1

    Guide me about Jump action of this capsule FPS Game

  • @TimM-kz1vl
    @TimM-kz1vl 3 года назад

    FYI the "inspector" checkoff box was renamed to "input"

  • @camposancos
    @camposancos 9 лет назад +5

    I love this toturial but I' will be perfect if you put some general explantion about what we will see. You go so straight that it's difficult to get the general idea and it becomes a "Follow and see" but not a learning process. THanks.

    • @Filmstorm
      @Filmstorm  9 лет назад +1

      +Daniel González Portela Perfect feedback, yes I will try to include a brief overview at the start of new videos from now :) Thanks Daniel!

  • @MusicandGame23
    @MusicandGame23 7 лет назад +1

    I dont know Photon Network can be working in Playmaker yet?

    • @Filmstorm
      @Filmstorm  6 лет назад

      It can with the latest releases from Hutong

  • @chitubrothersgaming1515
    @chitubrothersgaming1515 3 года назад +1

    Bro plz provide playmaker version capable for unity 5 plz plz plz

  • @cardo128
    @cardo128 4 года назад +1

    I realise this tutorial is 4 years old by now, but is still very useful so thank you. One thing I don’t understand is why you need a separate camera base to snap to/follow? Why not just have the camera a child of the player capsule? I’ve seen other videos do it this way too and it seems counterintuitive to me but can’t seem to find any answers 😅

    • @Filmstorm
      @Filmstorm  4 года назад +1

      If it’s a parent of the player capsule it inherits the entire transform of it which in some cases doesn’t give us the correct functionality we are after. But if snap to a camera base we can use the capsules transform when we need it if we need it. Makes it a lot easier :)

    • @cardo128
      @cardo128 4 года назад +1

      Filmstorm thanks for the quick response! What kind of instance would you not want to inherit the transform? You can already split mouse look into 2 separate actions to rotate the capsule on the horizontal and camera only on the vertical. Thanks again for the great tuts!

    • @Filmstorm
      @Filmstorm  4 года назад +1

      Say if you want to smooth the FPS camera movement so it’s not a 1 to 1 movement of the parent, you can use the camera base position and smoothly lerp to it over a set time, this creates a much nicer view for the player because it evens out a lot of the little bumps in the terrain as well. There’s a lot you can use this approach for but this is a great reason :)

    • @cardo128
      @cardo128 4 года назад +1

      Filmstorm ah yeah! Hadn’t really considered needing that on the camera but I can see it may be useful with a delay on the vertical for crouching/jumping perhaps. Glad to understand the reasoning behind it and that my solution isn’t necessarily the ‘wrong’ way to do it, but this way gives you more options to expand on the system 👍

    • @Filmstorm
      @Filmstorm  4 года назад +1

      Awesome! Glad I could answer your question :)

  • @problemchild959
    @problemchild959 7 лет назад +1

    is there a way to make a game like this where you can switch between 1st and 3rd person with playmaker ? i can find all kinds of tutorials on each 1 separately but nothing on making it user switchable ?

    • @Filmstorm
      @Filmstorm  7 лет назад +1

      +Jaqueline Loriault Yes there is, I can make a tutorial on it. I also made a script package available on my Gumroad which simplifies this process.
      www.gumroad.com/filmstorm

    • @problemchild959
      @problemchild959 7 лет назад +1

      a tutorial would be awesome, unfortunately I can't buy much of anything right now as I'm on SSI disability and limited funds. now if I could just find a tutorial on using photon on premise not cloud with playmaker I'd be set. I can do all this by hand in c# but to be honest getting sick of racking my brain over c# typos lol playmaker just makes it so much easier.

    • @Filmstorm
      @Filmstorm  7 лет назад +1

      +Jaqueline Loriault Hi Jacqueline, I have created a tutorial for switching between 1st and 3rd person and it’s scheduled for Monday, I’ll post a link on this comment or just check the channel then and you’ll see it :) Good luck and I hope you like the tutorial.

    • @Filmstorm
      @Filmstorm  7 лет назад +1

      +Filmstorm *Jaqueline (just wanted to fix my comments spelling)

  • @internetcomputer1009
    @internetcomputer1009 3 года назад

    These are great. Thanks a lot.

  • @ThePixelitomedia
    @ThePixelitomedia 9 лет назад +1

    great! Please continue!

  • @alexhamil7947
    @alexhamil7947 5 лет назад

    Great work 👍

  • @clarenceeda9487
    @clarenceeda9487 8 лет назад +2

    My camera keeps rotating after adding Look at action to Player and set PlayerLookHere as gameobject

  • @westingtyler1
    @westingtyler1 6 лет назад +1

    I'd like to see how to use "mouse look" except with a gamepad axis. When i turn the right thumbstick, I want this Mouse Look thing to happen to turn the player around and change where the player is looking. How do we do that?

    • @Filmstorm
      @Filmstorm  6 лет назад +1

      Free 3rd Person Camera Setup & Camera Collision Tutorial ruclips.net/video/LbDQHv9z-F0/видео.html
      This should help - this is a custom script which controls both joystick and mouse 👍🏼

  • @rifqiakhmad4601
    @rifqiakhmad4601 4 года назад

    Mate, help, you are missing a key element, and that is jump, can you make a tutorial (or you can reply my comment if it's short) on how to jump based on this series of video? I know it's a bit of old but it would help me alot

  • @DatYouTubeGuy
    @DatYouTubeGuy 6 лет назад +1

    How would you do a jump and crouch function?

    • @DatYouTubeGuy
      @DatYouTubeGuy 6 лет назад

      Thanks for the heart but it doesn't quite answer the question. It'd be cool to have this series redone with new unity and playmaker or at least a return to add more like sprinting, crouch, jump, inventory (Kind of like DOOM where you could have all the weapons), weapon switching, etc... Hell I would pay for this to be done. You're series is great and got me to get basic functions of my retro fps to work now its just adding more weapons being able to pick them up and switch between them and the rest I stated above.

  • @Mangeurdemouton
    @Mangeurdemouton 4 года назад

    Great tutorial but I'm having an issue that when I rotate the screen jitter...Do you know what it could be? your game seems to be smooth.

  • @cornejobetv2122
    @cornejobetv2122 6 лет назад +2

    dude you are the best thanks

  • @Bacxiuthangmuoi
    @Bacxiuthangmuoi 6 лет назад +1

    Thanks you so much! Please continue :D

    • @Filmstorm
      @Filmstorm  6 лет назад

      I'm working on building a whole new FPS tutorial series :)

  • @bennybao
    @bennybao 8 лет назад +1

    Thank yoU!!! just what I needed!

    • @Filmstorm
      @Filmstorm  8 лет назад

      Thanks! Glad to hear it!

  • @Sites-max
    @Sites-max 8 лет назад

    Great tut!!

  • @blackace_killer6253
    @blackace_killer6253 8 лет назад

    can you give me the link for playmaker ?

  • @ANNGUYEN-cw7lw
    @ANNGUYEN-cw7lw 6 лет назад +1

    Hello instructor. Can you built a paid course make game FPS shooter same as Counter Strike game clone with simple graphic by Unity 3D on udemy website in your free time ?. Thank you instructor very much.

    • @Filmstorm
      @Filmstorm  6 лет назад

      Can do! I'm working on building this right now :)

  • @grandgeeks1197
    @grandgeeks1197 8 лет назад +1

    thank you it helped me alot

  • @YarosNefrit
    @YarosNefrit 7 лет назад +2

    Thanks you

    • @Filmstorm
      @Filmstorm  7 лет назад +1

      You’re welcome!

    • @Bill_Gr1ef
      @Bill_Gr1ef 7 лет назад

      Yaros ну, может врубишь стрим там на след. Неделе? хD

    • @YarosNefrit
      @YarosNefrit 7 лет назад

      завтра возможно

    • @Bill_Gr1ef
      @Bill_Gr1ef 7 лет назад

      Yaros вечером?

    • @YarosNefrit
      @YarosNefrit 7 лет назад

      после 13:00, я тогда только проснусь

  • @digiminer
    @digiminer 8 лет назад +2

    Great tutorial but, you go way to fast for a beginner like me. I think I will bookmark this series and go find a gamemaking tutorial series more for beginners, then come back to this one. Thanks

  • @MusicandGame23
    @MusicandGame23 7 лет назад +1

    it work, thanks, +1 like but i want make a multiplayer FPS game, can you make the example pls?

  • @ManurajKurre
    @ManurajKurre 5 лет назад

    Hey bro please make a tutorial on online game using playnaker

  • @GregDowns
    @GregDowns 4 года назад

    Like many I find it often too distracting to listen to any speaker with as much High Rising Terminal/uptalk as this one, but this is a great tutorial nevertheless. Too high a proportion of PlayMaker tutorials are for absolute beginners new to PlayMaker and/or Unity, so it takes some digging to find the tutorials that assume some familiarity and get on with it. Just grit your teeth and put up with the uptalk!

  • @__Rizzler__
    @__Rizzler__ 4 года назад +1

    i love it.

  • @blackiemad9445
    @blackiemad9445 3 года назад

    my player is not moving at all

  • @xxDaniel466
    @xxDaniel466 9 лет назад +1

    cool bro keep it up please lol :D

    • @xxDaniel466
      @xxDaniel466 9 лет назад

      cool every good as not much video on playmaker plus your good to listen to :D

    • @xxDaniel466
      @xxDaniel466 9 лет назад

      Atm there nothing lol but i do like fps games

    • @xxDaniel466
      @xxDaniel466 9 лет назад +1

      oh cool but maybe animations should be good lol if that makes sences

    • @xxDaniel466
      @xxDaniel466 9 лет назад +1

      cool maybe keep it for the future then ?

  • @LightningTE
    @LightningTE 8 лет назад

    There's all kinds of playmakers which one do I pick?

    • @Filmstorm
      @Filmstorm  8 лет назад +1

      www.assetstore.unity3d.com/en/#!/content/368

    • @taidenclarke4278
      @taidenclarke4278 7 лет назад

      you said the playmaker was free

  • @myintro7141
    @myintro7141 6 лет назад

    I subscribe to you and the Play Maker Script send you