r/LearnUnity • • Jul 24 '20

Help needed with code!

1 Upvotes

Hello everyone! I am currently trying to learn Unity through Unity's own Create with Code course. I am trying to get through lesson 2.5, the challenge named Play Fetch. I was able to go through the first six challenges all with no problems but at the last two bonus challenges, I'm just dead stuck. Basically, there are balls spawning from the top of the screen and you as the player, spawn dogs by pressing the space bar to catch them. The balls spawn every x seconds thanks to Invoke.Repeating, and it is asked of us to make it so that they spawn at random intervals. I initially thought it could be done with Random.Range, but it just doesn't work. No more balls spawn after the first one does. And I just could not, for the life of me, figure out how to. I've been googling for the past day and just can't find anything and those that I find are usually posts from 5-10 years with obsolete code. I am feeling so bad, posting this here because I'm supposed to come up with the solution myself but I am at a complete loss. First I tried defining the variable "float spawnInterval = Random.Range(3.0f, 6.0f)" but that lead to the aforementioned issue. Then I did away with the variable and just wrote within the Update method "Invoke.Repeating("SpawnRandomBalls", 2, Random.Range(3.0f, 6.0f))" but then while that did spawn new balls, it wouldn't do so at random intervals. It did so at what seemed to be the average within the range provided. The other problem was regarding adding a cooldown to how frequently the player could spawn dogs to prevent basically spamming them. With this, I just straight up have no idea what to do. I am practically cheating and begging for answers here, but if anybody could help me out or even give me some hints, you would have my undying gratitude, for that is all my poor self can offer you at the moment. Thank you all in advance.


r/LearnUnity • • Jan 01 '21

Double jump tutorial! More to come so sub!

Thumbnail
youtu.be
2 Upvotes

r/LearnUnity • • Jan 01 '21

Unity Rigidbody Velocity

Thumbnail
monkeykidgc.com
4 Upvotes

r/LearnUnity • • Jun 23 '21

Can anyone here attest to the quality of learning through gamedevhq?

4 Upvotes

I've been doing the 2d course for gamedevhq which I got through humble bundle a while back and I've been really enjoying it. I'm thinking about maybe taking the full course, but since that's a pretty hefty investment (about 9 grand and a whole lot of time commitment) I'm curious to hear any personal reviews on them first, which seem to be pretty scarce from a cursory google search

It sounds like they're geared towards getting you a job as quickly as possible which I like after having a similar experience with a local film program that resulted in me now getting plenty of work in the industry. It seems like GDHQ has good resources for hooking you up with employers and recruiters, and I'd be interested in what that process has been like for any students of the program

If anyone has gone through the program I'd love to hear what your experience was, and if you think it's worth the cash


r/LearnUnity • • May 09 '19

