So, I found a basic gun script and I need to modify it so it can shoot where my mouse it. From what I read, you need to use rays, which I don’t know how to do.
@Mavina
Also, Mavina, I don’t know how to give you a demo of my game.
Havax
2
TBruce
3
[84252-shootdemo.zip|84252] that shows the concept. I strongly suggest that you create a new project and import the package in the project to see how it works.
I took your script posted here (forgive me for renaming some of your variables). I also had to create a dummy class called Damage_Heal since you did not provide one which had the required references
public int AmmoSize = 0;
public int ClipSize = 0;
public void UpdateAmmo_ClipBar()
{
}
Not: The demo is using a combination of 2D and 3D but you should get the gist of it and I am sure that you can take from this and implement what you need in your game. Please let me know if you have any questions.
If you want to give me a demo I suggest that you either create a package of your game by selecting Assests from the project tab then select Assets\Export Package... from the main menu (preferred method) or you can zip up you project.
Now take either the package or the zipped project and place it in a free file sharing service like MediaFire. You can the send me a link via Unity private chat.
I may be off and on for the next hour or so, but if you send me any questions here or via private chat I will see by tomorrow.