please tell me how to count points in the game. I understood everything and did it, but I would like it to count points.. / written through a translator
Hello my friend!! Thank you so much for watching my video🤗✌️ for adding points system, you can add a trigger collider inside the hoop, and make it small it should get touched only if ball enters inside, and in its onTriggerenter2d method increment point. i just given you rough idea. you have to create a ScoreCounter script and a hoop script.
Can you tell me how to do the same thing but only on my phone. I've watched a bunch of videos where it's not the same. Yours is the best and most convenient, but it's on a computer. It makes sense to me, just what can you replace the mouse position in android space, how to read the click on android. P.S google translate
It will work on mobile as well✌️😊, Enjoy!!🤗 if you want specific touch the you can use Input.Touch(touchIndex).position instead of Input.Mouseposition You can find about it in Unity's Touch.Position documentation. Hopefully I Cleared Your Doubt, Thank You!!😊✌️
Hello friend, I just created a sprite and then attatched a edge collide to it as a bound in both sides (not in up and down side, because ball will enter from top)
@@natureplayz7218 Thank you so much my friend, you completed our 100subs family, I will definitely put my complete efforts to build good quality content for all of you😇😇
Thank you so much for keeping me motivated, and also sorry for the delay in videos, its just happening because of my job and other work loads, I'll definitely try to make new video ASAP!!
Ohh yes😊, one of my friend also suggested me to make add some beginner videos. and as per you and other my beginner friends feedback, I'll definitely add a unity basic tutorials very soon, and also I'll try to make my videos more easy to understand by all of you, and sorry for the inconvenience my friend. I'll consider your feedback and update my upcoming videos, Thank you so much for watching.😊✌️😇
i have challenged my selff with 3 small games to create on the end of this week. I only finished pong and now lets make this with a score and reset. Thanks for using the same header !
Great!! you are trying to learn by challenging yourself is a great motivation, I am glad my videos are getting helpful for you, Thank you my friend for watching🤗🤗
Plz make a tutuorial that how to make basketball hoop physics??
Thank you so much for this helpful video! Your clear explanations and step-by-step instructions made it easy for me . Keep up the fantastic work!
Thank you so much my friend, this gives me more motivation to create new interesting quality content.
Good tutorial for drag and shoot but should have add tutorial how to make the ball touching wall and the hoop ring
how to add animation or physics to the net ?
should we use hige joint 2d for physics /how ?
Great Maaaaannn !!!tx
Glad You liked🙌✌️
I don’t get how multiplying by the dragLimit number would do anything limit the distance.
does anyone know how to do the same line renderer but in 3d ??? thankyou
please tell me how to count points in the game. I understood everything and did it, but I would like it to count points.. / written through a translator
Hello my friend!! Thank you so much for watching my video🤗✌️
for adding points system, you can add a trigger collider inside the hoop, and make it small it should get touched only if ball enters inside, and in its onTriggerenter2d method increment point. i just given you rough idea. you have to create a ScoreCounter script and a hoop script.
Thanks you deserve a sub😁
Thank you so much for subscribing, it means a lot to me!
where can i find this source code ?
Ive subbed ...looking forward to more ccontent ! [ I like the AI Voice ? ? ]
Awesome, thank you!
yes its an AI voice😄
Can you tell me how to do the same thing but only on my phone. I've watched a bunch of videos where it's not the same. Yours is the best and most convenient, but it's on a computer. It makes sense to me, just what can you replace the mouse position in android space, how to read the click on android.
P.S google translate
It will work on mobile as well✌️😊, Enjoy!!🤗
if you want specific touch the you can use Input.Touch(touchIndex).position instead of Input.Mouseposition
You can find about it in Unity's Touch.Position documentation.
Hopefully I Cleared Your Doubt, Thank You!!😊✌️
How do you make the hoop?
Hello friend,
I just created a sprite and then attatched a edge collide to it as a bound in both sides (not in up and down side, because ball will enter from top)
Pix and dev, im your 100th subscriber!!
@@natureplayz7218 Thank you so much my friend, you completed our 100subs family, I will definitely put my complete efforts to build good quality content for all of you😇😇
tf i was looking for exact type of game. i went on to search tutorials for angry birds cuz it has same logic 😭 and now i found it.
Thank you for sharing your experience!😊👍
It's great to hear that my video helped you find the game you were looking for.
thanks dude !!!
Happy to help
daaamn!
Thank you so much for watching✌️
Can you please share the code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DragController : MonoBehaviour
{
public LineRenderer lineRenderer;
public Rigidbody2D rb;
public float dragLimit = 3f;
public float forceToAdd = 10f;
private Camera cam;
private bool isDragging;
Vector3 MousePosition
{
get
{
Vector3 pos = cam.ScreenToWorldPoint(Input.mousePosition);
pos.z = 0f;
return pos;
}
}
private void Start()
{
cam = Camera.main;
lineRenderer.positionCount = 2;
lineRenderer.SetPosition(0, Vector2.zero);
lineRenderer.SetPosition(1, Vector2.zero);
lineRenderer.enabled = false;
}
private void Update()
{
if (Input.GetMouseButtonDown(0) && !isDragging)
{
DragStart();
}
if (isDragging)
{
Drag();
}
if (Input.GetMouseButtonUp(0) && isDragging)
{
DragEnd();
}
}
void DragStart()
{
lineRenderer.enabled = true;
isDragging = true;
lineRenderer.SetPosition(0, MousePosition);
}
void Drag()
{
Vector3 startPos = lineRenderer.GetPosition(0);
Vector3 currentPos = MousePosition;
Vector3 distance = currentPos - startPos;
if (distance.magnitude
i am waiting
Thank you so much for keeping me motivated,
and also sorry for the delay in videos, its just happening because of my job and other work loads, I'll definitely try to make new video ASAP!!
I just want to learn basketball net physics @@pixanddev4187
i am a beginnar scripting part was littile bit confused
Ohh yes😊, one of my friend also suggested me to make add some beginner videos. and as per you and other my beginner friends feedback, I'll definitely add a unity basic tutorials very soon, and also I'll try to make my videos more easy to understand by all of you, and sorry for the inconvenience my friend. I'll consider your feedback and update my upcoming videos, Thank you so much for watching.😊✌️😇
@@pixanddev4187 bro how can I contact personaly
May be in discord, ✌️😊
i have challenged my selff with 3 small games to create on the end of this week. I only finished pong and now lets make this with a score and reset. Thanks for using the same header !
Great!! you are trying to learn by challenging yourself is a great motivation, I am glad my videos are getting helpful for you, Thank you my friend for watching🤗🤗
i give up. impossible to understand. zero explanations. no wonder this has so lessviews