Just was wondering if we should be concerned that if we run the game for a long period of time without killing the enemys that the projectiles continue to float around in space. You can see a crazy line of them flying around when you zoom out of the scene while in play mode. I would assume that is a pretty easy fix to add a timer and say after x seconds or on trigger enter they disapear type of a thing. Just was wondering what the thoughts were there. Thanks, also I will be posting my archetypes shortly working on figuring them out now
Yep, you should be concerned, so this is a good spot…
…don’t be too concerned at the moment though, it gets updated in one of the upcoming lectures.
cool, thanks! Just trying to keep learning and watching things and trying to predict what might come next as well as learning what is being taught. I am trying to take a step back between every so many videos and try and decide what i think makes sense to address next etc. then see if I am learning the right way and work flow that they are teaching or not. Thank you for the responce.
Sounds like a very good strategy Ryan, gives you an opportunity to experiment with a few things too.
No problem, you are very welcome.
Thanks! that is what I am hoping for. I am following along pretty closely to what they are doing in this course, but I also have a project folder where I made a copy of it and backed it up else where so that I can then go in and diviate and start to build my own game and vission as outlined through the GDD and other nice outlines they help you with but still be able to continue with the course and keep learning the basic flow and stratageys. I was concerned if i got too far off and away from what was going on in the course itself I might get ot a point where I am lost and not sure how to impliment what they are doing due to the major changes i may have made on my own that broke something they were building twords. So that is kind of how I am going with this course to try and learn.
Sounds well thought out - well done.
If you are not already using it, you may want to look into some form of Source Control, for example Git / GitHub. This can be a real life saver if you ever meed to roll back, or, for just taking a snapshot of where you are, trying something out, and theb discarding it.
I have notcied a bit of the version control that is used in the courses and I have looked into a bit of github before a few years back. Its something that I definatly think would be a really good idea to get set up soemtime. Honestly I just have been a bit lost as to what one to try/how to get it set up properly etc. Just something on my list of things I would love to learn how to use properly one day but I am not sure where to get started with yet.
Thank you for the tip. Do you have a certain kind of version control that you prefer or find works best for your situation? I would love to know if you have a thought on where might be a good place for me to start looking into it and and learning how to get it set up correctly. Thanks!
I used to use Subversion in the office. I started using Git when I started doing more from home.
I use GitHub for remote repositories typically and currently I use a Git client called GitKraken - it is free for non-commercial projects. You can of course use the command line if you prefer, I personally just prefer the ease of the GUI.
There are some excellent tutorials on GitHub and there are also some free courses on Udemy. “Git Started with GitHub” wss the one I chose, the onstructor was very good and helpful. This os an intro level course and is also free.
Awesome, sounds great to me thanks I appreciate it! I will check into some of the options out there this weekend!
Hi Ryan,
I received an email from the company that produces Git Kraken, the GUI client I mentioned above, they had a link to their YouTube channel titled “Learn Git with Git Kraken” - I thought this may be of use to you, there are 33 videos there at the moment which look to start from beginners and work upwards, might be worth a look.
https://www.youtube.com/gitkraken
I have to say they also have one of the best channel intro videos I have seen/heard in a very long time.
Awesome, thank you very much for thinking of me when you saw that. I just opened it up and I will take a look at the videos tomorrow when i wake up. Thanks again I apprecaite it! I am excited to get this version control stuff situated and worked out so that in the future moving forward I can make sure to be safe when developing and working on projects for public release!
You are more than welcome Ryan
from the videos i watched so far to get an overview of it all it seems like it would be an amazing system to use when working on a project with more then 1 person. Between what I have seen in the RPG course and with these videos it definatly seems like a system to learn and get set up and working for much smoother experience in future projects with multiple people.
Definitely wise for teams but I wouldn’t rule out solo development either Ryan. Whilst at first it may be a little bit of an upward battle, once the basics are understood you will reap the benefits. I think we have all had one of those “If only I could roll back” or “why didnt I have a backup” moments.
With git as long as you commit regularly you will be able to get back to any specific point in time you want, which can be really useful if a feature didn’t quite go as planned.
Anyhoo, I shall look forward to seeing any projects you share in due course and wish you well with your developments
Updated Mon Aug 14 2017 00:16
Hey Ryan,
I’m not trying to bash you over the head with Git, but I’ve just seen that PacktPub are giving away a free eBook for GitHub, it is available for free for the next 23 hours and 43 miuntes (from time of posting) - you just need to register an account to grab it (requires an email address only, no payment details).
hey, nothing to be apologising for! I apprecaite it a ton! just got the free ebook so that i can learn more about it easier. Thank you so much! Hopefully, this is a good read. Is it a book you have read all ready?
I have not read it myself Ryan so I can’t really comment, sorry
Hi Ryan,
I too was concerned about the potential for performance issues because of this and I have experienced some pretty big lag as unity attempts to exit play mode. I have watched as it slowly removed 1000’s of instantiated prefabs.
I note that Ben doesn’t suffer from this so it could be my code as well. Regardless I just did a bit of playing around and finished my code with a “Destroy” command:
void SpawnProjectile()
{
GameObject newProjectile = Instantiate(projectileToUse, projectileSocket.transform.position, Quaternion.identity);
Projectile projectileComponent = newProjectile.GetComponent<Projectile>();
projectileComponent.SetDamage(damagePerShot);
float projectileSpeed = projectileComponent.projectileSpeed;
Vector3 unitVectorToPlayer = (player.transform.position + verticalAimOffset - projectileSocket.transform.position).normalized;
newProjectile.GetComponent<Rigidbody>().velocity = unitVectorToPlayer * projectileSpeed;
Destroy(newProjectile, 0.8f);
}
This destroys the object .8 seconds after it has been instantiated and it has speed up my play by magnitudes.
Given that this response is 3 months old now, it’s probably useless haha
Aweosme, nice work on the code and changing it around. I appreciate your responce and ill definatly give it a look in my project. Actually I got a bit delayed for a month or so on that course due to some family stuff and the holidays etc. So that comes out at a perfect time for me. Thank you for your time and for being wiling to share your work with us!