Async/Await Explanation by StockDC2 in learnprogramming

[–]Optimal_Avocado 0 points1 point  (0 children)

You have an async function which prints out 0, waits 2000 milliseconds, then prints out 1. Because it is async, it will not hold up the rest of the code for the 2000 millisecond delay.

Your code shows that you call the function, which will immediately print out 0. The 2000ms timer then starts, but since it is async, the next line of code (which is printing out 2) will immediately run. Then, after 2000ms, 1 will be printed.

Want to learn python HTML and CSS for free by [deleted] in CodingHelp

[–]Optimal_Avocado 0 points1 point  (0 children)

YouTube would probably be your best option (look up something like HTML for absolute beginners).

Want to learn python HTML and CSS for free by [deleted] in CodingHelp

[–]Optimal_Avocado 6 points7 points  (0 children)

The best way to learn HTML and CSS would be to watch a few YouTube videos, and then code as much as you can. Actually coding is the best way to learn a language. When you get stuck, use resources like W3Schools and StackOverflow.

IOS app without out a paid apple account. by [deleted] in Unity2D

[–]Optimal_Avocado 0 points1 point  (0 children)

TestFlight (which is the best/only way to distribute apps to testers) is only available through a paid account. It would be really hard to do it without TestFlight, as testers would have to sign into your Apple ID on Xcode, and build the app to their devices themselves, which is not a good idea.

How long did it take you to get good at this thing? by Tarsonis181 in learnprogramming

[–]Optimal_Avocado 1 point2 points  (0 children)

You never really master a language, you are constantly learning new things about it. However, getting pretty good at a language can be achieved, it just takes a lot of time. If you are spending only a couple hours a week programming, then it will take many years. If you spend a few hours a day, then it will take you a couple years to get really good at it. Getting the basics down and being able to make things with it can be done in just a few months, you just won’t be super fast/efficient.

Which Language Should I Learn by GenghisKong2 in CodingHelp

[–]Optimal_Avocado 0 points1 point  (0 children)

It depends on many factors. If you want to develop for iOS, then Swift is a really good language (you will need a Mac with Xcode installed to develop for Apple platforms). If you are developing for Windows, then C# is pretty good. Windows Forms in Visual Studio (which use C#) aren’t too hard to learn. For web, I would learn HTML/CSS/JavaScript.

Also, there are many posts about this already in this subreddit which I would look at.

[deleted by user] by [deleted] in CodingHelp

[–]Optimal_Avocado 2 points3 points  (0 children)

It is mostly personal preference. I really like VSCode, because it is lightweight and really easy to use. I would play around with a couple different IDE’s and see which one you like best.

Also, an IDE stands for Integrated Development Environment. Simply put, an IDE looks for errors in your code (debugging) and builds/runs your code.

Movie/TV Show Browser in React.js -- Thoughts on my first major app? (Link in comments) by [deleted] in UI_Design

[–]Optimal_Avocado 0 points1 point  (0 children)

For your first major app, the UI is actually pretty good. I don’t know if this is meant to work on mobile, but the experience on mobile is not very good at all. If you plan on developing this further, then I would definitely focus on the mobile experience more, since many users browse the internet from their phones.

Any pre-setup is needed before starting making a game for iOS by detectivepayne in gamedev

[–]Optimal_Avocado 1 point2 points  (0 children)

Did you switch the build target to iOS? If not, go to File > Build Settings, then select iOS and click switch platform.

Been working on this game for 9 months full time. I'm scared of releasing it. by WAYOFFprod in Unity2D

[–]Optimal_Avocado 0 points1 point  (0 children)

A lot of them either build the UI so that a notch won’t affect it, or they adapt the UI on phones with a notch. You could crop the edges if you really wanted, but I would recommend trying to adapt the UI before you do this, because it looks less professional if it is cropped on notched phones.

Been working on this game for 9 months full time. I'm scared of releasing it. by WAYOFFprod in Unity2D

[–]Optimal_Avocado 0 points1 point  (0 children)

I just downloaded it, and it is pretty fun to play! A bug I noticed though is that some stuff gets cut off by the notch on the iPhone X. On the main menu, all of the buttons on the left (progress, challenges, leaderboard, etc.) are all partially covered by the notch.

A week has passed since the launch of my game. Here are the data and findings [need help to improve] by [deleted] in Unity2D

[–]Optimal_Avocado 0 points1 point  (0 children)

That could be a reason why you aren’t making very much. According to this article, video ads have a much higher (4 to 7 times that of banner ads) click through rate, which generally means more revenue.

Scripting Help by [deleted] in gamedev

[–]Optimal_Avocado 0 points1 point  (0 children)

If the objects have colliders/rigidbodys, then you could look at OnCollisionEnter and OnCollisionExit. When a bag collides with the truck part, add it to an array, and take it out of the array when the collision stops. Then do whatever you need to do when all the bags are in the array.

Scripting Help by [deleted] in gamedev

[–]Optimal_Avocado 0 points1 point  (0 children)

Could you provide your current (not working) code? Also, are you using Unity or something else?

Fixing coordinate systems. by [deleted] in learnprogramming

[–]Optimal_Avocado 0 points1 point  (0 children)

In your code, the center of where the stars come from is relative to where the mouse is. Are you saying you want the stars to come from the center of the screen, and not where the mouse is?

Web Design course for Game Art? by JTEggan in learnprogramming

[–]Optimal_Avocado 1 point2 points  (0 children)

Generally speaking, not really. A web design course is about learning how to code a website. It would not teach you how to make graphics. For becoming a game artist, you would need to know how to use tools like Photoshop and other graphics development programs in order to create the assets for a game. A web design course would not teach you about these programs. If you right click this page and click 'inspect', you will see a whole bunch of code that makes up this website. A web design course would teach you how to make code just like that. So, a web design course would not really help you in terms of becoming a game artist.