Making a Fishing Game!? Devlog with Unity - Part 12

Поділитися
Вставка
  • Опубліковано 26 чер 2020
  • Devlog of Making a fishing game in unity! with C# and a dream 😎what else do we need?
  • Розваги

КОМЕНТАРІ • 13

  • @NeatGames
    @NeatGames 4 роки тому +1

    A fishing game is a great idea! My favorite fishing mechanics were in Zelda Ocarina of Time and Stardew Valley

  • @DoorCamperPictures
    @DoorCamperPictures 3 роки тому +2

    Dude your videos, they are so good. Nice content! keep going! UA-cam algorithm should work better. This video should have 500k views

  • @davidkap3961
    @davidkap3961 4 роки тому

    Watched the deja vu part like 10 times 😂

  • @platinumstar1519
    @platinumstar1519 2 місяці тому

    how do you make the fish got hooked? i tried it but fail can you help me?
    i use the compare tag and collider and still didnt work

  • @boss23t
    @boss23t 10 місяців тому +1

    Please the script for all games

  • @david-zz3kd
    @david-zz3kd 3 роки тому

    The deja vu was hilariois 😂😂

  • @IAmStrand199-BjrnStrand
    @IAmStrand199-BjrnStrand 3 роки тому

    We should work together and become rich 😉

  • @neozoid7009
    @neozoid7009 2 роки тому

    How can i make a fish wandering within my phone screen?

    • @kapkoder4009
      @kapkoder4009  2 роки тому +1

      I just put colliders on the walls and OnTriggerEnter2D I get the component of the fish and tell it to go in a different direction

    • @neozoid7009
      @neozoid7009 2 роки тому

      @@kapkoder4009 i tried but it didn't worked.!! What component should I use to move the object?

    • @kapkoder4009
      @kapkoder4009  2 роки тому

      @@neozoid7009 Use whatever physics you like best, use a rigidbody for realistic movement and use Transform.MoveTowards() for rigid movement.
      And find a random position within your tank so setting a min/max for both the x and y of the random position givin to the MoveTowards()
      But with rigidbody you don't have that delicacies because your moving it real time so you have to set up wall colliders and set IsTrigger to true in the inspector and when they hit it you'll get an OnTriggerEnter2D() callback so in that callback check if the fish is still moving in the wrong direction, if it is, tell it to turn around, so you'll need separate walls (top bottom left right)
      And they all need they're own script (same script tho) and OnTriggerEnter2D in it to check:
      OK... which wall am I? Okay I'm the left wall, so the fish touched this left wall and if he's still going left than say, fish, set your rigidbody.velocity to a positive x value (which makes it go right) and babaam
      This sounds complicated but it's only slightly lol lemme know what happens