me too! I just can’t find any tutorials for this! there’s a tutorial for just about everything else!
how do I setup an online game? how to make an available game ip list? what server should I use? how to make it work with a website? so many things I have no idea how to do!
The 2.5D Platformer tutorial uses 3D models for everything. The ‘hard’ part is pinning everything to just two dimensions, so that the physics engine doesn’t go mad trying to solve the impossible. (2D games are much more abstract than the physics engine expects.)
All you need to do to make a character ‘shoot’ is spawn a prefab missile object just in front of the gun barrel. You can attach an empty GameObject to this and make it a ‘child’ of the gun, so it’s always in the right place. Then you just Instantiate() the missile prefab in your script, tell it which direction it should be going in—you can work this out easily from your character’s own position—and you’re done.
Pretty much any of the other tutorials with shooting in them do it this way. Some concepts stay much the same regardless of the number of dimensions you’re using.
As I want to make it useable by most of internet users in Brazil (low spec pc’s) I’ll just ray and check collision, with no real bullets, it makes it easier and faster. But thanks for the answer.