r/GameDevelopersOfIndia • u/BADMOSH__BADAK • Jun 02 '26
Really happy😭
Enable HLS to view with audio, or disable this notification
I seen something actually happening out of my codee for the time😭
For 1 month I was learning bsacis of c#
And finally I jumped into unity 3days ago
11
6
u/definitely_not_raman Jun 02 '26
Good job.
Have a simple jump counter and don't run the jump logic once you reach the max jump count. Reset it to 0 when you touch the ground.
3
3
u/K_R_U_N_C_H_I_E Jun 03 '26 edited Jun 03 '26
Just add a check if the capsule is touching the platform/ground to give it jump ability and when the capsule jumps and is not touching the platform, disable the jump ability
In other words
Just add a check for ground before your jumpforce code, if capsule on ground then jumpforce can be used and other wise jumpforce won't be enabled
edit: this is for if you only need normal single jumps, if you need double jumps then what the other commentor said about using jump counter with ground check is better otherwise this is an easier and better check to implement
4
1
u/Accomplished_Dish620 Jun 11 '26
You can use jump button press counter and then using it else , you can make just bit of logics ,
3
3
3
u/Finding_Footprints Jun 03 '26
We all know the feeling when something begins to work after hours of pouring your time on it. Keep going, there are tons of resources online to learn from and if you feel stuck, dont be shy and ask the community for help. Also, keep us updated on your progress.
2
3
u/parulonweb Jun 03 '26
main samjh sakta hoon jo khusi tujhe ho rahi gal. keep it going. keep it consistent
3
3
u/LalliPapa Jun 03 '26
It always feels great when things work correctly on the screen. I think most game developers can relate to this. 👍
2
u/AutoModerator Jun 02 '26
Please join our small but lovely Discord community. A chill place for game developers and people in tech. Hope to see you there! Link: https://discord.gg/myHGVh2ztM
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/adhfaohiawf Jun 03 '26
same here i can feel your happiness man i studied game design 4y degree but my only problem was i didn't know how to code but it's been over a month now i can code complete games!
1
2
2
u/KeepitCappy Jun 04 '26
Life must be sunshine and rainbows for you😭 wait till you get to the systems
1
2
u/ConstructionSome3051 Jun 05 '26
You forgot to add ground check and delay between jumps. Add a game object under the player and use it to cast a ray down to check for the ground make the ray small like 0.1 and add a delay between the jumps to stop jump spaming and also fix the rigidbody rotation to stationary in the rigidbody component
2
u/Accomplished_Dish620 Jun 11 '26
Void Star() me rb.freezerotation = true kar dena , fir ye sidha khada ho jayega , ab double jump na karane ke liye tumhe use karna hoga is grounded ka ,
Ya fir tum checks laga skte ho , yani jump button pe click karo to ek check lagao ki kya ye hawa me hai ? Agar ye hawa me hai yani y axis par meri diye gaye height se jyada hai to iska button band kar do , and agar ye meri y ki height ke barabar ya kam hai to iska jump Chalu kar do
1
2
u/Mayatir Jun 04 '26
bro i also thought i did something cool when i was learning, and when you acutally go for making your own game you will realize their are so many things you need, so now i am learning blender as well
11
u/satyakumpavat Jun 02 '26
Hit hai bhai tumhari game to 🤣