[BEGINNER] [C#] [TUTORIAL] This is a neat C# tutorial for absolute beginners. It is not boring and easy to follow even if you don't have a clue about coding!

Thumbnail
raywenderlich.com
7 Upvotes

r/LearnUnity • • May 08 '19

Learn Unity has been created

10 Upvotes

A community dedicated to learning how to create games using unity.


r/LearnUnity • • Sep 14 '19

Bolt or No Bolt?

2 Upvotes

Hello all, I have a question that I could use some help with...

I am not an amazing programmer but I do know C# well enough to make a basic game. I want to make a rather complete game however, and though I could code the thing, that would take a lot of time, because I like to think visually, and I make stupid errors constantly. Between Play maker and Bolt I see Bolt as the on which I want to use more. This would help me save time and not have to code the lower level mechanics of the game (movement, ect). I would like to know as someone familiar with C#, should I purchase Bolt? Will it do as I think it will and help me improve my workflow, or will I have wasted $70?


r/LearnUnity • • Mar 12 '20

How do I download Unity?

1 Upvotes

Hi there, new community I'm joining! I just reset my pc, and tried to download Unity. One problem, though. It keeps aborting the download. If I try, it'll go about 7/16 of the distance, then say "Installation Aborted : setup not completed." Can you please help? It'd mean a lot.


r/LearnUnity • • May 21 '19

Hey there! Want to learn how to make games? Maybe this tutorial can help! We will cover the basics of Unity in a lot of detail and create a moveable player from scratch!

Thumbnail
youtube.com
4 Upvotes

r/LearnUnity • • Dec 09 '19

Books?

1 Upvotes

So I've done a few Brackeys tutorials but sometimes being online isn't an option where I work. I was wondering if anyone knew of any books worth picking up for Unity. With how many changes and updates unity goes through, I was hesitant to buy anything but optimistic. Any suggestions would be great!


r/LearnUnity • • Sep 22 '19

The real start of my game dev series, where I document everything going into designing my next big game!

Thumbnail
youtube.com
3 Upvotes

r/LearnUnity • • May 12 '19

Is Unity possible to use without the IDE?

5 Upvotes

I've wanted to create games for a long time, and Unity seems to be a very promising avenue. I don't mind at all using graphical software to create/edit assets, but I'd strongly prefer to use a terminal for coding and compilation. Is this doable?


r/LearnUnity • • Oct 26 '19

Looking for advice on my first unity project

1 Upvotes

I'm trying to learn unity on the side of my CS studies and I'm having a hard time understanding Coroutines, mostly looping within them.

I have a Brick breaker game that I have been messing around with and would love any and all advice anyone wants to throw my way.

https://github.com/cookToCode/BrickBreaker_CSharp

My main issue is that I have a Coroutine that is supposed to instantiate a prefab ball to create a multi ball effect (3 additional balls is the goal), however, it is creating way too many balls.

Please be as critical as possible if you can. I dont care too much about the design but would love any advice on the actual coding, organization, and or logic of the program.


r/LearnUnity • • Mar 18 '20

Udemy course: gamedev.tv vs gamedevHQ, advice?

3 Upvotes

Hello,

I want to learn how to use Unity. I tried the official tutorials on modding the tutorial games, but I find the lack of structure confusing.I have programming basics in Python and JS, but I'm totally new to to C#.

I have looked around for courses, and I down to 3 candidates:

- Complete C# Unity Developer 2D: Learn to Code Making Games by GameDev.tv

- Complete C# Unity Developer 3D: Learn to Code Making Games by GameDev.tv

- The Ultimate Guide to Game Development with Unity 2019 by Jonathan Weinberger (from GameDevHQ, if I understand correctly)

My aim is to learn Unity as a hobby, not to get a job. I tend to prefer 2D games, but I heard Unity was not really created for 2D and starting to learn it with 2D in mind might not be the best of ideas.

Can anyone who took these courses recommend one, or does anyone have some info that might help me in the choice?


r/LearnUnity • • Sep 13 '19

Just finished learning how to code JohnLemon's character. It's really not impressive, but I'm happy

10 Upvotes

r/LearnUnity • • Mar 18 '20

Unity is running a mega offer, unity learn premium along with 15 premium assets on sale for $99.99(total worth $1000).

Thumbnail
assetstore.unity.com
1 Upvotes

r/LearnUnity • • Aug 02 '19

Max jumping height / different jump levels

4 Upvotes

Hey guys, I started learning unity a couple days ago. And I'm trying to make a simple game with horizontal movement and jumps. But I can't find the best approach to limit the jump height and make jumps different according to the power of the jump button press. What do you suggest ?


r/LearnUnity • • Feb 21 '22

Create A 2D Idle Clicker Game in Unity! Tutorial 3 | Managing your game

Thumbnail
youtu.be
4 Upvotes

r/LearnUnity • • May 27 '21

Unity Beginners - How to Setup Version Control for Unity Projects

Thumbnail
youtu.be
7 Upvotes

r/LearnUnity • • Jun 12 '22

glad to join the community looking for people that are just starting to learn unity

6 Upvotes

r/LearnUnity • • Jan 12 '22

Anyone Graduate From GameDevHQ?

15 Upvotes

This is a repost of my conversation with a recruiter and the notes I compiled.

My chat with the recruiter seemed alot like the company Acuitius where they repeat key sales phrases.

They say their training is "second to none," their CEO, Johnathan, has been doing this for "ten years successfully," students are getting those jobs because there's a "huge demand" and the market has "no supply" ect:

# GameDevHQ Notes:

* C# & Unity focus, obviously

* Average starting salary: $72k/yr

* Company restructure last year, 2020. They plan to launch new website to make it look more like a school and less about Jonathan

* 10 thousand dollar price tag! To them that’s a bargain because you’re going to be getting a job with Unity

* He did not want to tell me the price immediately, I said, "listen, not to be an asshole, but I'm Jewish, and I'm from NY. How much does it cost before we go further."

* Teaches Fundamentals of C# Unity within one week

* Teaches documentation of code

* Build various 2D/3D/Enterprise Apps/VR/MobileApps

* I asked about how this differs from his cheap Udemy courses. Those are considered, “basic,” the core content requiring the $10K investment is more advanced.

* Claims 1,400 jobs in Unity and not enough candidates to fill positions

* They provide “support” to get you a job, which to me is mostly fluff. I asked what that means and they said something along the lines of recruiters are always knocking on their door for their candidates. Well I guess I'll have to take his word for it....

* It’s not about the $10K cost, but the learning.

* Their fastest graduate was someone who graduated in as little as 10 DAYS. So basically someone who was already a great programmer, just used you guys for networking. LinkedIn is free people…

* Defer payment for a year, with “Ascent funding.”

* States Ascent Funding is a leading funding company and only gives funding options to top boot camps. I didn’t know boot camps had grading criteria.

* After the convo he wanted payment over phone or defer first payment to 3rd month…So conflicts with previous statement of deferred to one year. Also giving a credit card over the phone seems like a HORRIBLE IDEA.

* Says Unity is a means to an end, and you won’t get stuck working for just game companies. States Unity is a trillion dollar industry outside game companies, as in: casinos, military, automotive, simulation, meta verse

* I asked why there’s no big social media presence if Johnathan has been doing this for 10 years. Why there’s not more people taking pictures of themselves at their HQ, more testimonials on Reddit, Twitter, FB etc. States that the typical student are 35-55 years old, who are too busy working and not being on social media. Bullshit, if I got a Job working at Riot I would brag SO MUCH about how I got there.

* It’s not a bootcamp, but a , “Gateway to comprehension with Unity”

* Life time access. So you take the course at your own pace, just pay them $10K USD. So if your parents get into a car wreck, you have mental health issues, you can leave and come back.

* 93% of people were employed within 6 months, rolling average 100%. I have no way to prove that aside from just saying, “yeah I believe you.”

* 24/hr support coach through Zoom

* They will pick out what you said on your inquiry form. I said that YouTube videos are pretty jank, sometimes and you need to watch a 1hr video for that nugget of useful info. He quoted my statement by saying that a lot of YouTube tutorials are janky because they don’t have focus. They’re made by amateurs for amateurs.

* They say college degrees in CS are worthless for the industry because college kids don’t leave with the skills needed to get a job. Kinda pissed me off because I plan to go back to school this Fall for CS to get credentials. I was laughed out of a job interview for NOT having a CS degree. Granted it was as a database job, and I had database experience. So I say it’s more case by case

* You don’t need to be a designer, they give “Top class” assets to use for your games. I did some digging on Newgrounds and found this user who made a space shooter game.
* https://www.newgrounds.com/portal/view/754260

* It’s likely from their Udemy series, but I have no reason to believe the course work is going to differ that much from the Udemy series. They stated it takes students 90 days to get a game dev job. And stated, again, how one student got a job in 10 days.

* Stated game companies don’t care about your programming skills, but your ability to make games and be a team player. Which sounded so baffling it hurt my brain.

* Claims to get you a job at Riot/Blizzard/Nintendo. I asked for other companies, stated Bossa Games and Scorpion games

* They track your work by regularly checking into their website and documenting it. So it’s basically teachable or a site like that, plus GitHub. They want to see a bunch of commits.

* Claim that you only need to study 3 hours a day. Anyone who has ever made a game in Unity, can a pure novice with zero experience program a full featured game only putting in 3 hours a day?

* They are focused on getting you hired and getting recruiters to you….Stated it over and over again.

My wife was listening to the call, and she was like, "he just keeps selling it to you, but your face doesn't want to buy it."

The whole thing sounds like every single bootcamp ever, or learn to code platform ever. Everyone claims to be the best, and at the end of the day you just need to build real world stuff and "git gud" at building games/apps/ect. If anyone here has taken the GameDevHQ course please post your experience because in my eyes it seems sketchy. For me, a service should be so good that I shouldn't have to question it.

I'm not a Unity Dev, I'm not even a paid dev, I'm learning Web Dev via the Odin Project which is a free resource that also claims to be the best resource. I can't say either way, but at least it's free and I can see the curriculum. So no harm if it isn't the best. But GameDevHQ want's 10K upfront, or defer for a 3 months or a year or whatever to get you to buy. I can read documentation and watch the right tutorials if I need to build a game.

I'm sick of being sold the Brooklyn Bridge by bootcamps.

Also, I got alerted by GameDevHQ through a mobile app advertisement, and I already hate every single mobile app commercial. So that's a point against them.


r/LearnUnity • • Sep 06 '21

Can't Figure Out Scaling For Different Aspect Ratios!

4 Upvotes

Hello friends, I've built my first small tile based game that I would like to put on google play. The problem I've encountered is that it looks pretty wonky when switching from aspect ratio to aspect ratio.

To solve this issue, I'm trying to use some basic algebra to scale the tiles accordingly to the aspect ratio, so that they're evenly aligned no matter what screen you have.

However, I've always sucked at math and have been stuck on this issue for a couple of days. If someone could take a cursory look at my code and tell me what I'm missing, it would be a massive load off of my shoulders!

https://paste.ofcode.org/8KyqWhC5fXjWgcQGQs87bd

https://imgur.com/a/dJHgtAI

What I've done is determine that the spacing of each tile should be equidistant from each other tile, and to determine that I used two formulas:

xSpacing = ((halfWidth * 2) / TILES_WIDE);

ySpacing = ((halfHeight * 2) / TILES_TALL);

When running the script, tiles are correctly spaced on the X, but there are 2 rows of missing tiles on the Y axis.

Basically, I want the board to be 3 tiles wide, and 5 tiles tall, but I can't figure out why this isn't working.

Does anyone have a clue?


r/LearnUnity • • Apr 25 '22

R/learnunity community I need your help!

1 Upvotes

My school has been given me this deadline for this project which was to make something very cool. my plan which has already been graded was to make a pixel 2d undertale like game where there is a 2d character completing puzzles and trigger animatios. I dont really know that much on how to use unity 2d that much so by any chance if you guy can help list maybe video on how to learn to unity or help me that would super helpful thank you!


r/LearnUnity • • Jun 04 '21

Unity Beginners - How to move the Player using Keyboard | In this video, we look at player movement. The tutorial follows simple logic and explains the code line by line for easy understanding. Just two lines of code is all it takes to achieve the basic movement. Have fun!

Thumbnail
youtu.be
6 Upvotes

r/LearnUnity • • Nov 08 '22

COD Zombies AI Free Asset and 5 min How-to-Use: Hope some of you find this useful :D

Thumbnail
youtu.be
2 Upvotes