hello Im trying to make a game but Im really tired of using bullets I want to make something quick like a laser but its hard I dont know how to make it anyone please help me oh also make it so it will not go thru solid walls
howtoconstructdemos.com
There are examples with the laser.
no like the when the player shoots i need to know that like in tf2
I'm not sure what exactly what you mean, but if I had to guess, it's probably Raycasting?
kinda? like do you game half life or counter strike? they dont use projectile for guns they use those tracer laser thingies
Most guns in games are indeed not projectiles. Raycasts is correct, also called hitscan. Hitscan = raycasts.
ok thanks now i need code
please
never mind I fixed it I learnt more about code "while" very easy! here is Capx.file if your interested! dropbox.com/scl/fi/f1w41ef578ss58bua563b/raycast-shooting.capx tell me if the drop box is private and I will fix it!
You have created a good example of a Laser Gun.
kibaga.org/c3-example/file_uploads/index.php
Develop games in your browser. Powerful, performant & highly capable.
Thanks! upload somewhere it will be usefull for others please I give you permision
also i will make an updated version now to random the angles so it wont be just a laser gun i want it to be automatic gun,pistol or something
here is it! dropbox.com/scl/fi/f1w41ef578ss58bua563b/raycast-shooting.capx
oh wait i havent checked the file its so cool but how did u converted it into c3p?
If there are no additional plugins or new features in caps, it will open in C3 and then can be saved.