@@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
A fishing game is a great idea! My favorite fishing mechanics were in Zelda Ocarina of Time and Stardew Valley
Dude your videos, they are so good. Nice content! keep going! UA-cam algorithm should work better. This video should have 500k views
Thanks for that 🥳
Watched the deja vu part like 10 times 😂
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
Please the script for all games
The deja vu was hilariois 😂😂
We should work together and become rich 😉
I want those papers in by Monday
How can i make a fish wandering within my phone screen?
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
@@kapkoder4009 i tried but it didn't worked.!! What component should I use to move the object?
@@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