Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

instantiating object problem!

$
0
0
I have been following couple of tutorials and trying to make a game according to my taste, unfortunetly i have been stuck at a point since one week.

i am spawning a player without any problem and each spawned clone can control its own player.

the problem is when it comes to shooting!
i am instantiating a sphere prefab(using it as bullet) and when run as single player i dont get any problems but when the second player connects the instantiated ball only appears on the screen of the player who instantiated it

i have tryed attaching photon viev to to sphere prefab and set it to observe but dint really help

i have used this line of code but i am having an error for it

Temporary_Bullet_Handler = PhotonNetwork.Instantiate("Bullet", Bullet_Emitter.transform.position, Bullet_Emitter.transform.rotation) as GameObject;

anyone has been succesfull at instantiating objects as bullets ?
are there any tutorials around where i can get some help from about instatiating object on network ?
and does instatiating such object brings too much load on netwrok?

thanks for the help in advence

Viewing all articles
Browse latest Browse all 15755

Trending Articles